?> <div class="field-form"> <?php $form = ActiveForm::begin(); ?> <div class="row"> <div class="col-md-6"> <?php echo $form->field($model, 'name')->textInput(); ?> </div> <div class="col-md-6"> <?php echo $form->field($model, 'type_id')->dropDownList(ArrayHelper::map(FieldType::find()->all(), 'id', 'name')); ?> </div> </div> <div class="row"> <div class="col-md-6"> <?php echo $form->field($model, 'required')->radioList(['no' => Yii::t('order', 'no'), 'yes' => Yii::t('order', 'yes')]); ?> </div> <div class="col-md-6"> <?php echo $form->field($model, 'order')->textInput(['type' => 'number']); ?> </div>