app/template/bootcube/Block/search_product.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% form_theme form 'Form/form_div_layout.twig' %}
  9. {#
  10. <div class="ec-headerSearch">
  11.     <form method="get" class="searchform" action="{{ path('product_list') }}">
  12.         <div class="ec-headerSearch__category">
  13.             <div class="ec-select ec-select_search">
  14.                 {{ form_widget(form.category_id, {'id': null, 'attr': {'class': 'category_id'}}) }}
  15.             </div>
  16.         </div>
  17.         <div class="ec-headerSearch__keyword">
  18.             <div class="ec-input">
  19.                 {{ form_widget(form.name, {'id': null, 'attr': {'class': 'search-name', 'placeholder' : 'キーワードを入力' }} ) }}
  20.                 <button class="ec-headerSearch__keywordBtn" type="submit">
  21.                     <div class="ec-icon">
  22.                         <img src="{{ asset('assets/icon/search-dark.svg') }}" alt="">
  23.                     </div>
  24.                 </button>
  25.             </div>
  26.         </div>
  27.     </form>
  28. </div>
  29. #}
  30. {# bst5_header用に修正、デフォルトの検索フォームを使う場合は下記のコードを削除して、上記のコメントアウトを外してください。 #}
  31. <form class="d-block d-lg-flex" method="get" action="{{ path('product_list') }}">
  32.     {{ form_widget(form.category_id, {'id': null, 'attr': {'class': 'w-full w-lg-auto mb-3 mb-lg-0 py-3 py-lg-0 px-4 bgc-white bd bdrs-0 fz-4 c-select-reset'}}) }}
  33.     <div class="input-group">
  34.         {{ form_widget(form.name, {'id': null, 'attr': {'class': 'form-control bdrs-0', 'placeholder' : 'キーワードを入力' }} ) }}
  35.         <div class="input-group-append">
  36.             <button class="btn bdrs-0 bgc-main c-white" type="submit">
  37.             <i data-feather="search" width="14" height="14"></i>
  38.             </button>
  39.         </div>
  40.     </div>
  41. </form>