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.

48 lines
1.4 KiB

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\ActiveForm;
  4. use \blobt\widgets\DateRangePicker;
  5. /* @var $this yii\web\View */
  6. /* @var $model common\models\searchs\ExpressTemplateSearch */
  7. /* @var $form yii\widgets\ActiveForm */
  8. ?>
  9. <?php $form = ActiveForm::begin([
  10. 'action' => ['index'],
  11. 'method' => 'get',
  12. 'validateOnType' => true,
  13. ]);
  14. ?>
  15. <div class="row">
  16. <div class="col">
  17. <?= $form->field($model, 'id', [
  18. "template" => "{input}{error}",
  19. "inputOptions" => [
  20. "placeholder" => "检索ID",
  21. "class" => "form-control",
  22. ],
  23. "errorOptions" => [
  24. "class" => "error-tips"
  25. ]
  26. ])
  27. ?>
  28. </div>
  29. <div class="col">
  30. <?= $form->field($model, "created_at_range", [
  31. "template" => "{input}{error}",
  32. "inputOptions" => [
  33. "placeholder" => "创建时间",
  34. ],
  35. "errorOptions" => [
  36. "class" => "error-tips"
  37. ]
  38. ])->widget(DateRangePicker::className());
  39. ?>
  40. </div>
  41. <div class="form-group">
  42. <?= Html::submitButton('<i class="fa fa-filter"></i>', ['class' => 'btn btn-default']) ?>
  43. <?= Html::resetButton('<i class="fa fa-eraser"></i>', ['class' => 'btn btn-default']) ?>
  44. </div>
  45. </div>
  46. <?php ActiveForm::end(); ?>