= $form->field($model, 'category_id')->dropDownList(Category::getDropDownList(Tree::build(Category::listsByType(0)))) ?>
= $form->field($model, 'chain')->checkboxList([]) ?>
= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
//= $form->field($model, 'description')->textarea()?>
formAttributes() as $attribute): ?>
= $form->field($model, $attribute)->label($moduleModel->getAttributeLabel($attribute))->widget(\common\widgets\dynamicInput\DynamicInputWidget::className(), ['type' => $moduleModel->getAttributeType($attribute), 'data' => $moduleModel->getAttributeItems($attribute), 'options' => $moduleModel->getAttributeOptions($attribute)]) ?>
= $form->field($model, 'city')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'tel')->textInput(['maxlength' => true]) ?>
//= $form->boxField($model, 'meta', ["collapsed" => true])->widget(MetaForm::className())->header("SEO"); ?>
= $form->field($model, 'sort')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'published_at')->widget(
\kartik\datetime\DateTimePicker::className(),
[
'type' => 1,
'options' => [
'value' => !empty($model->published_at) ? date('Y-m-d H:i:s', $model->published_at) : ''
],
'pluginOptions' => ['autoclose' => true]
]
) ?>
= $form->field($model, 'cover')->widget(SingleWidget::className()) ?>
//= $form->field($model, 'commentEnabled')->checkbox(['label' => '开启评论']) ?>
= $form->field($model, 'is_top')->checkbox() ?>
//= $form->field($model, 'is_hot')->checkbox() ?>
//= $form->field($model, 'is_best')->checkbox() ?>
= $form->field($model, 'status')->checkbox() ?>
= $form->field($model, 'view')->textInput() ?>
= $form->field($model, TagBehavior::$formName)->label(TagBehavior::$formLable)->widget(TagsInput::className()) ?>
//= $form->field($model, 'source')->textInput() ?>