list.php 2.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. use yii\widgets\ActiveForm;
  3. ?>
  4. <?php $this->beginContent('@app/modules/admin/views/layouts/_datatable_start.php'); ?><?php $this->endContent(); ?>
  5. <div class="row ">
  6. <div class="col-12">
  7. <div class="card main-wrapper">
  8. <div class="card-body">
  9. <!-- 搜索表单 -->
  10. <div class="searchbox" >
  11. <?php $form = ActiveForm::begin(['options' => ['id'=>'searchform','class' => 'row gy-2 gx-3 align-items-center'], 'enableClientValidation' => false]); ?>
  12. <?php
  13. echo $form->field($model, 'name', ['template' => '{label}{input}','options' =>['class' => 'col-sm-auto'],'inputOptions' =>['class' => 'form-control','placeholder'=>'请输入标识符','autocomplete'=>'off'],'labelOptions' => ['class' => 'visually-hidden']]);
  14. ?>
  15. <?php
  16. echo $form->field($model, 'bak', ['template' => '{label}<div class="input-group"><div class="input-group-text">名称</div>{input}</div>','options' =>['class' => 'col-sm-auto'],'inputOptions' =>['class' => 'form-control','placeholder'=>'','autocomplete'=>'off'],'labelOptions' => ['class' => 'visually-hidden']]);
  17. ?>
  18. <?php
  19. echo $form->field($model, 'type', ['template' => '{label}{input}','options' =>['class' => 'col-sm-auto'],'inputOptions' =>['class' => 'form-select ', 'data-dselect-clearable'=>'true','placeholder'=>'','autocomplete'=>'off'],'labelOptions' => ['class' => 'visually-hidden']])->dropDownList($model->typeOptions(), ['prompt'=>'类型']);
  20. ?>
  21. <div class="col-sm-auto">
  22. <button type="button" class="btn btn-light" id="searchform-btn"><i class="fas fa-search"></i></button>
  23. </div>
  24. <?php ActiveForm::end(); ?>
  25. </div>
  26. <?php $this->beginContent('@app/modules/admin/views/layouts/_table.php'); ?><?php $this->endContent(); ?>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <?php $this->beginContent('@app/modules/admin/views/layouts/_datatable_end.php'); ?><?php $this->endContent(); ?>
  32. <?php $this->beginContent('@app/modules/admin/views/layouts/_tablejs.php'); ?><?php $this->endContent(); ?>