{% extends 'base.html.twig' %}
{% block title %}Month Range Filter — Design System{% endblock %}
{% block body %}
{% include '_molecules/page-header/page-header.html.twig' with {
title: 'Month Range Filter',
subtitle: 'Barre de filtre de période, au mois. Émet toujours du et au en GET, au format YYYY-MM.',
icon: 'calendar',
backHref: path('admin_design_system'),
backLabel: 'Design System'
} only %}
{% include '_molecules/month-range-filter/month-range-filter.html.twig' with {
action: path('admin_design_system_month_range_filter'),
months: moisDemo
} only %}
Sous filtre — le lien de réinitialisation apparaît
{% include '_molecules/month-range-filter/month-range-filter.html.twig' with {
action: path('admin_design_system_month_range_filter'),
months: moisDemo,
start: '2026-01', end: '2026-07'
} only %}
Aucun mois à proposer — rien n'est rendu
Un filtre sans choix est du bruit : la molécule s'efface d'elle-même.
{% include '_molecules/month-range-filter/month-range-filter.html.twig' with {
action: path('admin_design_system_month_range_filter'),
months: []
} only %}