app/template/default/Block/header_search_form.twig line 1

Open in your IDE?
  1. {% block javascript %}
  2.     <script>
  3.     $(function() {
  4.         $(".product_btn_search").click(function(){
  5.             $(this).parent().parent().submit();
  6.         });
  7.         $(".product_btn_del").click(function(){
  8.             $(".search-form-custom").find("input[type='text'], input[type='checkbox'], select").val("");
  9.             $(this).parent().parent().submit();
  10.         });
  11.     });
  12.     </script>
  13. {% endblock %}
  14. <div class="ec-headerNaviRole__search">
  15.     {{ form_start(searchForm, {'method': 'GET', 'action': path('custom_product_search'), 'attr': {'class': 'search-form-custom row'}}) }}
  16.         <div class="ec-headerSearch__keyword search_modal_row">
  17.             <p class="search_modal_column">キーワード</p>
  18.             <div class="ec-input search_modal_column">
  19.                 {{ form_widget(searchForm.keyword, {
  20.                     'attr': {
  21.                         'class': 'form-control',
  22.                         'placeholder': '検索キーワードを入力'
  23.                     }
  24.                 }) }}
  25.             </div>
  26.         </div>
  27.         <div class="search_modal_row">
  28.             <p class="search_modal_column">
  29.                 <span>カテゴリ</span>
  30.             </p>
  31.             <ul class="search_modal_column multi_checkbox" {% if category %}style="display:block"{% endif %}>
  32.                 {% for category in searchForm.category %}
  33.                 <li>
  34.                 {{ form_widget(category, {
  35.                     'attr': {
  36.                         'class': 'form-check-input',
  37.                         'id': 'category_' ~ category.vars.value
  38.                     }
  39.                 }) }}
  40.                 </li>
  41.                 {% endfor %}
  42.             </ul>
  43.         </div>
  44.         <div class="search_modal_row custom-select">
  45.             <p class="_title02 search_modal_column">商品ステータス</p>
  46.             {{ form_widget(searchForm.category_19, {
  47.                 'attr': {
  48.                     'class': 'product_form_select search_modal_column',
  49.                 }
  50.             }) }}
  51.         </div>
  52.         <div class="search_modal_row">
  53.             <p class="_title02 search_modal_column">サイズ</p>
  54.             <ul class="product_size_checkbox search_modal_column multi_checkbox">
  55.                 {% for ClassCategory in searchForm.class_name_2 %}
  56.                 <li>
  57.                 {{ form_widget(ClassCategory, {
  58.                     'attr': {
  59.                         'class': 'form-check-input',
  60.                         'id': 'category_' ~ ClassCategory.vars.value
  61.                     }
  62.                 }) }}
  63.                 </li>
  64.                 {% endfor %}
  65.             </ul>
  66.         </div>
  67.          <div class="search_modal_row custom-select">
  68.             <p class="_title02 search_modal_column">ボディタイプ</p>
  69.             {{ form_widget(searchForm.class_name_3, {
  70.                 'attr': {
  71.                     'class': 'product_form_select search_modal_column',
  72.                 }
  73.             }) }}
  74.         </div>
  75.         <div class="search_modal_row">
  76.             <div class="search_modal_column">
  77.                 <p class="_title02 icon01 search_modal_column_question search_modal_column_question_label">塗装</p>
  78.             </div>
  79.             <ul class="product_coating_checkbox search_modal_column multi_checkbox">
  80.                 {% for category in searchForm.class_name_4 %}
  81.                 <li>
  82.                 {{ form_widget(category, {
  83.                     'attr': {
  84.                         'class': 'form-check-input',
  85.                         'id': 'category_' ~ category.vars.value
  86.                     }
  87.                 }) }}
  88.                 </li>
  89.                 {% endfor %}
  90.             </ul>
  91.         </div>
  92.         <div class="search_modal_row custom-select">
  93.             <p class="_title02 search_modal_column search_modal_column_question search_modal_column_question_end">フレット数</p>
  94.             {{ form_widget(searchForm.class_name_1, {
  95.                 'attr': {
  96.                     'class': 'product_form_select search_modal_column',
  97.                 }
  98.             }) }}
  99.         </div>
  100.         <div class="search_modal_row custom-select">
  101.             <p class="_title02 search_modal_column search_modal_column_question search_modal_column_question_end">ピックアップ</p>
  102.             {{ form_widget(searchForm.class_name_5, {
  103.                 'attr': {
  104.                     'class': 'product_form_select search_modal_column',
  105.                 }
  106.             }) }}
  107.         </div>
  108.         <div class="search_modal_row">
  109.             <p class="_title02 search_modal_column">価格帯</p>
  110.             <div class="product_form_price search_modal_column">
  111.                 <div class="select_item">
  112.                     {{ form_widget(searchForm.price_min, {
  113.                         'attr': {
  114.                             'class': 'product_form_select product_form_select_price',
  115.                         }
  116.                     }) }}
  117.                     </select>
  118.                     <span class="_yen">円</span>
  119.                 </div>
  120.                 <span class="_to">〜</span>
  121.                 <div class="select_item">
  122.                     {{ form_widget(searchForm.price_max, {
  123.                         'attr': {
  124.                             'class': 'product_form_select product_form_select_price',
  125.                         }
  126.                     }) }}
  127.                     <span class="_yen">円</span>
  128.                 </div>
  129.             </div>
  130.         </div>
  131.         <div class="search_modal_row">
  132.             <p class="search_modal_column">
  133.                 <span>ライフスタイル</span>
  134.             </p>
  135.             <ul class="search_modal_column multi_checkbox" {% if category17  %}style="display:block"{% endif %}>
  136.                 {% for category in searchForm.category_17 %}
  137.                 <li>
  138.                 {{ form_widget(category, {
  139.                     'attr': {
  140.                         'class': 'form-check-input',
  141.                         'id': 'category_' ~ category.vars.value
  142.                     }
  143.                 }) }}
  144.                 </li>
  145.                 {% endfor %}
  146.             </ul>
  147.         </div>
  148.         <div class="search_modal_row">
  149.             <p class="product_btn_search btn_submit">この条件で絞り込む</p>
  150.         </div>
  151.     {{ form_end(searchForm) }}
  152. </div>