Projet

Général

Profil

0001-publik-famille-set-week-to-display-in-calendar-widge.patch

Lauréline Guérin, 28 février 2022 18:15

Télécharger (1,45 ko)

Voir les différences:

Subject: [PATCH] publik-famille: set week to display in calendar widget
 (#62244)

 .../qommon/forms/widgets/famille-reservations-par-semaine.html  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
templates/qommon/forms/widgets/famille-reservations-par-semaine.html
14 14
{% if not forloop.first %}</ul></li>{% endif %}
15 15
<li class="week{% if forloop.first %} shown{% endif %}"><span class="week-title">Semaine<br class="weekbreak"> du {{day|date:"d/m"}} au {{day|add_days:6|date:"d/m"}}</span><ul>
16 16
{% endif %}
17
<li class="day-title {% if now == day|date:"Y-m-d" %}current{% endif %}" data-weekday="{{day.weekday}}"><strong>{{day|date:"l d/m"}}</strong></li>
17
<li class="day-title {% if form.var.current_day == day|date:"Y-m-d" or not form.var.current_day and now == day|date:"Y-m-d" %}current{% endif %}" data-weekday="{{day.weekday}}"><strong>{{day|date:"l d/m"}}</strong></li>
18 18
  {% with day_str=day|date:"Y-m-d" %}
19 19
    {% for option in options %}
20 20
      {% if option.options.date == day_str %}
21
-