<?php

use backend\widgets\ActiveForm;
use backend\widgets\meta\MetaForm;
use common\modules\attachment\widgets\SingleWidget;
use yii\helpers\Html;
use common\models\Cat;

/* @var $this yii\web\View */
/* @var $model common\models\Cat */
/* @var $form backend\widgets\ActiveForm */
?>

<div class="box box-success">
    <div class="box-body">
        <?php $form = ActiveForm::begin(); ?>

<!--        --><?//= $form->field($model, 'pid')->dropDownList(Cat::getDropDownList(Cat::lists()), ['prompt' => '请选择']) ?>

        <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
        <?= $form->field($model, 'icon')->hint('规格：80px * 80px，<a target="blank" href="https://www.iconfont.cn/">下载图标库</a>')->widget(SingleWidget::className()) ?>

<!--        --><?//= $form->field($model, 'cover')->hint('暂时无用，规格：暂无，<a target="blank" href="https://www.fotor.com.cn/">在线设计工具</a>')->widget(SingleWidget::className()) ?>
<!--        --><?//= $form->field($model, 'is_hot')->hint('热门推荐将显示在首页')->checkbox() ?>
<!---->
<!--        --><?//= $form->field($model, 'description')->textarea(['maxlength' => true]) ?>


        <?= $form->field($model, 'sort')->textInput() ?>

        <div class="form-group form-submit">
            <?= Html::submitButton($model->isNewRecord ? '创建' : '更新', ['class' => $model->isNewRecord ? 'btn btn-success btn-block' : 'btn btn-success btn-block']) ?>
        </div>

        <?php ActiveForm::end(); ?>
    </div>
</div>
