Exemplo n.º 1
0
 public function run()
 {
     // Добавляем callback метод elfinder
     AssetsCallBack::register($this->getView());
     $this->getView()->registerJs("mihaildev.elFinder.register('elFinderInsertImage', function(file, id) {\n                  tinymce.activeEditor.windowManager.getParams().setUrl(file.url);\n                  tinymce.activeEditor.windowManager.close();\n            });\n\n            function elFinderBrowser (field_name, url, type, win) {\n              tinymce.activeEditor.windowManager.open({\n                file: '/admin/elfinder/manager?callback=elFinderInsertImage&lang=ru&path={$this->filemanager['webpath']}',\n                title: 'Менеджер файлов',\n                width: 900,\n                height: 450,\n                resizable: 'yes'\n              }, {\n                setUrl: function (url) {\n\n                  var reg = /\\/[^/]+?\\/\\.\\.\\//;\n                  //var info = file.name;\n\n                  while(url.match(reg)) {\n                    url = url.replace(reg, '/');\n                  }\n\n                  win.document.getElementById(field_name).value = url;\n                }\n              });\n              return false;\n            }");
     echo TinyMce::widget(['attribute' => $this->attribute, 'model' => $this->model, 'options' => $this->options, 'language' => $this->language, 'clientOptions' => $this->clientOptions]);
 }
Exemplo n.º 2
0
?>
      <?php 
echo Html::dropDownList('rule_name', $id, ArrayHelper::map(AuthRule::find()->all(), 'name', 'name'), ['class' => 'form-control', 'id' => 'rule_name', 'prompt' => 'Pilih']);
?>
      </div>
      <?php 
echo $form->field($model, 'task_to')->label('Nama Karyawan')->widget(DepDrop::className(), ['data' => $person, 'pluginOptions' => ['depends' => ['rule_name'], 'url' => Url::to(['/user/api/search-person'])]]);
?>


    <?php 
echo $form->field($model, 'task_title')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model, 'task_detail')->widget(TinyMce::className(), ['options' => ['rows' => 6], 'clientOptions' => ['plugins' => [], 'toolbar' => "bold italic | alignleft aligncenter alignright alignjustify | bullist numlist "]]);
?>


 <?php 
echo $form->field($model, 'attachment')->fileInput(['class' => "filestyle"]);
?>
     <?php 
if (!$model->isNewRecord && !empty($model->attachment)) {
    ?>
      <div class="form-group">
      <strong>Link Unduhan :</strong>
      <?php 
    echo Html::a('<i class="fa fa-download fa-2x"></i>', Url::to(['download', 'id' => $model->id]), ['title' => 'Download Lampiran']);
    ?>
      </div>
Exemplo n.º 3
0
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var \atuin\static_page\models\StaticPlugin $staticPlugin */
?>


<?php 
$form = ActiveForm::begin();
?>

<?php 
echo $form->field($staticPlugin, 'title')->textInput(['maxlength' => 255]);
?>

<?php 
echo $form->field($staticPlugin, 'url')->widget(\cyneek\yii2\widget\urlparser\UrlParser::className(), ['maxlength' => 50, 'source' => ['model' => $staticPlugin, 'attribute' => 'title']]);
?>

<?php 
echo $form->field($staticPlugin, 'text')->widget(\dosamigos\tinymce\TinyMce::className(), ['options' => ['rows' => 6], 'language' => 'es', 'clientOptions' => ['plugins' => ["advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste", "image", "imagetools"], 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link imagetools"]]);
?>

<div class="form-group">
    <?php 
echo Html::submitButton($staticPlugin->isNewRecord ? Yii::t('user', 'Create') : Yii::t('user', 'Update'), ['class' => $staticPlugin->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>

<?php 
ActiveForm::end();
Exemplo n.º 4
0
                            </div>
                        <?php 
}
?>

                        <?php 
if (!empty($model)) {
    ?>
                            <?php 
    $form = ActiveForm::begin(['method' => 'post']);
    ?>
                            <?php 
    echo $form->field($model, 'subject')->label('Тема');
    ?>
                            <?php 
    echo $form->field($model, 'text', ['inputOptions' => ['class' => 'form-control']])->widget(TinyMce::className(), ['options' => ['rows' => 10], 'language' => 'ru', 'clientOptions' => ['relative_urls' => false, 'remove_script_host' => false, 'plugins' => ['textcolor colorpicker', "advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste", 'image'], 'toolbar' => "undo redo | forecolor backcolor | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"]])->label('Сообщение');
    ?>

                            <?php 
    echo Html::submitButton('<i class="fa fa-send-o"></i>  Отправить', ['class' => 'btn btn-primary pull-right']);
    ?>
                            <?php 
    $form->end();
    ?>
                        <?php 
}
?>
                    </div>
                </div>
            </div>
        </div>
Exemplo n.º 5
0
<?php

/**
 * Created by PhpStorm.
 * User: BTH
 * Date: 14.01.16
 * Time: 22:07
 */
//use vova07\imperavi\Widget;
use kartik\widgets\ActiveForm;
use dosamigos\tinymce\TinyMce;
$form = ActiveForm::begin();
?>
<div style="height: 100px; display: block;"></div>
<div class="container">
<b>You are editting the <?php 
echo $model->language;
?>
 version of <?php 
echo $model->name;
?>
 file</b>
<hr>
<?php 
echo $form->field($model, 'body')->widget(TinyMce::className(), ['options' => ['rows' => 6], 'language' => 'ru', 'clientOptions' => ['plugins' => ['advlist autolink lists link image charmap print preview hr anchor pagebreak', 'searchreplace wordcount visualblocks visualchars code fullscreen', 'insertdatetime media nonbreaking save table contextmenu directionality', 'emoticons template paste textcolor colorpicker textpattern imagetools'], 'toolbar1' => 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', 'toolbar2' => 'print preview media | forecolor backcolor emoticons fontsizeselect fontselect']]);
echo \yii\helpers\Html::submitButton('Save', ['class' => 'btn btn-success']);
ActiveForm::end();
?>
</div>
Exemplo n.º 6
0
                        </select>
                        <div class="help-block"></div>
                    </div>
                    <?php 
echo $form->field($category_translation, 'name', ['inputOptions' => ['class' => 'form-control']])->label(Yii::t('articles', 'Name'));
?>

                    <?php 
echo $form->field($category, 'color', ['inputOptions' => ['class' => 'form-control', 'type' => 'color']])->label(Yii::t('articles', 'Color'));
?>

                    <?php 
echo $form->field($category_translation, 'short_text', ['inputOptions' => ['class' => 'form-control']])->widget(TinyMce::className(), ['options' => ['rows' => 10], 'language' => 'ru', 'clientOptions' => ['plugins' => ['textcolor colorpicker', "advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste", 'image'], 'toolbar' => "undo redo | forecolor backcolor | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"]])->label(Yii::t('articles', 'Short description'));
?>
                    <?php 
echo $form->field($category_translation, 'text', ['inputOptions' => ['class' => 'form-control']])->widget(TinyMce::className(), ['options' => ['rows' => 20], 'language' => 'ru', 'clientOptions' => ['plugins' => ['textcolor colorpicker', "advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste", 'image'], 'toolbar' => "undo redo | forecolor backcolor | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"]])->label(Yii::t('articles', 'Full description'));
?>
                    <input type="submit" class="btn btn-primary pull-right" value="<?php 
echo Yii::t('articles', 'Save');
?>
">
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <i class="glyphicon glyphicon-list"></i>
Exemplo n.º 7
0
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\tinymce\TinyMce;
/* @var $this yii\web\View */
/* @var $model app\models\Comment */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="comment-form closed">

    <?php 
$form = ActiveForm::begin();
?>
        <?php 
echo $form->field($model, 'comment')->widget(TinyMce::className(), ['options' => ['rows' => 6], 'language' => Yii::$app->language, 'clientOptions' => ['plugins' => ["advlist autolink lists link charmap", "searchreplace visualblocks code fullscreen", "contextmenu paste"], 'menu' => [], 'toolbar' => "undo redo | bold italic |  bullist numlist | link"]])->label(false);
?>

        <div class="form-group">
            <?php 
echo Html::submitButton(Yii::t('app', 'Speichern'), ['class' => 'btn btn-success']);
?>
        </div>

    <?php 
ActiveForm::end();
?>

</div>
Exemplo n.º 8
0
$form = ActiveForm::begin();
?>
    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <div class="panel panel-default">
                <div class="panel-heading"><i class="fa fa-sign-in"></i> <?php 
echo $this->title;
?>
</div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-md-12">
                            <?php 
echo $form->field($model, 'title')->textInput();
?>
                            <?php 
echo $form->field($model, 'description')->widget(TinyMce::className(), ['options' => ['rows' => 6, 'automatic_uploads' => false, 'file_picker_types' => 'image', 'images_upload_base_path' => '/some/basepath', 'images_upload_url' => 'postAcceptor.php'], 'language' => 'ru', 'clientOptions' => ['plugins' => ["image", "advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste"], 'image_advtab' => true, 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"]]);
?>
                        </div>
                    </div>
                </div>
                <div class="panel-footer text-center">
                    <?php 
echo Html::button('Добавить новость', ['type' => 'submit', 'class' => 'btn btn-info']);
?>
                </div>
            </div>
        </div>
    </div>
<?php 
$form::end();
Exemplo n.º 9
0
    ?>
        <h3>Language: <?php 
    echo $lang;
    ?>
</h3>
        <div class="row">
            <div class="col-lg-12">
                <label>Title</label>
                <?php 
    echo Html::textInput("title[{$lang}]", $model->getTitle($lang), ['class' => 'form-control']);
    ?>
            </div>
            <div class="col-lg-12">
                <label>Content</label>
                <?php 
    echo TinyMce::widget(['name' => "content[{$lang}]", 'value' => $model->getContent($lang), 'options' => ['rows' => 12], 'language' => 'es', 'clientOptions' => ['content_css' => '/css/bootstrap.min.css,/css/site.css', 'plugins' => ["advlist autolink lists link image charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste", "textcolor jbimages"], 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages | forecolor"]]);
    ?>
            </div>
        </div>
    <?php 
}
?>


    <div class="form-group" style="margin-top: 30px;">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success btn-lg' : 'btn btn-primary btn-lg']);
?>
    </div>

    <?php 
Exemplo n.º 10
0
<div class="wrapper headline" style="" id="title">
    <label class="head">
        <span class="badge"><?php 
echo $model->noTitle;
?>
</span>&nbsp;
        <i class="fa fa-pencil fa-lg"></i>&nbsp;
        <?php 
echo Yii::t('app', 'Naslov i opis ponude...');
?>
    </label>
    	<?php 
echo ' <span class="optional">(opciono)</span>';
?>
    <i class="fa fa-chevron-down chevron"></i>
</div>
<div class="wrapper body fadeIn animated" style="border-top:none;" id="sections05">
	<?php 
echo $this->render('../_hint.php', ['message' => $message]);
?>
	<?php 
echo $form->field($model, 'title', [])->input('text', ['value' => $model->title == null ? $service->sCaseName . (count($object_model) == 1 ? ': ' . $object_model[0]->tName : null) : $model->title]);
?>
    
	<?php 
echo $form->field($model, 'description')->widget(TinyMce::className(), ['options' => ['rows' => 6], 'language' => 'sr', 'clientOptions' => ['plugins' => ["insertdatetime media table contextmenu paste"], 'convert_fonts_to_spans' => true, 'paste_as_text' => true, 'menubar' => false, 'statusbar' => false, 'toolbar' => "undo redo | bold italic | bullist numlist outdent indent"]]);
?>
	<?php 
echo $this->render('_submitButton.php');
?>
</div>
Exemplo n.º 11
0
$this->beginBlock('main');
?>

        <p>
            
			<?php 
echo $form->field($model, 'photo_gallery_id')->dropDownList(\yii\helpers\ArrayHelper::map(dmstr\modules\news\models\ImageGallery::find()->all(), 'id', 'name'), ['prompt' => Yii::t('app', 'Select')]);
?>
			<?php 
echo $form->field($model, 'image')->widget('hrzg\\moxiecode\\moxiemanager\\widgets\\FilePicker', ["model" => $model, "attribute" => "image", "options" => ["class" => "form-control", "placeholder" => \Yii::t("app", "Click Select to insert a file..."), "readonly" => true, "edit" => true, "preview" => true]]);
?>
			<?php 
echo $form->field($model, 'title')->textInput(['maxlength' => 45]);
?>
			<?php 
echo $form->field($model, 'text_html')->widget(\dosamigos\tinymce\TinyMce::className(), ['options' => ['rows' => 15, 'paste_remove_styles' => true], 'language' => 'de', 'clientOptions' => ['forced_root_block' => 'div', 'plugins' => ["advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks fullscreen", "insertdatetime media table contextmenu paste", "image media preview code"], 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | pastetext", 'menubar' => false]]);
?>
			<?php 
echo $form->field($model, 'published_at')->widget(\zhuravljov\widgets\DateTimePicker::className(), ['options' => ['class' => 'form-control', 'style' => 'width:145px;'], 'clientOptions' => ['autoclose' => true, 'todayHighlight' => true, 'format' => 'yyyy-mm-dd hh:ii']]);
?>
			<?php 
echo $form->field($model, 'source')->textInput(['maxlength' => 255]);
?>
			<?php 
echo $form->field($model, 'tags')->textInput(['maxlength' => 45]);
?>
        </p>
        <?php 
$this->endBlock();
?>
        
Exemplo n.º 12
0
?>

                    <?php 
echo $form->field($model, 'name', ['template' => "{label}\n<div class='col-sm-10'>{input}\n{hint}\n{error}</div>", 'labelOptions' => ['class' => 'control-label col-sm-2'], 'inputOptions' => ['class' => 'form-control', 'placeholder' => $model->name]])->textInput();
?>



                    <?php 
echo $form->field($model, 'precontent')->textarea(['rows' => 6, 'placeholder' => $model->precontent]);
?>



                    <?php 
echo $form->field($model, 'content')->widget(TinyMce::className(), ['options' => ['rows' => 6], 'language' => 'ru', 'clientOptions' => ['toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"]]);
?>

                    <?php 
echo $form->field($model, 'comment')->textarea(['rows' => 6, 'placeholder' => $model->comment]);
?>


                    <!--  <?php 
echo $form->field($model, 'source')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model, 'count')->textInput();
?>
Exemplo n.º 13
0
<?php

use yii\helpers\Html;
use kartik\widgets\ActiveField;
use yii\helpers\ArrayHelper;
use dosamigos\tinymce\TinyMce;
?>
<div class="form-group kv-fieldset-inline">
    <?php 
echo Html::activeLabel($model_action_property, '[' . $key . ']actionProperty', ['label' => $property->label, 'class' => 'col-sm-3 control-label']);
?>
    <div class="col-sm-9" style="padding-right:0">
	<?php 
echo $form->field($model_action_property, '[' . $key . ']actionProperty', ['showLabels' => false, 'hintType' => ActiveField::HINT_SPECIAL, 'hintSettings' => ['onLabelClick' => true, 'onLabelHover' => false, 'title' => '<i class="glyphicon glyphicon-info-sign"></i> Napomena']])->widget(TinyMce::className(), ['options' => ['rows' => 6], 'language' => 'sr', 'clientOptions' => ['plugins' => ["insertdatetime media table contextmenu paste"], 'convert_fonts_to_spans' => true, 'paste_as_text' => true, 'menubar' => false, 'statusbar' => false, 'toolbar' => "undo redo | bold italic | bullist numlist outdent indent"]]);
?>
	</div>        
</div>
Exemplo n.º 14
0
    <?php 
echo $form->field($upload_form_model, 'post_id')->hiddenInput()->label(false)->error(false);
ActiveForm::end();
?>

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'header')->label('Заголовок:');
?>


    <?php 
echo $form->field($model, 'text')->label('Текст:')->widget(\dosamigos\tinymce\TinyMce::className(), ['options' => ['rows' => 14], 'language' => 'ru', 'clientOptions' => ['plugins' => ["advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste image"], 'file_browser_callback' => new yii\web\JsExpression("function(field_name, url, type, win) {\n                    if(type=='image')  \$('#file_upload_input').click();\n             }"), 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"]]);
?>

<div class="form-group">
    <label>Категория: </label>
    <?php 
echo Html::activeDropDownList($model, 'category_id', \yii\helpers\ArrayHelper::map(\app\models\Categories::findAll(['active' => true]), 'id', 'name'), ['class' => 'form-control']);
?>
</div>

    <?php 
echo $form->field($model, 'date')->label('Дата:')->widget(DatePicker::className(), ['model' => $model, 'attribute' => 'date', 'language' => 'ru', 'options' => ['class' => 'form-control']]);
?>


Exemplo n.º 15
0
echo $form->field($model, 'image')->textInput(['maxlength' => 255]);
?>

<?php 
if ($model->image && $model->image != '') {
    ?>
    <img src="<?php 
    echo $model->image;
    ?>
" height="200px">
<?php 
}
?>

<?php 
echo $form->field($model, 'content')->widget(TinyMce::className(), ['options' => ['rows' => 22], 'language' => 'ru', 'clientOptions' => ['plugins' => ["searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking image", "table contextmenu directionality emoticons template textcolor paste fullpage textcolor "], 'toolbar' => "cut copy paste | searchreplace | bullist numlist | outdent indent blockquote | undo redo | link unlink anchor | image media code | styleselect formatselect fontselect fontsizeselect | forecolor backcolor  newdocument fullpage | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | fullscreen "]]);
?>

<div class="form-group">
    <?php 
echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>

<?php 
ActiveForm::end();
?>



Exemplo n.º 16
0
/* @var $model app\models\Posts */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="posts-form">

    <?php 
$form = ActiveForm::begin(['id' => 'post-form']);
?>
    <div class="col-sm-8">
        <?php 
echo $form->field($model, 'title', ['inputOptions' => ['class' => 'form-control', 'placeholder' => 'Title']])->textInput(['maxlength' => true])->label(false);
?>

        <?php 
echo $form->field($model, 'content')->widget(TinyMce::className(), ['options' => ['rows' => 6], 'clientOptions' => ['plugins' => ["advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste"], 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"]])->label(false);
?>

        <?php 
echo $form->field($model, 'source', ['inputOptions' => ['class' => 'form-control', 'placeholder' => 'source']])->textInput(['maxlength' => true])->label(false);
?>

        <?php 
echo $form->field($model, 'status')->dropDownList(['Publish' => 'Publish', 'Draft' => 'Draft', 'Delete' => 'Delete'], ['prompt' => ''])->label(false);
?>


        <div class="form-group">
            <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
Exemplo n.º 17
0
<div class="video-form">

    <?php 
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
?>
    <?php 
echo $form->field($model, 'course_id')->dropdownList(Course::find()->select(['name', 'id'])->where(['id' => $courseIds])->indexBy('id')->column(), ['prompt' => 'Select Course']);
?>

    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'description')->widget(TinyMce::className(), ['options' => ['rows' => 6], 'clientOptions' => ['menubar' => 'false']]);
?>

    <?php 
echo $form->field($model, 'path')->fileInput();
?>


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
Exemplo n.º 18
0
        <?php 
echo Html::activeDropDownList($model, 'category_id', \yii\helpers\ArrayHelper::map(\app\models\Categories::findAll(['active' => true]), 'id', 'name'), ['class' => 'form-control']);
?>
    </div>


    <?php 
echo $form->field($model, 'header')->textInput(['maxlength' => 255]);
?>

    <?php 
echo $form->field($model, 'text')->label('Текст:')->widget(\dosamigos\tinymce\TinyMce::className(), ['options' => ['rows' => 14], 'language' => 'ru', 'clientOptions' => ['plugins' => ["advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste image"], 'file_browser_callback' => new yii\web\JsExpression("function(field_name, url, type, win) {\n                    if(type=='image')  \$('#file_upload_input').click();\n             }"), 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"]]);
?>

    <?php 
echo $form->field($model, 'anons')->label('Анонс:')->textarea(['rows' => 4])->widget(\dosamigos\tinymce\TinyMce::className(), ['options' => ['rows' => 4], 'language' => 'ru', 'clientOptions' => ['menubar' => false, 'plugins' => ["advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste "], 'toolbar' => "undo redo | styleselect | bold italic | bullist numlist outdent indent | link"]]);
?>

    <?php 
echo $form->field($model, 'date')->label('Дата:')->widget(\yii\jui\DatePicker::className(), ['model' => $model, 'attribute' => 'date', 'language' => 'ru', 'options' => ['class' => 'form-control']]);
?>

    <?php 
echo $form->field($model, 'file')->fileInput()->label('Прикрепить изображение:');
?>

    <?php 
echo $form->field($model, 'url')->textInput(['maxlength' => 255]);
?>

    <div class="form-group">