field($model, 'template_id')->widget(Select2::className(), [ 'data' => Template::find()->select(['title', 'id'])->indexBy('id')->column(), 'options' => ['placeholder' => 'Выберите шаблон','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => false ], ]) ?> field($model, 'field_id')->widget(Select2::className(), [ 'data' => DocumentField::find()->select(['title', 'document_field.id']) ->indexBy('id')->column(), 'options' => ['placeholder' => 'Выберите поле','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => false, 'closeOnSelect' => false ], ]) ?>
'btn btn-success']) ?>