public function actionIndex() { $table = Validation::generateTable(); return $this->render('index', ['table' => $table]); }
echo Select2::widget(['name' => 'state_10', 'language' => 'ru', 'value' => $ur_l_id, 'data' => ArrayHelper::map($UrRecords, 'id', 'name'), 'options' => ['placeholder' => 'Юридическое лицо', 'id' => 'ur']]); ?> <br> <script> $(document).ready(function () { $('#ur').change(function () { window.location.href='?ur_l_id='+this.value; }); }); </script> <?php if ($apteki) { print $form->field($model, 'apteka_id')->dropDownList(ArrayHelper::map($apteki, 'id', 'address'), ['multiple' => false]); print Validation::generateTable(1, $model2); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Сформировать' : 'Отредактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php } ?> <?php ActiveForm::end(); ?>