|
|
@ -8,34 +8,47 @@ use yii\widgets\ActiveForm; |
|
|
|
/* @var $form yii\widgets\ActiveForm */ |
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="category-search"> |
|
|
|
|
|
|
|
<?php $form = ActiveForm::begin([ |
|
|
|
<?php |
|
|
|
$form = ActiveForm::begin([ |
|
|
|
'action' => ['index'], |
|
|
|
'method' => 'get', |
|
|
|
]); ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'id') ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'cat_name') ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'icon') ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'icon_type') ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'description') ?>
|
|
|
|
|
|
|
|
<?php // echo $form->field($model, 'sort_order') ?>
|
|
|
|
|
|
|
|
<?php // echo $form->field($model, 'created_at') ?>
|
|
|
|
'validateOnType' => true, |
|
|
|
]); |
|
|
|
?>
|
|
|
|
|
|
|
|
<?php // echo $form->field($model, 'updated_at') ?>
|
|
|
|
<div class="col-sm-11"> |
|
|
|
<div class="dataTables_filter"> |
|
|
|
<?= |
|
|
|
$form->field($model, 'id', [ |
|
|
|
"template" => "{input}{error}", |
|
|
|
"inputOptions" => [ |
|
|
|
"placeholder" => "检索的id", |
|
|
|
"class" => "form-control", |
|
|
|
], |
|
|
|
"errorOptions" => [ |
|
|
|
"class" => "error-tips" |
|
|
|
] |
|
|
|
]) |
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
|
|
|
|
<?= Html::resetButton('Reset', ['class' => 'btn btn-outline-secondary']) ?>
|
|
|
|
<?= |
|
|
|
$form->field($model, 'cat_name', [ |
|
|
|
"template" => "{input}{error}", |
|
|
|
"inputOptions" => [ |
|
|
|
"placeholder" => "检索类名", |
|
|
|
"class" => "form-control", |
|
|
|
], |
|
|
|
"errorOptions" => [ |
|
|
|
"class" => "error-tips" |
|
|
|
] |
|
|
|
]) |
|
|
|
?>
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-sm-1" style="padding: 0;"> |
|
|
|
<?= Html::submitButton('<i class="fa fa-filter"></i>', ['class' => 'btn btn-default']) ?>
|
|
|
|
<?= Html::resetButton('<i class="fa fa-eraser"></i>', ['class' => 'btn btn-default']) ?>
|
|
|
|
</div> |
|
|
|
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
|
|
|
|
</div> |