{% block javascript %}
<script>
$(function() {
$(".product_btn_search").click(function(){
$(this).parent().parent().submit();
});
$(".product_btn_del").click(function(){
$(".search-form-custom").find("input[type='text'], input[type='checkbox'], select").val("");
$(this).parent().parent().submit();
});
});
</script>
{% endblock %}
<div class="ec-headerNaviRole__search">
{{ form_start(searchForm, {'method': 'GET', 'action': path('custom_product_search'), 'attr': {'class': 'search-form-custom row'}}) }}
<div class="ec-headerSearch__keyword search_modal_row">
<p class="search_modal_column">キーワード</p>
<div class="ec-input search_modal_column">
{{ form_widget(searchForm.keyword, {
'attr': {
'class': 'form-control',
'placeholder': '検索キーワードを入力'
}
}) }}
</div>
</div>
<div class="search_modal_row">
<p class="search_modal_column">
<span>カテゴリ</span>
</p>
<ul class="search_modal_column multi_checkbox" {% if category %}style="display:block"{% endif %}>
{% for category in searchForm.category %}
<li>
{{ form_widget(category, {
'attr': {
'class': 'form-check-input',
'id': 'category_' ~ category.vars.value
}
}) }}
</li>
{% endfor %}
</ul>
</div>
<div class="search_modal_row custom-select">
<p class="_title02 search_modal_column">商品ステータス</p>
{{ form_widget(searchForm.category_19, {
'attr': {
'class': 'product_form_select search_modal_column',
}
}) }}
</div>
<div class="search_modal_row">
<p class="_title02 search_modal_column">サイズ</p>
<ul class="product_size_checkbox search_modal_column multi_checkbox">
{% for ClassCategory in searchForm.class_name_2 %}
<li>
{{ form_widget(ClassCategory, {
'attr': {
'class': 'form-check-input',
'id': 'category_' ~ ClassCategory.vars.value
}
}) }}
</li>
{% endfor %}
</ul>
</div>
<div class="search_modal_row custom-select">
<p class="_title02 search_modal_column">ボディタイプ</p>
{{ form_widget(searchForm.class_name_3, {
'attr': {
'class': 'product_form_select search_modal_column',
}
}) }}
</div>
<div class="search_modal_row">
<div class="search_modal_column">
<p class="_title02 icon01 search_modal_column_question search_modal_column_question_label">塗装</p>
</div>
<ul class="product_coating_checkbox search_modal_column multi_checkbox">
{% for category in searchForm.class_name_4 %}
<li>
{{ form_widget(category, {
'attr': {
'class': 'form-check-input',
'id': 'category_' ~ category.vars.value
}
}) }}
</li>
{% endfor %}
</ul>
</div>
<div class="search_modal_row custom-select">
<p class="_title02 search_modal_column search_modal_column_question search_modal_column_question_end">フレット数</p>
{{ form_widget(searchForm.class_name_1, {
'attr': {
'class': 'product_form_select search_modal_column',
}
}) }}
</div>
<div class="search_modal_row custom-select">
<p class="_title02 search_modal_column search_modal_column_question search_modal_column_question_end">ピックアップ</p>
{{ form_widget(searchForm.class_name_5, {
'attr': {
'class': 'product_form_select search_modal_column',
}
}) }}
</div>
<div class="search_modal_row">
<p class="_title02 search_modal_column">価格帯</p>
<div class="product_form_price search_modal_column">
<div class="select_item">
{{ form_widget(searchForm.price_min, {
'attr': {
'class': 'product_form_select product_form_select_price',
}
}) }}
</select>
<span class="_yen">円</span>
</div>
<span class="_to">〜</span>
<div class="select_item">
{{ form_widget(searchForm.price_max, {
'attr': {
'class': 'product_form_select product_form_select_price',
}
}) }}
<span class="_yen">円</span>
</div>
</div>
</div>
<div class="search_modal_row">
<p class="search_modal_column">
<span>ライフスタイル</span>
</p>
<ul class="search_modal_column multi_checkbox" {% if category17 %}style="display:block"{% endif %}>
{% for category in searchForm.category_17 %}
<li>
{{ form_widget(category, {
'attr': {
'class': 'form-check-input',
'id': 'category_' ~ category.vars.value
}
}) }}
</li>
{% endfor %}
</ul>
</div>
<div class="search_modal_row">
<p class="product_btn_search btn_submit">この条件で絞り込む</p>
</div>
{{ form_end(searchForm) }}
</div>