<?php echo $form->field($model, 'inflow_year')->textInput(['disabled' => true]); ?> <?php echo $form->field($model, 'number_of_students')->textInput(); ?> <?php echo $form->field($model, 'id_edebo')->textInput(); ?> <?php $okr = Okr::findOne($_GET['okr_id']); ?> <?php echo $form->field($model, 'id_okr')->hiddenInput(['value' => $_GET['okr_id']])->label(false); ?> <?php echo $form->field($model, 'tmp_okr')->textInput(['value' => $okr["okr_name"], 'disabled' => true])->label('ОКР'); ?> <?php echo $form->field($model, 'parent_group')->dropDownList(ArrayHelper::map(Groups::find()->where(['is_subgroup' => 0])->all(), 'group_id', 'main_group_name'), ['disabled' => true]); ?> <div class="form-group"> <?php
/** * @return \yii\db\ActiveQuery */ public function getOkr() { return $this->hasOne(Okr::className(), ['okr_id' => 'id_okr']); }