meilisearch/Resources/Private/Partials/Facets/RangeNumeric.html
2021-04-17 00:26:33 +02:00

36 lines
1.3 KiB
HTML

<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"
data-namespace-typo3-fluid="true"
>
<div class="panel">
<div class="panel-heading">
<h3 class="facet-label panel-title">
<span class="glyphicon glyphicon-filter"></span>
<a data-toggle="collapse" data-parent="#facet-accordion{facet.name}" href="#facet{facet.name}">{facet.label}</a>
</h3>
</div>
<div class="panel-collapse collapse" id="facet{facet.name}">
<div class="fluidfacet facet-type-numericRange-data"
data-facet-name="{facet.name}"
data-facet-label="{facet.label}"
data-range-min="{facet.range.startInResponse}"
data-range-max="{facet.range.endInResponse}"
data-range-min-selected="{facet.range.startRequested}"
data-range-max-selected="{facet.range.endRequested}"
data-range-gap="{facet.range.gap}"
data-facet-url="{s:uri.facet.setFacetItem(facet: facet, facetItemValue: '___FROM___-___TO___')}"
>
</div>
<div id="facet-{facet.name}-value">
<f:if condition="{facet.isUsed}">
<f:then>{facet.range.startRequested} - {facet.range.endRequested}</f:then>
<f:else>{facet.range.startInResponse} - {facet.range.endInResponse}</f:else>
</f:if>
</div>
</div>
</div>
</html>