[FilterOrder] add a method to get all the active filters

This commit is contained in:
2023-07-10 15:26:54 +02:00
parent ca62c3fd0b
commit 39896ea6e2
7 changed files with 126 additions and 26 deletions

View File

@@ -85,7 +85,7 @@
</div>
{% endfor %}
{% endif %}
{% if btnSubmit == 1 %}
<div class="row my-2">
<button type="submit" class="btn btn-sm btn-misc"><i class="fa fa-fw fa-filter"></i>{{ 'Filter'|trans }}</button>
@@ -93,6 +93,17 @@
{% endif %}
</div>
</div>
{% set active = helper.getActiveFilters() %}
{% if active|length > 0 %}
<div>
{% for f in active %}
<span class="{{ f.position }} {{ f.name }}">{% if f.label != '' %}{{ f.label|trans }}&nbsp;: {% endif %}{{ f.value }}</span>
{% endfor %}
</div>
{% endif %}
<div>
</div>
</div>
{% for k,v in otherParameters %}