guild/backend/modules/settings/views/skill/_form.php

27 lines
662 B
PHP
Raw Normal View History

2018-10-11 11:15:09 +03:00
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
2018-10-12 14:52:08 +03:00
/* @var $model backend\modules\settings\models\Skill */
2018-10-11 11:15:09 +03:00
/* @var $form yii\widgets\ActiveForm */
?>
2018-10-12 14:52:08 +03:00
<div class="skill-form">
2018-10-11 11:15:09 +03:00
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
2021-06-08 17:05:54 +03:00
<?= $form->field($model, 'category_id')->dropDownList(
\yii\helpers\ArrayHelper::map(\common\models\SkillCategory::getAll(), 'id', 'name')
); ?>
2018-10-11 11:15:09 +03:00
<div class="form-group">
<?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>