echo Select3::widget(['model' => $model, 'attribute' => "[{$num}]organizaciyaId", 'secondAttribute' => "[{$num}]organizaciyaNazvanie", 'data' => $organizacii, 'placeholder' => 'Выберите организацию', 'secondPlaceholder' => 'Введите наименование организации']); echo '</div>'; echo '<div class="col-md-4 ' . ($model->hasErrors('tipDokumenta') ? 'has-error' : '') . '">'; echo Html::activeLabel($model, "[{$num}]tipDokumenta"); echo Html::activeDropDownList($model, "[{$num}]tipDokumenta", TipDokumentaObObrazovanii::kursTipyMap(), ['class' => 'form-control']); echo Html::tag('div', $model->getFirstError('tipDokumenta'), ['class' => 'help-block']); echo '</div>'; echo '<div class="col-md-4 no-right-padding ' . ($model->hasErrors('kursNazvanie') ? 'has-error' : '') . '">'; echo Html::activeLabel($model, "[{$num}]kursNazvanie"); echo Html::activeTextInput($model, "[{$num}]kursNazvanie", ['class' => 'form-control', 'placeholder' => '']); echo Html::tag('div', $model->getFirstError('kursNazvanie'), ['class' => 'help-block']); echo '</div>'; echo '</div>'; echo '<div class="col-md-4 no-left-padding ' . ($model->hasErrors('kursChasy') ? 'has-error' : '') . '">'; echo Html::activeLabel($model, "[{$num}]kursChasy"); echo Html::activeInput('number', $model, "[{$num}]kursChasy", ['class' => 'form-control']); echo Html::tag('div', $model->getFirstError('kursChasy'), ['class' => 'help-block']); echo '</div>'; echo '<div class="col-md-4 ' . ($model->hasErrors('dataVidachi') ? 'has-error' : '') . '">'; echo Html::activeLabel($model, '[{$num}]dataVidachi'); echo DatePicker::widget(['model' => $model, 'attribute' => "[{$num}]dataVidachi", 'language' => 'ru', 'type' => DatePicker::TYPE_COMPONENT_PREPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy'], 'options' => ['placeholder' => 'Выберите дату выдачи']]); echo Html::tag('div', $model->getFirstError('dataVidachi'), ['class' => 'help-block']); echo '</div>'; echo '<div class="col-md-4 no-right-padding ' . ($model->hasErrors('documentKopiya') ? 'has-error' : '') . '">'; echo Html::activeLabel($model, "[{$num}]documentKopiya"); echo \app\widgets\Files2Widget::widget(['model' => $model, 'attribute' => "[{$num}]documentKopiya"]); echo Html::tag('div', $model->getFirstError('documentKopiya'), ['class' => 'help-block']); echo Html::activeHiddenInput($model, "[{$num}]udalit", ['class' => 'udalit_input']); echo '</div>'; //panel-body end echo '</div>';