app/template/default/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. {# style #}
  9. <style>
  10.     .search-name-custom {
  11.         width: 30%;
  12.         display: inline-block;
  13.         height: 41px;
  14.         margin-right: 15px;
  15.     }
  16. </style>
  17. <form method="get" id="header-search-form" action="{{ path('product_list') }}">
  18.     <span class="header-search-text">商品検索</span>
  19.     <span class="search-select">
  20.         {{ form_widget(form.category_id, {'id': null, 'attr': {'class': 'postform', 'name': 'cat', 'id': 'h-cat'}}) }}
  21.     </span>
  22.     {{ form_widget(form.name, {'id': null, 'attr': {'class': 'search-name search-name-custom', 'placeholder': 'common.search_keyword'}}) }}
  23.     <button type="submit" id="header-search-submit" value="Search">検索</button>
  24.     <span class="header-search-close">閉じる</span>
  25. </form>