From e875ae626bf7ce7a5e151f5975d251a3584bac2c Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Fri, 29 Nov 2024 19:49:47 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20mise=20en=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/static/style.scss | 11 +++++++++++ .../single-event/event-elegant-inc.html | 17 +++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/agenda_culturel/static/style.scss b/src/agenda_culturel/static/style.scss index 4947696..38fe13a 100644 --- a/src/agenda_culturel/static/style.scss +++ b/src/agenda_culturel/static/style.scss @@ -1434,6 +1434,17 @@ img.preview { } } +.header-complement { + float: none; +} + +@media only screen and (min-width: 992px) { + .header-complement { + float: left; + clear: both; + } +} + form.messages div, form.moderation-events { @media only screen and (min-width: 992px) { display: grid; diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html index 74bf724..057e2c8 100644 --- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-elegant-inc.html @@ -6,7 +6,11 @@
- {% if day != 0 %} + {% if day == 0 %} +
+ {% include "agenda_culturel/ephemeris-inc.html" with event=event filter=filter %} +
+ {% else %} {% if event|can_show_start_time:day %} {% if event.start_time %}
@@ -22,7 +26,7 @@ {% endif %} {% endif %} {% endif %} - +
{{ event.category | small_cat_recurrent:event.has_recurrences }} {% if event.location or event.exact_location %}
{% endif %} @@ -50,11 +54,7 @@
{% endif %} - {% if day == 0 %} -
- {% include "agenda_culturel/ephemeris-inc.html" with event=event filter=filter %} -
- {% endif %} + {% if event|need_complete_display:True %}

{% picto_from_name "calendar" %} @@ -86,12 +86,13 @@

{% endif %}
+ +
{% if perms.agenda_culturel.change_event %} {% include "agenda_culturel/edit-buttons-inc.html" with event=event %} {% endif %}
-