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
1 changed files with 17 additions and 16 deletions

View File

@ -22,8 +22,6 @@
{% block content %}
<h1>{{ day | date:"l j F Y" }}</h1>
{% include "agenda_culturel/filter-inc.html" with filter=filter %}
@ -31,21 +29,24 @@
<article>
<div class="navigation">
<div>
{% with day|shift_day:-1 as pred_day %}
<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 %}
<header>
<div class="title"><h1>{{ day | date:"l j F Y" }}</h1></div>
<div class="navigation">
<div>
{% with day|shift_day:-1 as pred_day %}
<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 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>
</header>
</article>
{% if events %}