language; ?>
field($model, 'name')->textInput(['maxlength' => true]) ?> field($model, 'id')->hiddenInput()->label(false) ?>
field($model, 'before_link_text')->textInput(['maxlength' => true]) ?>
field($model, 'related_entity')->dropDownList(RegulationRelationManager::GetRelatedList(), [ 'id' => 'related_entity_field', 'prompt' => 'Выберите связанную сущность' ]) ?>
field($model, 'attachment_type')->widget(DepDrop::class, [ 'language' => $appLanguage, 'class' => 'form-control', 'options' => [ 'id' => 'attachment_type_field', 'placeholder' => 'Нет типа прикрепляемого документа' ], 'pluginOptions' => [ 'depends' => ['related_entity_field'], 'placeholder' => 'Нет типа прикрепляемого документа', 'url' => $model->isNewRecord ? Url::to(['get-types']) : Url::to(['get-types', 'id' => $model->id]), 'loadingText' => 'Загрузка ...', 'initialize' => $model->id !== null, 'params' => ['related_entity_field'] ], ]); ?>
field($model, 'content_type')->dropDownList(Regulation::getContentTypes(), [ 'id' => 'content_type_field', 'prompt' => 'Выберите тип содержимого' ]) ?>
field($model, 'confirm_required')->checkbox() ?>
'btn btn-success']) ?>
registerJs($js, View::POS_END);