1234567891011121314151617181920212223242526272829 |
- <?php
- use yii\widgets\ActiveForm;
- ?>
- <?php $this->beginContent('@app/modules/admin/views/layouts/_datatable_start.php'); ?><?php $this->endContent(); ?>
- <div class="row ">
- <div class="col-12">
- <div class="card main-wrapper">
- <div class="card-body">
- <!-- 搜索表单 -->
- <div class="searchbox" >
- <?php $form = ActiveForm::begin(['options' => ['id'=>'searchform','class' => 'row gy-2 gx-3 align-items-center'], 'enableClientValidation' => false]); ?>
- <?php
- echo $form->field($model, 'name', ['template' => '{label}{input}','options' =>['class' => 'col-sm-auto'],'inputOptions' =>['class' => 'form-control','placeholder'=>'请输入名称','autocomplete'=>'off'],'labelOptions' => ['class' => 'visually-hidden']]);
- ?>
- <?php
- echo $form->field($model, 'type', ['template' => '{label}{input}','options' =>['class' => 'col-sm-auto'],'inputOptions' =>['class' => 'form-select ', 'data-dselect-clearable'=>'true','placeholder'=>'','autocomplete'=>'off','id'=>'tagcommend-3'],'labelOptions' => ['class' => 'visually-hidden']])->dropDownList($model->typeOptions(), ['prompt'=>'类型']);
- ?>
- <div class="col-sm-auto">
- <button type="button" class="btn btn-light" id="searchform-btn"><i class="fas fa-search"></i></button>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- <?php $this->beginContent('@app/modules/admin/views/layouts/_table.php'); ?><?php $this->endContent(); ?>
- </div>
- </div>
- </div>
- </div>
- <?php $this->beginContent('@app/modules/admin/views/layouts/_datatable_end.php'); ?><?php $this->endContent(); ?>
- <?php $this->beginContent('@app/modules/admin/views/layouts/_tablejs.php'); ?><?php $this->endContent(); ?>
|