?> <?php echo $form->field($model, 'address')->textInput(['maxlength' => true, 'id' => 'address']); ?> <?php echo $form->field($model, 'agent')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'phone')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'description')->widget(CKEditor::className(), []); ?> <div class="properties"> <?php DynamicFormWidget::begin(['widgetContainer' => 'dynamicform_wrapper', 'widgetBody' => '.container-items', 'widgetItem' => '.item', 'min' => 0, 'insertButton' => '.add-item', 'deleteButton' => '.remove-item', 'model' => $model, 'formId' => 'dynamic-form', 'formFields' => ['name', 'value']]); ?> <div class="panel panel-default"> <div class="panel-heading"> <h4> <i class="glyphicon glyphicon-tags"></i> Характеристики <button type="button" class="add-item btn btn-success btn-sm pull-right"> <?php echo FA::icon('plus'); ?>
use yii\widgets\Pjax; /* @var $this yii\web\View */ /* @var $model im\cms\models\Page */ /* @var $form yii\widgets\ActiveForm */ ?> <?php Pjax::begin(['id' => 'page-form']); ?> <?php $form = ActiveForm::begin(['id' => 'batch-update-form', 'options' => ['data-pjax' => 1]]); ?> <?php echo new FieldSet('category', [new TabSet('tabs', [new Tab('main', Module::t('category', 'Main'), [$model->isNewRecord ? $form->field($model, 'type')->dropDownList($model::getTypesList(), ['data-field' => 'type']) : null, $form->field($model, 'title')->textInput(['maxlength' => true]), $form->field($model, 'slug')->textInput(['maxlength' => true]), $form->field($model, 'content')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'clientOptions' => ['filebrowserBrowseUrl' => Url::to(['/elfinder/manager']), 'filebrowserImageBrowseUrl' => Url::to(['/elfinder/manager', 'filter' => 'image'])]]), $form->field($model, 'status')->dropDownList($model::getStatusesList())])])]); ?> <?php echo Html::submitButton($model->isNewRecord ? Module::t('module', 'Create') : Module::t('module', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-primary' : 'btn btn-success']); ?> <?php ActiveForm::end(); ?> <?php Pjax::end(); ?> <?php
<div class="news-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'anons')->textarea(['rows' => 6]); ?> <?php echo $form->field($model, 'text')->widget(CKEditor::className(), ['options' => ['rows' => 6]]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Добавить' : 'Сохранить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
/* @var $model app\models\Content */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="content-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'body')->widget(\dosamigos\ckeditor\CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'full']); ?> <?php echo $form->field($model, 'data')->textInput(); ?> <?php echo $form->field($model, 'user_id')->textInput(); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Изменить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?>
</div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class=""> <div class="panel panel-primary dummy-data"> <div class="panel-heading"> <h3 class="panel-title">รายละเอียดโครงการ</h3> </div> <div class="panel-body search-result-contents"> <div class="row"> <div class="col-md-12"> <?php echo Tabs::widget(['items' => [['label' => $model->getAttributeLabel('PRINC_N_REASON'), 'content' => $form->field($model, 'PRINC_N_REASON')->widget(CKEditor::className(), ['options' => ['rows' => 6, 'disabled' => $mode == 'view' ? true : false], 'preset' => 'basic'])->label(false), 'active' => true], ['label' => $model->getAttributeLabel('OBJECTIVE'), 'content' => $form->field($model, 'OBJECTIVE')->widget(CKEditor::className(), ['options' => ['rows' => 6, 'disabled' => $mode == 'view' ? true : false], 'preset' => 'basic'])->label(false)], ['label' => $model->getAttributeLabel('TARGET'), 'content' => $form->field($model, 'TARGET')->widget(CKEditor::className(), ['options' => ['rows' => 6, 'disabled' => $mode == 'view' ? true : false], 'preset' => 'basic'])->label(false)], ['label' => $model->getAttributeLabel('TARGET_GROUP'), 'content' => $form->field($model, 'TARGET_GROUP')->widget(CKEditor::className(), ['options' => ['rows' => 6, 'disabled' => $mode == 'view' ? true : false], 'preset' => 'basic'])->label(false)], ['label' => $model->getAttributeLabel('OUTPUT'), 'content' => $form->field($model, 'OUTPUT')->widget(CKEditor::className(), ['options' => ['rows' => 6, 'disabled' => $mode == 'view' ? true : false], 'preset' => 'basic'])->label(false)], ['label' => $model->getAttributeLabel('INDICATOR'), 'content' => $form->field($model, 'INDICATOR')->widget(CKEditor::className(), ['options' => ['rows' => 6, 'disabled' => $mode == 'view' ? true : false], 'preset' => 'basic'])->label(false)], ['label' => $model->getAttributeLabel('RESULT'), 'content' => $form->field($model, 'RESULT')->widget(CKEditor::className(), ['options' => ['rows' => 6, 'disabled' => $mode == 'view' ? true : false], 'preset' => 'basic'])->label(false)], ['label' => $model->getAttributeLabel('SCOPE'), 'content' => $form->field($model, 'SCOPE')->widget(CKEditor::className(), ['options' => ['rows' => 6, 'disabled' => $mode == 'view' ? true : false], 'preset' => 'basic'])->label(false)], ['label' => $model->getAttributeLabel('PLAN'), 'content' => $form->field($model, 'PLAN')->widget(CKEditor::className(), ['options' => ['rows' => 6, 'disabled' => $mode == 'view' ? true : false], 'preset' => 'basic'])->label(false)]]]); ?> </div> </div> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class=""> <div class="panel panel-warning dummy-data"> <div class="panel-heading bg-orange"> <h3 class="panel-title">เอกสารแนบ</h3> </div>
use yii\helpers\Html; use yii\widgets\ActiveForm; use dosamigos\ckeditor\CKEditor; /* @var $this yii\web\View */ /* @var $model lukisongroup\widget\models\Notulen */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="notulen-form"> <?php $form = ActiveForm::begin(['id' => $model->formName()]); ?> <?php echo $form->field($model, 'RESULT_SCHEDULE')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic']); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
?> </td> </tr> </tbody> </table> </div> <div class="proggresjob-form"> <?php $form = ActiveForm::begin(['method' => 'post', 'action' => ['/it/proggresjob/detailprogress']]); ?> <?php echo $form->field($model, 'keterangan_detail')->widget(CKEditor::className(), ['value' => 'Please write your comment', 'options' => ['rows' => 6], 'preset' => 'basic']); ?> <?php echo $form->field($model, 'start_data')->widget(DateTimePicker::className(), ['template' => '{addon}{input}', 'value' => '', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'proggres_id')->hiddenInput(); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'POST', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div>
<?php echo $form->field($model, 'imageFile', ['template' => "{label}\n<div><label>" . $file . "</label></div>{input}\n{hint}\n{error}"])->fileInput(); ?> <?php ?> <?php echo $form->field($model, 'preview_text')->widget(CKEditor::className(), ['preset' => 'basic', 'clientOptions' => ['enterMode' => 2, 'filebrowserImageUploadUrl' => Yii::getAlias('@web') . "/uploads/iaupload.php"]]); ?> <?php echo $form->field($model, 'detail_text')->widget(CKEditor::className(), ['clientOptions' => ['filebrowserImageUploadUrl' => Yii::getAlias('@web') . "/uploads/iaupload.php"]]); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'keywords')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'description')->textInput(['maxlength' => true]); ?>
use yii\widgets\ActiveForm; use kartik\widgets\FileInput; use yii\helpers\ArrayHelper; use dosamigos\ckeditor\CKEditor; /* @var $this yii\web\View */ /* @var $model common\models\Franquicia */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="franquicia-form"> <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?> <?php echo $form->field($model, 'descripcion')->widget(CKEditor::className(), ['preset' => 'full']); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Crear' : 'Actualizar', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
/* @var $this yii\web\View */ /* @var $model app\models\CalendarCodeDescriptions */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="calendar-code-descriptions-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'code_title')->textInput(['maxlength' => 25]) ?> <?= $form->field($model, 'description')->widget(CKEditor::className(), [ 'options' => ['rows' => 6], 'preset' => 'basic' ]) ?> <?= $form->field($model, 'zijn_description')->widget(CKEditor::className(), [ 'options' => ['rows' => 6], 'preset' => 'basic' ]) ?> <div class="form-group"> <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> </div> <?php ActiveForm::end(); ?> </div>
<div class="company-update"> <div class="company-form"> <div class="row"> <div class="box box-primary"> <div class="box-body"> <?php $form = ActiveForm::begin(); ?> <?php if (Yii::$app->controller->action->id == 'return-policy') { ?> <?php echo $form->field($model, 'return_policy')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'full']); ?> <?php } ?> <div class="form-group pull-right"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
<?php $form = ActiveForm::begin(['options' => ['id' => 'create-event-form']]); ?> <?php echo $form->field($model, 'interest_id')->dropDownList(ArrayHelper::map(Areaintrest::find()->all(), 'id', 'area_intrest'), ['prompt' => 'Select Event Category']); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'description')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic']); ?> <?php echo $form->field($model, 'location')->textInput(['class' => 'placepicker form-control']); ?> <?php echo $form->field($model, 'eopen_date')->widget(DateTimePicker::className(), ['name' => 'eopen_date', 'options' => ['placeholder' => 'Select Entries open time ...'], 'convertFormat' => true, 'pluginOptions' => ['orientation' => 'top', 'format' => 'd-M-y hh:i ', 'startDate' => date('yyyy-MM-dd hh:ii:ss'), 'autoclose' => true, 'todayHighlight' => true]]); ?> <?php echo $form->field($model, 'eclose_date')->widget(DateTimePicker::className(), ['name' => 'eclose_date', 'options' => ['placeholder' => 'Select Entries close time ...'], 'convertFormat' => true, 'pluginOptions' => ['orientation' => 'top', 'format' => 'd-M-y hh:i ', 'autoclose' => true, 'startDate' => date('yyyy-MM-dd hh:ii:ss'), 'todayHighlight' => true]]); ?>
echo $form->field($model, 'title'); ?> <?php echo $form->field($model, 'thumbnail')->fileInput(['accept' => 'image/*', 'maxSize' => 10097152]); ?> <div class="form-group"> <?php echo '<label>Date</label>'; echo DatePicker::widget(['name' => 'PostEditForm[date]', 'type' => DatePicker::TYPE_COMPONENT_PREPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> </div> <?php echo $form->field($model, 'content')->widget(CKEditor::className(), ['options' => ['rows' => 10], 'preset' => 'basic']); ?> <div class="form-group"> <label for="inputPermit">Permission</label> <div class="row"> <div class="col-lg-2"> <select id="inputPermit" class="form-control" name="PostEditForm[permit][]"> <option value="1">private</option> <option value="2">protected 1</option> <option value="3">protected 2</option> <option value="4">public</option> </select> </div> </div> </div>
</div> <div class="col-md-5"> <?php echo $form->field($model, 'publishTime')->widget(DateTimePicker::classname()); ?> <?php echo $form->field($model, 'image')->widget(FileInput::className()); ?> <?php echo $form->field($model, 'isPublished')->checkbox(); ?> </div> </div> <?php echo $form->field($model, 'previewText')->widget(CKEditor::className()); ?> <?php echo $form->field($model, 'text')->widget(CKEditor::className()); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? \Yii::t('app', 'Добавить') : \Yii::t('app', 'Сохранить'), ['class' => 'btn btn-primary']); ?> </div> <?php AppActiveForm::end(); ?> <?php
echo $form->field($model, 'meta_title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'meta_description')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'meta_keywords')->textInput(['maxlength' => true]); ?> <?php // echo $form->field($model, 'search_text')->textInput(['maxlength' => true]) ?> <?php // echo $form->field($model, 'image_path')->textInput(['maxlength' => true, 'readonly' => true]) ?> <?php echo $form->field($model, 'shipping_detail')->widget(CKEditor::className(), ['preset' => 'standard', 'clientOptions' => ['height' => 200, 'language' => 'vi', 'uiColor' => '#E4E4E4', 'image_previewText' => ' ', 'filebrowserUploadUrl' => Url::to(['file/ckeditor-upload-image'], true)]]); ?> <?php echo $form->field($model, 'product_id')->textInput(['readonly' => true, 'type' => 'hidden'])->label(false); ?> </div> <div class="col-md-12"> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Thêm mới' : 'Cập nhật', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> </div> <?php
<?php echo $form->field($model, 'name')->textInput(['maxlength' => 50]); ?> <?php echo $form->field($model, 'fName')->textInput(['maxlength' => 50]); ?> <?php echo $form->field($model, 'lName')->textInput(['maxlength' => 50]); ?> <?php echo $form->field($model, 'detail')->widget(CKEditor::className(), ['preset' => 'custom', 'clientOptions' => Yii::$app->params['ckeditor']['default']]); ?> <?php //echo $form->field($model, 'createdOn')->textInput() ?> <?php //echo $form->field($model, 'createdBy')->textInput() ?> <?php //echo $form->field($model, 'updatedOn')->textInput() ?>
<div class="service-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'alt_title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'text')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'standart']); //basic standart full ?> <?php echo $form->field($model, 'num')->textInput(); ?> <?php echo $form->field($model, 'on')->dropDownList(['1' => 'yes', '0' => 'no']); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?>
<div class="company-update"> <div class="company-form"> <div class="row"> <div class="box box-primary"> <div class="box-body"> <?php $form = ActiveForm::begin(); ?> <?php if (Yii::$app->controller->action->id == 'terms-and-agreement') { ?> <?php echo $form->field($model, 'terms_and_condition')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'full']); ?> <?php } ?> <div class="form-group pull-right"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
$form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'meta_id')->textInput(); ?> <?php echo $form->field($model, 'city_id')->label(Yii::t('seotools', 'City'))->widget(Select2::classname(), ['data' => ArrayHelper::map($city_list, 'id', 'name'), 'value' => $model->city_id, 'theme' => Select2::THEME_BOOTSTRAP, 'options' => ['placeholder' => 'Select a city ...'], 'pluginOptions' => ['allowClear' => true]]); ?> <?php echo $form->field($model, 'infotext_before')->widget(CKEditor::className(), ['preset' => 'premium', 'clientOptions' => []]); ?> <?php echo $form->field($model, 'infotext_after')->widget(CKEditor::className(), ['preset' => 'premium', 'clientOptions' => []]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('seotools', 'Create') : Yii::t('seotools', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
<?php echo $form->field($model, 'PIC')->textInput(); ?> </div> <div class="col-lg-4"> <?php echo $form->field($model, 'TLP1')->textInput()->label('TLP'); ?> </div> <div class="col-lg-4"> <?php echo $form->field($model, 'FAX')->textInput(); ?> </div> <div class="col-lg-12"> <?php echo $form->field($model, 'ALAMAT_KIRIM')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic']); ?> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary btn-xs']); ?> <?php ActiveForm::end(); ?> </div> </div> </div>
?> <?php echo $form->field($model, 'mobilenumber'); ?> <?php echo $form->field($model, 'clubname'); ?> <?php echo $form->field($model, 'address')->textInput(['class' => 'placepicker form-control']); ?> <?php echo $form->field($model, 'description')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic', 'clientOptions' => ['filebrowserUploadUrl' => Url::to(['ckeditor/url'])]]); ?> <div class="form-group"> <?php echo Html::submitButton('Update', ['class' => 'btn btn-danger', 'name' => 'update-button']); ?> </div> <?php ActiveForm::end(); ?> </div>
reader.onload = function (e) { $('#blah').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } $("#imgInp").change(function(){ readURL(this); }); </script> <?php echo $form->field($model, 'content')->widget(CKEditor::className(), ['options' => ['rows' => 10], 'preset' => 'full', 'clientOptions' => ['filebrowserUploadUrl' => '/daitech-admin/project/upload']]); ?> <?php echo $form->field($model, 'start_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Start date ...'], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd']]); ?> <?php echo $form->field($model, 'end_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'End date ...'], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd']]); ?> <div class="form-control"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div>
use yii\widgets\ActiveForm; use yii\helpers\Url; //use app\widgets\CKEditor; use dosamigos\ckeditor\CKEditor; $this->beginPage(); $this->beginBody(); $form = ActiveForm::begin(['options' => ['id' => 'content-edit-form', 'class' => 'form-horizontal', 'role' => 'form']]); $inputOptions = ['labelOptions' => ['class' => 'col-sm-1 control-label'], 'template' => "{label}\n<div class=\"col-sm-11\">{input}\n{hint}\n{error}</div>"]; ?> <?php echo $form->field($model, 'place')->hiddenInput()->label(false); ?> <div id="editStatus" class="hide2 box-body"></div> <?php echo $form->field($model, 'content', $inputOptions)->widget(CKEditor::className(), Yii::$app->getModule('livecontent')->editorOptions); ?> <?php ActiveForm::end(); $this->endBody(); $this->endPage(); ?> <script type="text/javascript"> CKEDITOR.on('instanceReady', function(){ CKEDITOR.instances['contentdata-content'].resize('100%', 300); }) $("#content-edit-form").submit(function(event) { event.preventDefault();
<div class="row"> <div class="col-lg-8"> <?php echo $form->field($model, 'title')->input('text', ['placeholder' => 'พิมพ์ชื่อเรื่องที่นี้']); ?> <div class="form-group required" style="padding-left: 0px; padding-right: 10px;"> <label>เนื้อหาทั้งหมด (ขนาดภาพ: 390 x 293 หรือ Scale 4:3)</label> <?php //$url1 = Yii::$app->getAssetManager()->publish(Yii::getAlias('@yii2elRTE')); if (Yii::$app->user->can('Administrator')) { $folder = ''; } else { $folder = "Edit_" . Yii::$app->user->identity->gid; } echo $form->field($model, 'fulltexts')->widget(CKEditor::className(), ['options' => ['rows' => 5], 'preset' => 'standard']); echo "<br/>"; ?> <div class="help-block"></div> </div> <?php echo $form->field($model, 'id', ['options' => ['class' => 'sr-only']])->hiddenInput(); ?> <?php echo $form->field($model, 'langs', ['options' => ['class' => 'sr-only']])->hiddenInput(); ?> </div> <div class="col-lg-4"> <?php echo $form->field($model, 'langs')->dropDownList(\app\models\tblLangs::makeDropDown(), ['style' => 'width: 140px;', 'disabled' => 'disabled', 'onchange' => 'form.submit();']); ?>
<?php \Yii::$container->set(\dosamigos\ckeditor\CKEditor::className(), ['clientOptions' => ['toolbarGroups' => [['name' => 'styles'], ['name' => 'clipboard', 'groups' => ['clipboard', 'undo']], ['name' => 'document', 'groups' => ['mode']], ['name' => 'links'], ['name' => 'forms'], ['name' => 'tools'], ['name' => 'tools'], '/', ['name' => 'basicstyles', 'groups' => ['basicstyles', 'colors', 'cleanup']], ['name' => 'paragraph', 'groups' => ['list', 'indent', 'blocks', 'align', 'bidi']], ['name' => 'insert']], 'removeButtons' => 'Form,Checkbox,Radio,TextField,Textarea,Select,Button,HiddenField', 'extraPlugins' => 'filebrowser', 'filebrowserUploadUrl' => '/cms/page/upload/'], 'preset' => 'custom']); return ['id' => 'boilerplate-yii2-k4nuj8', 'name' => 'Boilerplate Yii 2 k4nuj8', 'basePath' => dirname(__DIR__), 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'runtimePath' => dirname(dirname(__DIR__)) . '/files/log/runtime', 'bootstrap' => \extpoint\yii2\components\ModuleLoader::getBootstrap(dirname(__DIR__)) + ['log'], 'language' => 'ru', 'components' => ['cache' => ['class' => 'yii\\caching\\FileCache'], 'mailer' => ['class' => 'yii\\swiftmailer\\Mailer', 'htmlLayout' => '@app/core/layouts/mail', 'messageConfig' => ['from' => '*****@*****.**']], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'db' => ['class' => 'yii\\db\\Connection', 'dsn' => 'mysql:host=localhost;dbname=boilerplate-yii2-k4nuj8', 'username' => 'root', 'password' => '', 'charset' => 'utf8'], 'assetManager' => ['forceCopy' => true, 'bundles' => ['yii\\web\\JqueryAsset' => ['sourcePath' => null, 'js' => []], 'yii\\bootstrap\\BootstrapAsset' => ['sourcePath' => null, 'css' => []], 'yii\\bootstrap\\BootstrapPluginAsset' => ['sourcePath' => null, 'js' => [], 'css' => []]]], 'urlManager' => ['showScriptName' => false, 'enablePrettyUrl' => true, 'suffix' => '/'], 'megaMenu' => ['class' => '\\extpoint\\megamenu\\MegaMenu']], 'modules' => \extpoint\yii2\components\ModuleLoader::getConfig(dirname(__DIR__)), 'params' => ['adminEmail' => '']];
echo Html::img("@web/" . $model->preview_picture, ['class' => 'article-preview-img']); ?> <?php } ?> <?php echo $form->field($model, 'preview_input')->fileInput(); ?> <?php echo $form->field($model, 'description')->textarea(['rows' => 3]); ?> <?php echo $form->field($model, 'category_id')->dropDownList(ArrayHelper::map(Category::find()->where(['is_active' => 1])->all(), 'id', 'title')); ?> <?php echo $form->field($model, 'content')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'standart', 'clientOptions' => ['filebrowserUploadUrl' => '/comando/article/upload']]); ?> <?php echo $form->field($model, 'key_words')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'is_active')->checkbox(); ?> <?php echo $form->field($model, 'is_comment_enabled')->checkbox(); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Добавить' : 'Сохранить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
$form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'Day')->input('number', ['min' => 0]); ?> <?php echo $form->field($model, 'Level')->dropDownList(['N0' => yii::t('frontend', 'Begin study'), 'N5' => 'N5', 'N4' => 'N4', 'N3' => 'N3', 'N2' => 'N2', 'N1' => 'N1'])->label(''); ?> <?php echo $form->field($model, 'Subject')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'Content')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'full']); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('magazin', 'Create') : Yii::t('backend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
echo $form->field($model, 'start_at')->widget(DateTimePicker::classname(), ['type' => DateTimePicker::TYPE_COMPONENT_PREPEND, 'options' => ['placeholder' => 'Enter event time ...'], 'value' => '23-Feb-1982 01:10', 'layout' => '{picker}{input}', 'pluginOptions' => ['autoclose' => true, 'todayHighlight' => true, 'todayBtn' => true, 'format' => 'mm/dd/yyyy hh:ii:ss']]); ?> <?php echo $form->field($model, 'end_at')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Enter event time ...'], 'layout' => '{picker}{input}', 'pluginOptions' => ['autoclose' => true, 'todayHighlight' => true, 'todayBtn' => true, 'format' => 'mm/dd/yyyy hh:ii:ss']]); ?> <?php echo $form->field($model, 'is_show')->widget(CheckboxX::classname(), ['autoLabel' => false, 'pluginOptions' => ['threeState' => false, 'size' => 'md']])->label("Is Show"); ?> <?php echo $form->field($model, 'link')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'body')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'advanced']); ?> <?php $langues = BLanguecenter::find()->where(['is_show' => 1])->orderBy('ordinal_view ASC')->all(); $id = ''; $name = ''; if ($langues) { foreach ($langues as $category) { $id[] = $category->ID; $name[] = $category->name; } $result = array_combine($id, $name); } else { $result = array("0" => "No langue's center found"); } ?>
/* @var $this yii\web\View */ /* @var $model lukisongroup\models\esm\po\Purchaseorder */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="purchaseorder-form"> <?php $form = ActiveForm::begin(['id' => 'po-note-Input', 'enableClientValidation' => true, 'method' => 'post', 'action' => ['/purchasing/purchase-order/po-note-review-save', 'kdpo' => $poHeader->KD_PO]]); ?> <?php echo $form->field($poHeader, 'KD_PO')->textInput(['value' => $poHeader->KD_PO, 'maxlength' => true, 'readonly' => true]); ?> <?php echo $form->field($poHeader, 'NOTE')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic']); ?> <div style="text-align: right;""> <?php echo Html::submitButton('Save', ['class' => 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
<?php $form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true]); ?> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12"> <div class="panel panel-primary"> <div class="panel-heading">Comment</div> <div class="panel-body"> <?php echo $form->field($model, 'CHAT')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic'])->label(false); ?> </div> </div> </div> </div> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12"> <div class="panel panel-primary"> <div class="panel-heading">Upload</div> <div class="panel-body"> <?php echo \kato\DropZone::widget(['options' => ['maxFilesize' => '2', 'acceptedFiles' => 'image/*,application/pdf', 'url' => '/widget/berita/upload-join?KD_BERITA=' . $KD_BERITA . ''], 'clientEvents' => ['complete' => "function(file){console.log(file)}", 'removedfile' => "function(file){alert(file.name + ' is removed')}"]]);