<!-- Filter -->
<div class="filter">
<div class="fs-row">
<div class="fs-cell">
<div class="filter_inner">
<div class="filter_bar">
<form class="filter_tools" action="#" method="get">
<div class="filter_tool">
<label class="filter_label" for="filter_tool_label_1">Category</label>
</div>
<div class="filter_tool filter_tool_submit">
<button class="filter_tools_submit_button">
<span class="filter_tools_submit_button_inner">
<span class="filter_tools_submit_button_label">Submit</span>
<span class="filter_tools_submit_button_icon" aria-hidden="true">
<svg class="icon icon_caret_right">
<use href="/images/icons.svg#caret_right" />
</svg>
</span>
</span>
</button>
</div>
</form>
</div>
<div class="filter_results_wrap">
<div class="filter_results">
<p class="filter_results_description">
<span class="filter_results_label">10 Results found for:</span>
<span class="filter_results_category">Category One</span>
</p>
<div class="filter_results_action">
<a href="page-news-listing.html" class="filter_results_reset_link">
<span class="filter_results_reset_link_inner">
<span class="filter_results_reset_link_label">Reset</span>
<span class="filter_results_reset_link_icon" aria-hidden="true">
<svg class="icon icon_reset">
<use href="/images/icons.svg#reset" />
</svg>
</span>
</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END: Filter -->
{#
{% include '@partial-filter' with {
tools: [
{
label: 'Category',
placeholder: '',
}
],
results: '',
category: ''
} %}
#}
{% set default_options = [
{
value: 'Option 1',
selected: false,
},
{
value: 'Option 2',
selected: false,
},
{
value: 'Option 3',
selected: false,
},
] %}
<!-- Filter -->
<div class="filter">
<div class="fs-row">
<div class="fs-cell">
<div class="filter_inner">
<div class="filter_bar">
<form class="filter_tools" action="{{ action_category }}" method="get">
{% for tool in tools %}
<div class="filter_tool">
<label class="filter_label" for="filter_tool_label_{{ loop.index }}">{{ tool.label }}</label>
{% if tool.type == 'search' %}
<div class="filter_search_form">
<input class="filter_search_input" id="filter_tool_label_{{ loop.index }}" type="search" placeholder="{{ tool.placeholder }}">
<span class="filter_search_icon">{{ icon('search') }}</span>
</div>
{% elseif tool.type == 'select' %}
<select class="filter_tool_select" id="filter_tool_label_{{ loop.index }}">
<option value="{{ tool.placeholder }}" {{ not filter(tool.options|default(default_options), 'option => option.selected') ? 'selected' }}>{{ tool.placeholder }}</option>
{% for option in tool.options|default(default_options) %}
<option value="{{ option.value }}" {{ option.selected ? 'selected' }}>{{ option.value }}</option>
{% endfor %}
</select>
{% elseif tool.type == 'date' %}
<input type="date" class="filter_date_input" id="filter_tool_label_{{ loop.index }}">
{% endif %}
</div>
{% endfor %}
<div class="filter_tool filter_tool_submit">
{% include "@partial-button" with {
title: "Submit",
class: "filter_tools_submit",
js: false,
icon: "caret_right",
} %}
</div>
</form>
</div>
{% if not hide_results and results != '' %}
<div class="filter_results_wrap">
{% include "@partial-filter-results" with {
results: results,
category: category,
} %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
<!-- END: Filter -->
No notes defined.