?> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'code')->textInput(['maxlength' => 63]); ?> <?php echo $form->field($model, 'name')->textInput(['maxlength' => 63]); ?> <?php echo $form->field($model, 'category_id')->dropDownList(FragmentCategory::getCategories($type)); ?> <?php echo $form->field($model, 'description')->textarea(['maxlength' => 256]); ?> <?php $form->defaultButtons(); ?> <?php ActiveForm::end(); ?>