field($model, 'document_id')->widget(Select2::className(), [ 'data' => Document::find()->select(['title', 'id']) ->indexBy('id')->column(), 'options' => ['placeholder' => 'Выберите документ','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true ], ]) ?> field($model, 'title')->textInput(['maxlength' => true]) ?> field($model, 'accompanying_document')->widget(FileInput::classname(), [ 'options' => ['accept' => 'text/*'], 'pluginOptions' => [ 'allowedFileExtensions'=>['docx'],'showUpload' => true ], ]); ?>
'btn btn-success']) ?>