feat(schedule): group reservations by real time slots and clean date-time formatting v3.4.2

This commit is contained in:
2026-10-07 22:26:52 -03:00
parent ec7a8ac7d4
commit e1c2c6e8c6
12 changed files with 334 additions and 93 deletions
+8 -4
View File
@@ -173,8 +173,12 @@
{% for reservation in reservations.items %}
<tr>
<td class="ps-3">
<div class="fw-bold">{{ reservation.start_time }}</div>
<small class="text-muted font-monospace">{{ reservation.start_time }} - {{ reservation.end_time }} hs</small>
<div class="fw-bold text-dark text-nowrap">
<i class="bi bi-calendar-event me-1 text-primary"></i>{{ reservation.date_display or reservation.date_short or format_date_human(reservation.start_time) }}
</div>
<span class="badge bg-light text-dark border font-monospace mt-1">
<i class="bi bi-clock me-1 text-primary"></i>{{ reservation.time_display or (reservation.start_time ~ ' - ' ~ reservation.end_time ~ ' hs') }}
</span>
</td>
<td>
<span class="badge bg-secondary-subtle text-secondary border font-monospace">
@@ -258,10 +262,10 @@
<div class="d-flex justify-content-between align-items-start mb-2">
<div>
<span class="badge bg-primary text-white font-monospace mb-1">
<i class="bi bi-calendar-event me-1"></i>{{ reservation.start_time }}
<i class="bi bi-calendar-event me-1"></i>{{ reservation.date_display or reservation.date_short or format_date_human(reservation.start_time) }}
</span>
<div class="small fw-bold text-muted font-monospace">
<i class="bi bi-clock me-1"></i>{{ reservation.start_time }} - {{ reservation.end_time }} hs
<i class="bi bi-clock me-1 text-primary"></i>{{ reservation.time_display or (reservation.start_time ~ ' - ' ~ reservation.end_time ~ ' hs') }}
</div>
</div>
{% if reservation.status == 'CONFIRMED' or reservation.status.value == 'CONFIRMED' %}