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.

46 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\GoodsSearch */
  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="col-sm-12">
  16. <div class="dataTables_filter">
  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. <?= $form->field($model, "created_at_range", [
  29. "template" => "{input}{error}",
  30. "inputOptions" => [
  31. "placeholder" => "创建时间",
  32. ],
  33. "errorOptions" => [
  34. "class" => "error-tips"
  35. ]
  36. ])->widget(DateRangePicker::className());
  37. ?>
  38. <div class="form-group">
  39. <?= Html::submitButton('<i class="fa fa-filter"></i>', ['class' => 'btn btn-default']) ?>
  40. <?= Html::resetButton('<i class="fa fa-eraser"></i>', ['class' => 'btn btn-default']) ?>
  41. </div>
  42. </div>
  43. </div>
  44. <?php ActiveForm::end(); ?>