Blame view

frontend/themes/defaults/layouts/parts/searchBox.php 1.11 KB
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  <?php
  use yii\widgets\ActiveForm;
  use yii\helpers\{
      Url, Html
  };
  
  /**
   *
   * @author FilamentV <vortex.filament@gmail.com>
   * @copyright (c), Thread
   */
  ?>
  
  <button type="button" class="btn dropdown-toggle" data-toggle="dropdown"><i
              class="icon-search"></i></button>
  <ul class="dropdown-menu dropdown-menu-right dropdown-animation searchBox">
      <li>
          <?php $form = ActiveForm::begin([
              'action' => Url::toRoute(['/catalog/find/index']),
              'method' => 'get',
              'options' => [
                  'id' => 'searchBoxForm',
                  'class' => 'form-group has-feedback',
  //                'role' => 'search',
              ]
          ]) ?>
          <!--        <form role="search" class="search-box margin-clear">-->
          <div class="form-group has-feedback">
              <?= Html::textInput('q', '', [
                  'class' => 'form-control',
                  'placeholder' => Yii::t('app', 'Search')
              ]) ?>
              <i class="icon-search form-control-feedback js_search_button"></i>
          </div>
          <?php
          ActiveForm::end();
          ?>
      </li>
  </ul>