From 48c6b3c868b9e922f4029abd61345df9371b1dd1 Mon Sep 17 00:00:00 2001 From: Fabien Le Frapper Date: Fri, 1 Nov 2024 15:50:45 +0100 Subject: [PATCH] improve modal --- .../_addresses_partials/filters/_modal.html | 38 +++++-- .../filters/panel_filters.html | 106 ++++++++---------- jinja2/qfdmo/carte/modals/a_propos.html | 99 ++++++++-------- jinja2/qfdmo/carte/modals/filters.html | 10 +- tailwind.config.js | 8 ++ 5 files changed, 134 insertions(+), 127 deletions(-) diff --git a/jinja2/qfdmo/_addresses_partials/filters/_modal.html b/jinja2/qfdmo/_addresses_partials/filters/_modal.html index a160d1f09..5a468be9b 100644 --- a/jinja2/qfdmo/_addresses_partials/filters/_modal.html +++ b/jinja2/qfdmo/_addresses_partials/filters/_modal.html @@ -1,24 +1,40 @@
-
- {% block content %} - {% endblock content %} +
+ {% block modal_header %} + {% endblock modal_header %} +
+ +
+

+ {% block modal_title %} + {% endblock modal_title %} +

+
+ + {% block modal_content %} + {% endblock modal_content %} +
+ + +
diff --git a/jinja2/qfdmo/_addresses_partials/filters/panel_filters.html b/jinja2/qfdmo/_addresses_partials/filters/panel_filters.html index c7c4cf7de..60f98aab0 100644 --- a/jinja2/qfdmo/_addresses_partials/filters/panel_filters.html +++ b/jinja2/qfdmo/_addresses_partials/filters/panel_filters.html @@ -9,68 +9,58 @@ tabindex="0" {% endblock wrapper_attrs %} -{% block content %} -
- -
-
- - {% block filters_title %} -

- Filtres avancés -

- {% endblock %} -
+{% block modal_header %} + +{% endblock modal_header %} - {% block filters_content %} - {% with field=form.bonus, legend="Éligibles au bonus réparation" %} - {% include "qfdmo/_addresses_partials/filter/_panel_filters" %} - {% endwith %} +{% block modal_title %}Filtres avancés{% endblock modal_title %} - {% with field=form.ess, legend="Type d'enseigne ESS" %} - {% include "qfdmo/_addresses_partials/filter/_panel_filters" %} - {% endwith %} +{% block modal_content %} + {% with field=form.bonus, legend="Éligibles au bonus réparation" %} + {% include "qfdmo/_addresses_partials/filter/_panel_filters" %} + {% endwith %} - {% with field=form.label_reparacteur, legend="Enseignes labellisées Répar’Acteurs", icon="qfdmo/partials/label_reparacteur_icon.html" %} - {% include "qfdmo/_addresses_partials/filter/_panel_filters" %} - {% endwith %} - {% endblock %} + {% with field=form.ess, legend="Type d'enseigne ESS" %} + {% include "qfdmo/_addresses_partials/filter/_panel_filters" %} + {% endwith %} + {% with field=form.label_reparacteur, legend="Enseignes labellisées Répar’Acteurs", icon="qfdmo/partials/label_reparacteur_icon.html" %} + {% include "qfdmo/_addresses_partials/filter/_panel_filters" %} + {% endwith %} +{% endblock modal_content %} -
- -{% endblock content %} + Appliquer + +
+{% endblock modal_footer %} diff --git a/jinja2/qfdmo/carte/modals/a_propos.html b/jinja2/qfdmo/carte/modals/a_propos.html index 4964925a5..caf106ed0 100644 --- a/jinja2/qfdmo/carte/modals/a_propos.html +++ b/jinja2/qfdmo/carte/modals/a_propos.html @@ -5,61 +5,56 @@ data-search-solution-form-target="aProposMainPanel" {% endblock wrapper_attrs %} -{% block content %} -
- -
-
-

- À propos de La Carte -

-
-