?> <div class="file-create"> <h1><?php echo Html::encode($this->title); ?> </h1> <div class="file-form"> <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?> <?php echo $form->field($model, 'collection_id')->dropDownList(\app\models\Collection::getList()); ?> <?php echo $form->field($model, 'files[]')->fileInput(['multiple' => true]); ?> <div class="form-group"> <?php echo Html::submitButton('Загрузить', ['class' => 'btn btn-success']); ?> </div> <?php ActiveForm::end(); ?>