You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.7 KiB

5 years ago
5 years ago
  1. <?PHP
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. use blobt\widgets\DateRangePicker;
  5. $this->title = '测试';
  6. $this->params['subtitle'] = '这是一个小小的测试';
  7. $this->params['breadcrumbs'][] = $this->title;
  8. /* @var $this yii\web\View */
  9. /* @var $model common\models\CategorySearch */
  10. /* @var $form yii\widgets\ActiveForm */
  11. ?>
  12. <?php
  13. $form = ActiveForm::begin([
  14. 'action' => ['index'],
  15. 'method' => 'get',
  16. 'validateOnType' => true,
  17. ]);
  18. ?>
  19. <div class="col-sm-11">
  20. <div class="dataTables_filter">
  21. <?=
  22. $form->field($model, 'id', [
  23. "template" => "{input}{error}",
  24. "inputOptions" => [
  25. "placeholder" => "检索的id",
  26. "class" => "form-control"
  27. ],
  28. "errorOptions" => [
  29. "class" => "error-tips"
  30. ]
  31. ])
  32. ?>
  33. <?=
  34. $form->field($model, 'cat_name', [
  35. "template" => "{input}{error}",
  36. "inputOptions" => [
  37. "placeholder" => "检索类名",
  38. "class" => "form-control",
  39. ],
  40. "errorOptions" => [
  41. "class" => "error-tips"
  42. ]
  43. ])
  44. ?>
  45. <?=
  46. $form->field($model, "created_at", [
  47. "template" => "{input}{error}",
  48. "errorOptions" => [
  49. "class" => "error-tips"
  50. ]
  51. ])->widget(DateRangePicker::className());
  52. ?>
  53. </div>
  54. </div>
  55. <div class="col-sm-1" style="padding: 0;">
  56. <?= Html::submitButton('<i class="fa fa-filter"></i>', ['class' => 'btn btn-default']) ?>
  57. <?= Html::resetButton('<i class="fa fa-eraser"></i>', ['class' => 'btn btn-default']) ?>
  58. </div>
  59. <?php ActiveForm::end(); ?>