meilisearch/Resources/Private/Partials/Result/FacetsActive.html

24 lines
1.0 KiB
HTML
Raw Permalink Normal View History

2021-04-17 00:26:33 +02:00
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
2021-04-17 21:20:54 +02:00
xmlns:s="http://typo3.org/ns/WapplerSystems/Meilisearch/ViewHelpers">
2021-04-17 00:26:33 +02:00
<f:section name="FacetsActive">
<f:if condition="{resultSet.facets.used -> f:count()}">
2021-04-17 21:20:54 +02:00
<div id="tx-meilisearch-facets-in-use">
2021-04-17 00:26:33 +02:00
<s:translate key="faceting_resultsNarrowedBy">Narrowed by</s:translate>:
<f:for each="{resultSet.facets.used}" as="facet">
<f:for each="{facet.allFacetItems.selected}" as="item">
2021-04-17 21:20:54 +02:00
<a href="{s:uri.facet.removeFacetItem(facet: facet, facetItem: item)}" class="facet remove-facet-option meilisearch-ajaxified btn btn-circle">
2021-04-17 00:26:33 +02:00
{facet.label}: {item.label}
<i class="glyphicon glyphicon-remove"></i>
</a>
</f:for>
</f:for>
2021-04-17 21:20:54 +02:00
<a href="{s:uri.facet.removeAllFacets()}" class="meilisearch-ajaxified btn btn-circle">
2021-04-17 00:26:33 +02:00
<s:translate key="faceting_removeAllFilters">Remove all filters</s:translate>
<i class="glyphicon glyphicon-remove"></i>
</a>
</div>
</f:if>
2021-04-17 21:20:54 +02:00
</f:section>