From fa4024a91217048fac7b99b36e1a688e3dd33694 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sat, 15 Mar 2025 22:07:53 +0100 Subject: [PATCH] Correction mise en page tableaux sur smartphone Fix #87 --- src/agenda_culturel/static/style.scss | 18 +-- .../agenda_culturel/categorisation_rules.html | 110 ++++++++-------- .../templates/agenda_culturel/messages.html | 118 +++++++++--------- .../templates/agenda_culturel/rimports.html | 96 +++++++------- .../templates/agenda_culturel/statistics.html | 34 ++--- 5 files changed, 193 insertions(+), 183 deletions(-) diff --git a/src/agenda_culturel/static/style.scss b/src/agenda_culturel/static/style.scss index 2253667..7e56ae7 100644 --- a/src/agenda_culturel/static/style.scss +++ b/src/agenda_culturel/static/style.scss @@ -680,13 +680,15 @@ header .remarque { margin-right: 2em; } } -.form.recent { - display: grid; - grid-template-columns: repeat(2, 1fr); - column-gap: .5em; - :last-child, :nth-last-child(4), - button { - grid-column: 1/3; +@media only screen and (min-width: 800px) { + .form.recent { + display: grid; + grid-template-columns: repeat(2, 1fr); + column-gap: .5em; + :last-child, :nth-last-child(4), + button { + grid-column: 1/3; + } } } .form.recent.moderation-events { @@ -1636,7 +1638,7 @@ form.messages { display: block; fieldset div { display: grid; - grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + //grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-right: 1em; } } diff --git a/src/agenda_culturel/templates/agenda_culturel/categorisation_rules.html b/src/agenda_culturel/templates/agenda_culturel/categorisation_rules.html index 561b2c3..b0303a9 100644 --- a/src/agenda_culturel/templates/agenda_culturel/categorisation_rules.html +++ b/src/agenda_culturel/templates/agenda_culturel/categorisation_rules.html @@ -34,62 +34,64 @@ Les règles sont appliquées à l'import sur tous les événements, et à la demande sur tous les événements, avec confirmation dans le cas d'événements déjà catégorisés.

- - - - - - - - - - - - {% for obj in paginator_filter %} +
+
IdentifiantCatégorieConditionsPoidsActions
+ - - - - - + + + + + - {% endfor %} - -
{{ obj.pk }}{{ obj.category }} -
    - {% if obj.title_contains %} -
  • - Le titre contient - {% if obj.title_exact %}exactement{% endif %} - « {{ obj.title_contains }} » -
  • - {% endif %} - {% if obj.description_contains %} -
  • - La description contient - {% if obj.desc_exact %}exactement{% endif %} - « {{ obj.description_contains }} » -
  • - {% endif %} - {% if obj.location_contains %} -
  • - La localisation contient - {% if obj.loc_exact %}exactement{% endif %} - « {{ obj.location_contains }} » -
  • - {% endif %} - {% if obj.place %} -
  • - Le lieu est {{ obj.place.name }} -
  • - {% endif %} -
-
{{ obj.weight }} - - IdentifiantCatégorieConditionsPoidsActions
+ + + {% for obj in paginator_filter %} + + {{ obj.pk }} + {{ obj.category }} + + + + {{ obj.weight }} + +
+ Modifier + Supprimer +
+ + + {% endfor %} + + + diff --git a/src/agenda_culturel/templates/agenda_culturel/messages.html b/src/agenda_culturel/templates/agenda_culturel/messages.html index ee87181..fb7f9d6 100644 --- a/src/agenda_culturel/templates/agenda_culturel/messages.html +++ b/src/agenda_culturel/templates/agenda_culturel/messages.html @@ -43,68 +43,70 @@ - - - - - - - - - - - - - - {% for obj in paginator_filter %} +
+
DateTypeSujetAuteurÉvénementFerméSpam
+ - - - - + + + + + + + + + + {% for obj in paginator_filter %} + + + - - - - - {% endfor %} - -
{{ obj.date }} - {% if obj.message_type %} - {{ obj.get_message_type_display }} - {% else %} - - - {% endif %} - - {{ obj.subject }} - - {% if obj.user %} - {{ obj.user }} - {% else %} - {% if obj.name %} - {{ obj.name }} + DateTypeSujetAuteurÉvénementFerméSpam
{{ obj.date }} + {% if obj.message_type %} + {{ obj.get_message_type_display }} {% else %} - {% endif %} - {% endif %} - - {% if obj.related_event %} - {{ obj.related_event.pk }} - {% else %} - - - {% endif %} - - {% if obj.closed %} - {% picto_from_name "check-square" "fermé" %} - {% else %} - {% picto_from_name "square" "ouvert" %} - {% endif %} - - {% if obj.spam %} - {% picto_from_name "check-square" "spam" %} - {% else %} - {% picto_from_name "square" "non spam" %} - {% endif %} -
+ + + {{ obj.subject }} + + + {% if obj.user %} + {{ obj.user }} + {% else %} + {% if obj.name %} + {{ obj.name }} + {% else %} + - + {% endif %} + {% endif %} + + + {% if obj.related_event %} + {{ obj.related_event.pk }} + {% else %} + - + {% endif %} + + + {% if obj.closed %} + {% picto_from_name "check-square" "fermé" %} + {% else %} + {% picto_from_name "square" "ouvert" %} + {% endif %} + + + {% if obj.spam %} + {% picto_from_name "check-square" "spam" %} + {% else %} + {% picto_from_name "square" "non spam" %} + {% endif %} + + + {% endfor %} + + + diff --git a/src/agenda_culturel/templates/agenda_culturel/rimports.html b/src/agenda_culturel/templates/agenda_culturel/rimports.html index 8400c03..7ed3fb2 100644 --- a/src/agenda_culturel/templates/agenda_culturel/rimports.html +++ b/src/agenda_culturel/templates/agenda_culturel/rimports.html @@ -59,57 +59,59 @@ - - - - - - - - - - - - - {% for obj in paginator_filter %} +
+
IdNomRécurrenceNb d'importsDernierActions
+ + + + + + + + + + + {% for obj in paginator_filter %} + + + + + - - - - - - {% endfor %} - -
IdNomRécurrenceNb d'importsDernierActions
+ {{ obj.pk }} + - {{ obj.pk }} + {{ obj.name }} + {{ obj.get_recurrence_display }}{{ obj.nb_imports }} + {% if obj.nb_imports > 0 %} + {% with imp=obj.last_import %} + + {% if imp.status == "running" %} + {{ imp.status }} + {% else %} + {{ imp.status }} + {% if imp.status == "success" %}({{ imp.nb_initial }}){% endif %} + {% endif %} + + {% endwith %} + {% endif %} - {{ obj.name }} - {{ obj.get_recurrence_display }}{{ obj.nb_imports }} - {% if obj.nb_imports > 0 %} - {% with imp=obj.last_import %} - - {% if imp.status == "running" %} - {{ imp.status }} - {% else %} - {{ imp.status }} - {% if imp.status == "success" %}({{ imp.nb_initial }}){% endif %} - {% endif %} - - {% endwith %} - {% endif %} - -
- {% if not obj.last_import or obj.last_import.status != "running" %} - Exécuter - {% else %} - Annuler - {% endif %} - Consulter - Modifier -
-
+
+ {% if not obj.last_import or obj.last_import.status != "running" %} + Exécuter + {% else %} + Annuler + {% endif %} + Consulter + Modifier +
+ + + {% endfor %} + + + diff --git a/src/agenda_culturel/templates/agenda_culturel/statistics.html b/src/agenda_culturel/templates/agenda_culturel/statistics.html index dbee465..c7902ce 100644 --- a/src/agenda_culturel/templates/agenda_culturel/statistics.html +++ b/src/agenda_culturel/templates/agenda_culturel/statistics.html @@ -49,22 +49,24 @@ On affiche cette information pour les imports depuis le début de leur intégration à l'agenda, mais aussi pour le dernier mois.

- - - - {% for v in stats_foresight %}{% endfor %} - - - - - {% for v in stats_foresight %}{% endfor %} - - - - {% for v in stats_foresight %}{% endfor %} - - -
{{ v.0 }}
écart (en jours){{ v.1 }}
écart du dernier mois (en jours){{ v.2 }}
+
+ + + + {% for v in stats_foresight %}{% endfor %} + + + + + {% for v in stats_foresight %}{% endfor %} + + + + {% for v in stats_foresight %}{% endfor %} + + +
{{ v.0 }}
écart (en jours){{ v.1 }}
écart du dernier mois (en jours){{ v.2 }}
+

Par ville

Nombre d'événements référencés par ville.