|
@ -3,6 +3,8 @@ |
|
|
use yii\helpers\Html; |
|
|
use yii\helpers\Html; |
|
|
use yii\widgets\ActiveForm; |
|
|
use yii\widgets\ActiveForm; |
|
|
use blobt\widgets\DatePicker; |
|
|
use blobt\widgets\DatePicker; |
|
|
|
|
|
use blobt\widgets\Select2; |
|
|
|
|
|
use blobt\widgets\DatetimePicker; |
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */ |
|
|
/* @var $this yii\web\View */ |
|
|
/* @var $model common\models\Category */ |
|
|
/* @var $model common\models\Category */ |
|
@ -14,18 +16,19 @@ use blobt\widgets\DatePicker; |
|
|
|
|
|
|
|
|
<div class="box-body"> |
|
|
<div class="box-body"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'cat_name')->textInput(['maxlength' => true]) ?>
|
|
|
<?= $form->field($model, 'cat_name')->textInput(['maxlength' => true]) ?>
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'icon')->textInput(['maxlength' => true]) ?>
|
|
|
<?= $form->field($model, 'icon')->textInput(['maxlength' => true]) ?>
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'icon_type')->textInput() ?>
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'icon_type')->widget(Select2::className(), ["data" => $model::$iconType]) ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'icon_type')->checkbox(["a" => "A", "b" => "B"]) ?>
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
|
|
|
<?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'sort_order')->textInput() ?>
|
|
|
<?= $form->field($model, 'sort_order')->textInput() ?>
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'created_at')->widget(DatePicker::className()) ?>
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'created_at')->widget(DatetimePicker::className()) ?>
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div class="box-footer"> |
|
|
<div class="box-footer"> |
|
|