?> <?php echo $form->field($model, 'SystemTags')->widget(Select2::class, ['data' => $tags->getByType(1, 1), 'language' => 'en', 'options' => ['multiple' => true, 'placeholder' => 'tags for locate item on page template'], 'pluginOptions' => ['allowClear' => true]]); ?> <div class="form-group row"> <div class="col-lg-2 small"><?php echo Yii::t('main', 'Date'); ?> </div> <?php echo $form->field($model, 'date', ['template' => '<div class="col-lg-5">{input}</div>', 'options' => ['class' => 'inline']])->widget(DateTimePicker::class); ?> <?php echo $form->field($model, 'lang_id', ['template' => '<div class="col-lg-5">{input}</div>', 'options' => ['class' => 'inline']])->dropDownList(Lang::selector()); ?> </div> <div class="form-group row"> <div class="col-lg-2 small text-left"><?php echo Yii::t('main', 'Publication'); ?> </div> <?php echo $form->field($model, 'publication_date', ['template' => '<div class="col-lg-5">{input}</div>', 'options' => ['class' => 'inline']])->widget(DateTimePicker::class); ?> <?php echo $form->field($model, 'published', ['template' => '<div class="col-lg-5">{input}</div>', 'options' => ['class' => 'inline']])->checkbox(); ?> </div>
</div> </div> <?php echo $form->field($model, 'slider_id', ['template' => '{input}'])->hiddenInput(); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'text')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'lang_id')->dropDownList(Lang::selector()); ?> <?php echo $form->field($model, 'url')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'image')->widget(FileInput::className(), ['buttonTag' => 'button', 'buttonName' => 'Browse', 'buttonOptions' => ['class' => 'btn btn-default'], 'options' => ['class' => 'form-control'], 'template' => '<div class="input-group">{input}<span class="input-group-btn">{button}</span></div>', 'thumb' => 'original', 'imageContainer' => '.image_preview', 'pasteData' => FileInput::DATA_URL, 'callbackBeforeInsert' => 'function(e, data) { console.log( data ); }']); ?> <?php // $form->field($model, 'image')->textInput(['maxlength' => true]) ?>