mise en page des jours comme pour mois et semaine

This commit is contained in:
Jean-Marie Favreau 2023-12-17 18:01:03 +01:00
parent 8591ebab38
commit d79b6ed50a

View File

@ -22,8 +22,6 @@
{% block content %} {% block content %}
<h1>{{ day | date:"l j F Y" }}</h1>
{% include "agenda_culturel/filter-inc.html" with filter=filter %} {% include "agenda_culturel/filter-inc.html" with filter=filter %}
@ -31,21 +29,24 @@
<article> <article>
<div class="navigation"> <header>
<div> <div class="title"><h1>{{ day | date:"l j F Y" }}</h1></div>
{% with day|shift_day:-1 as pred_day %} <div class="navigation">
<a role="button" href="{% url 'day_view' pred_day.year pred_day.month pred_day.day %}?{{ filter.get_url }}"> <div>
{% picto_from_name "chevron-left" %} précédent</a> {% with day|shift_day:-1 as pred_day %}
{% endwith %} <a role="button" href="{% url 'day_view' pred_day.year pred_day.month pred_day.day %}?{{ filter.get_url }}">
{% picto_from_name "chevron-left" %} précédent</a>
{% endwith %}
</div>
<div class="right">
{% with day|shift_day:1 as next_day %}
<a role="button" href="{% url 'day_view' next_day.year next_day.month next_day.day %}?{{ filter.get_url }}">suivant
{% picto_from_name "chevron-right" %}
</a>
{% endwith %}
</div>
</div> </div>
<div class="right"> </header>
{% with day|shift_day:1 as next_day %}
<a role="button" href="{% url 'day_view' next_day.year next_day.month next_day.day %}?{{ filter.get_url }}">suivant
{% picto_from_name "chevron-right" %}
</a>
{% endwith %}
</div>
</div>
</article> </article>
{% if events %} {% if events %}