{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% form_theme form 'Form/form_div_layout.twig' %}
<div id="category_id_form" style="display:none;">{{ form_widget(form.category_id, {'id': null, 'attr': {'class': 'category_id','style': 'height:42px;border-radius: 6px;'}}) }}</div>
<div class="drawer_block pc header_bottom_area">
<div id="search" class="" style="padding: 0 20px 0 20px;margin-bottom: 20px;display: flex;align-items: center;justify-content: center;">
<form method="get" id="searchform" action="{{ path('product_list') }}" style="width:100%;max-width: 1100px;">
<span style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">条件検索</span>
<div class="search_inner" style="display:flex;align-items:center;justify-content:center;background-color:#f4f3f3;padding:10px;border-radius: 6px;">
<div style="display:flex;gap: 20px;">
<div style="width: 200px">
<label for="name" style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">キーワード</label>
<input type="text" id="" name="name" maxlength="50" style="background-color:white;width:100%;padding:10px;border:1px solid #ccc;border-radius: 6px;height:42px;" placeholder="キーワードを入力" />
</div>
<div>
<label for="category_id" style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">カテゴリー</label>
<div id="category_select_pc">
</div>
</div>
<div>
<label for="price_min" style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">価格帯</label>
<div style="display:flex;gap: 10px;">
<select name="price_min" id="price_min" style="height:42px;border:1px solid #ccc;padding:10px;width:120px;border-radius: 6px;">
<option value="">指定なし</option>
<option value="1" {% if getRequest('price_min') == '1' %}selected{% endif %}>1,000円</option>
<option value="2" {% if getRequest('price_min') == '2' %}selected{% endif %}>2,000円</option>
<option value="3" {% if getRequest('price_min') == '3' %}selected{% endif %}>3,000円</option>
<option value="4" {% if getRequest('price_min') == '4' %}selected{% endif %}>4,000円</option>
<option value="5" {% if getRequest('price_min') == '5' %}selected{% endif %}>5,000円</option>
<option value="6" {% if getRequest('price_min') == '6' %}selected{% endif %}>6,000円</option>
<option value="7" {% if getRequest('price_min') == '7' %}selected{% endif %}>7,000円</option>
<option value="8" {% if getRequest('price_min') == '8' %}selected{% endif %}>8,000円</option>
<option value="9" {% if getRequest('price_min') == '9' %}selected{% endif %}>9,000円</option>
<option value="10" {% if getRequest('price_min') == '10' %}selected{% endif %}>10,000円</option>
</select>
<div style="display:flex;align-items: center;">~</div>
<select name="price_max" id="price_max" style="height:42px;border:1px solid #ccc;padding:10px;width:120px;border-radius: 6px;">
<option value="">指定なし</option>
<option value="1" {% if getRequest('price_max') == '1' %}selected{% endif %}>1,000円</option>
<option value="2" {% if getRequest('price_max') == '2' %}selected{% endif %}>2,000円</option>
<option value="3" {% if getRequest('price_max') == '3' %}selected{% endif %}>3,000円</option>
<option value="4" {% if getRequest('price_max') == '4' %}selected{% endif %}>4,000円</option>
<option value="5" {% if getRequest('price_max') == '5' %}selected{% endif %}>5,000円</option>
<option value="6" {% if getRequest('price_max') == '6' %}selected{% endif %}>6,000円</option>
<option value="7" {% if getRequest('price_max') == '7' %}selected{% endif %}>7,000円</option>
<option value="8" {% if getRequest('price_max') == '8' %}selected{% endif %}>8,000円</option>
<option value="9" {% if getRequest('price_max') == '9' %}selected{% endif %}>9,000円</option>
<option value="10" {% if getRequest('price_max') == '10' %}selected{% endif %}>10,000円</option>
</select>
</div>
</div>
<div style="margin-top: 31px;">
<button type="submit" style="background-color: black; color: white; width: 100%; padding: 8px 10px 8px 10px;height:42px; border:none;border-radius: 6px;"><svg class="cb cb-search" style="margin-right: 3px;"><use xlink:href="#cb-search" /></svg>この条件で検索</button>
</div>
</div>
</div>
</form>
</div>
</div>
<div id="drawer_block_sp">
<span style="display:block;font-weight:bold;font-size:1.3rem;padding: 20px 0 6px 6px;">条件検索</span>
<div id="search" class="search">
<form method="get" id="searchform" action="{{ path('product_list') }}">
<div class="search_inner">
<label for="name" style="display:block;font-weight:bold;font-size:1.3rem;padding: 0 0 6px 0;">キーワード</label>
<div style="width:100%;">
{{ form_widget(form.name, {'id': null, 'attr': {'class': '', 'placeholder' : 'キーワードを入力',
'style': 'background-color:white;width:100%;padding:10px;border:1px solid #ccc;border-radius: 6px;'
}} ) }}
<!--button type="submit" class="bt_search"><svg class="cb cb-search"><use xlink:href="#cb-search" /></svg></button-->
</div>
<label for="category_id" style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">カテゴリー</label>
<div id="category_select_sp">
</div>
<label for="price_min" style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">価格帯</label>
<select name="price_min" id="price_min" style="height:42px;border:1px solid #ccc;padding:10px;width:100%;border-radius: 6px;">
<option value="">指定なし</option>
<option value="1" {% if getRequest('price_min') == '1' %}selected{% endif %}>1,000円</option>
<option value="2" {% if getRequest('price_min') == '2' %}selected{% endif %}>2,000円</option>
<option value="3" {% if getRequest('price_min') == '3' %}selected{% endif %}>3,000円</option>
<option value="4" {% if getRequest('price_min') == '4' %}selected{% endif %}>4,000円</option>
<option value="5" {% if getRequest('price_min') == '5' %}selected{% endif %}>5,000円</option>
<option value="6" {% if getRequest('price_min') == '6' %}selected{% endif %}>6,000円</option>
<option value="7" {% if getRequest('price_min') == '7' %}selected{% endif %}>7,000円</option>
<option value="8" {% if getRequest('price_min') == '8' %}selected{% endif %}>8,000円</option>
<option value="9" {% if getRequest('price_min') == '9' %}selected{% endif %}>9,000円</option>
<option value="10" {% if getRequest('price_min') == '10' %}selected{% endif %}>10,000円</option>
</select>
<div style="display:flex;align-items: center;justify-content: center">~</div>
<select name="price_max" id="price_max" style="height:42px;border:1px solid #ccc;padding:10px;width:100%;border-radius: 6px;">
<option value="">指定なし</option>
<option value="1" {% if getRequest('price_max') == '1' %}selected{% endif %}>1,000円</option>
<option value="2" {% if getRequest('price_max') == '2' %}selected{% endif %}>2,000円</option>
<option value="3" {% if getRequest('price_max') == '3' %}selected{% endif %}>3,000円</option>
<option value="4" {% if getRequest('price_max') == '4' %}selected{% endif %}>4,000円</option>
<option value="5" {% if getRequest('price_max') == '5' %}selected{% endif %}>5,000円</option>
<option value="6" {% if getRequest('price_max') == '6' %}selected{% endif %}>6,000円</option>
<option value="7" {% if getRequest('price_max') == '7' %}selected{% endif %}>7,000円</option>
<option value="8" {% if getRequest('price_max') == '8' %}selected{% endif %}>8,000円</option>
<option value="9" {% if getRequest('price_max') == '9' %}selected{% endif %}>9,000円</option>
<option value="10" {% if getRequest('price_max') == '10' %}selected{% endif %}>10,000円</option>
</select>
<div style="margin-top: 12px;">
<button type="submit" style="background-color: black; color: white; width: 100%; padding: 8px 10px 8px 10px;height:42px; border:none;border-radius: 6px;"><svg class="cb cb-search" style="margin-right: 3px;"><use xlink:href="#cb-search" /></svg>この条件で検索</button>
</div>
</div>
<div class="extra-form">
{% for f in form.getIterator %}
{% if f.vars.name matches '[^plg*]' %}
{{ form_label(f) }}
{{ form_widget(f) }}
{{ form_errors(f) }}
{% endif %}
{% endfor %}
</div>
</form>
</div>
</div>