<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use yii\easyii\widgets\Redactor; $form = ActiveForm::begin(['options' => ['class' => 'model-form']]); echo $form->field($model, 'question')->widget(Redactor::className(), ['options' => ['minHeight' => 300, 'buttons' => ['bold', 'italic', 'unorderedlist', 'link'], 'linebreaks' => true]]); echo $form->field($model, 'answer')->widget(Redactor::className(), ['options' => ['minHeight' => 300, 'buttons' => ['bold', 'italic', 'unorderedlist', 'link'], 'linebreaks' => true]]); ?> <?php echo Html::submitButton(Yii::t('easyii', 'Save'), ['class' => 'btn btn-primary']); ActiveForm::end();
?> <?php echo $form->field($model, 'image')->fileInput(); } ?> <?php if ($this->context->module->settings['enableShort']) { ?> <?php echo $form->field($model, 'short')->textarea(); } ?> <?php echo $form->field($model, 'text')->widget(Redactor::className(), ['options' => ['minHeight' => 400, 'imageUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'sections'], true), 'fileUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'sections'], true), 'plugins' => ['fullscreen']]]); ?> <?php echo $form->field($model, 'time')->widget(DateTimePicker::className()); ?> <?php if ($this->context->module->settings['enableTags']) { ?> <?php echo $form->field($model, 'tagNames')->widget(TagsInput::className()); } ?> <?php
?> </a> <?php } ?> <?php echo $form->field($model, 'image')->fileInput(); } ?> <?php echo $dataForm; if ($settings['itemDescription']) { ?> <?php echo $form->field($model, 'description')->widget(Redactor::className(), ['options' => ['minHeight' => 400, 'imageUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'customers'], true), 'fileUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'customers'], true), 'plugins' => ['fullscreen']]])->widget(\webvimark\behaviors\multilanguage\input_widget\MultiLanguageActiveField::className()); } ?> <?php //= $form->field($model, 'available') //= $form->field($model, 'price') ?> <?php echo $form->field($model, 'time')->widget(DateTimePicker::className()); ?>
<?php use yii\easyii\widgets\Redactor; echo \yii\helpers\Html::activeLabel($this->context->model, $this->context->attribute); echo Redactor::widget(['model' => $this->context->model, 'attribute' => $this->context->attribute, 'options' => $this->context->{$options}]);
<?php //= $form->field($model, 'homepage')->checkBox() echo $form->field($model, 'homepage')->dropDownList(['1' => 'homepage', '0' => 'who\'s Dry', '2' => 'All'], ['prompt' => 'Select Location']); ?> <?php echo $form->field($model, 'owner')->widget(input_widget\MultiLanguageActiveField::className()); echo $form->field($model, 'title')->widget(input_widget\MultiLanguageActiveField::className()); ?> <?php echo $form->field($model, 'text')->widget(Redactor::className(), ['options' => ['minHeight' => 400, 'imageUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'pages']), 'fileUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'pages']), 'plugins' => ['fullscreen']]])->widget(input_widget\MultiLanguageActiveField::className(), ['inputType' => 'textArea', 'inputOptions' => ['rows' => 3, 'class' => 'redactor']]); ?> <?php if (IS_ROOT) { ?> <?php echo $form->field($model, 'slug'); ?> <?php echo SeoForm::widget(['model' => $model]); } ?> <?php echo Html::submitButton(Yii::t('easyii', 'Save'), ['class' => 'btn btn-primary']);
<?php use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\ActiveForm; use yii\easyii\widgets\Redactor; use yii\easyii\widgets\SeoForm; $form = ActiveForm::begin(['enableAjaxValidation' => true, 'options' => ['class' => 'model-form', 'enctype' => 'multipart/form-data']]); echo $form->field($model, 'title'); echo $form->field($model, 'text')->widget(Redactor::className(), ['options' => ['minHeight' => 400, 'imageUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'pages']), 'fileUpload' => Url::to(['/admin/redactor/upload', 'dir' => 'pages']), 'plugins' => ['fullscreen'], 'convertDivs' => false, 'replaceDivs' => false, 'deniedTags' => ['style']]]); ?> <?php if (IS_ROOT) { ?> <?php echo $form->field($model, 'slug'); ?> <?php echo SeoForm::widget(['model' => $model]); } ?> <?php echo Html::submitButton(Yii::t('easyii', 'Save'), ['class' => 'btn btn-primary']); ActiveForm::end();
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use yii\easyii\widgets\Redactor; $form = ActiveForm::begin(['enableClientValidation' => true]); echo $form->field($model, 'subject'); echo $form->field($model, 'body')->widget(Redactor::className(), ['options' => ['minHeight' => 400]]); echo Html::submitButton(Yii::t('easyii', 'Send'), ['class' => 'btn btn-primary']); ActiveForm::end();