{# Filtres liste transactions / TDB : comptes + catégories / biens / plateformes + tags. Variables : form_action, clear_href, filters, page, all_bank_accounts, categories, tags_list, filter_properties, filter_rental_platforms, show_property_filter, show_platform_filter period_calendar_inline (défaut false) : Si true — preset + date_from/date_to + bulma-calendar sont dans _partials/period_tabs (+ period_calendar_fields) reliés au formulaire via attribut HTML « form ». Sinon uniquement inputs hidden preset/dates dans ce formulaire. #} {% set selAccountId = filters.bankAccountIds|length == 1 ? filters.bankAccountIds|first : null %} {% set has_multi_selection = filters.categoryIds is not empty or filters.propertyIds is not empty or filters.rentalPlatformIds is not empty %}
{% set period_calendar_inline = period_calendar_inline|default(false) %} {% if not period_calendar_inline %} {% if filters.periodSelect == 'all' %} {% elseif filters.periodSelect in ['this_month', 'last_month', '3months', 'year', 'last_year', '7d'] %} {% else %} {% if filters.bookingDateFrom %} {% endif %} {% if filters.bookingDateTo %} {% endif %} {% endif %} {% endif %}
Compte
Catégories {% if categories is empty %} {% else %} {% endif %}
{% if show_property_filter %}
Biens immobiliers
{% endif %} {% if show_platform_filter %}
Plateformes
{% endif %}
{% if show_property_filter %} {% endif %} {% if show_platform_filter %} {% endif %}
{% for cid in filters.categoryIds %} {% for c in categories %} {% if (c.id ~ '') == cid %} {{ c.name|viz_label }} {% endif %} {% endfor %} {% endfor %}
{% if show_property_filter %}
{% for pid in filters.propertyIds %} {% for prop in filter_properties %} {% if (prop.id ~ '') == pid %} {{ prop.displayName }} {% endif %} {% endfor %} {% endfor %}
{% endif %} {% if show_platform_filter %}
{% for plid in filters.rentalPlatformIds %} {% for plat in filter_rental_platforms %} {% if (plat.id ~ '') == plid %} {{ plat.name|viz_label }} {% endif %} {% endfor %} {% endfor %}
{% endif %}
{% if tags_list is not empty %} Tags {% for tag in tags_list %} {% set tagColor = tag.color ?? '#6B7280' %} {% endfor %} {% endif %}