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

23 lines
1005 B
HTML
Raw 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"
xmlns:s="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers">
<f:section name="FacetsActive">
<f:if condition="{resultSet.facets.used -> f:count()}">
<div id="tx-solr-facets-in-use">
<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">
<a href="{s:uri.facet.removeFacetItem(facet: facet, facetItem: item)}" class="facet remove-facet-option solr-ajaxified btn btn-circle">
{facet.label}: {item.label}
<i class="glyphicon glyphicon-remove"></i>
</a>
</f:for>
</f:for>
<a href="{s:uri.facet.removeAllFacets()}" class="solr-ajaxified btn btn-circle">
<s:translate key="faceting_removeAllFilters">Remove all filters</s:translate>
<i class="glyphicon glyphicon-remove"></i>
</a>
</div>
</f:if>
</f:section>