fix: update bedelia views for today and weekly reservations, available rooms and unassigned commissions

This commit is contained in:
2026-10-07 19:16:35 -03:00
parent 5764203232
commit ff6480f591
9 changed files with 449 additions and 23 deletions
+25 -4
View File
@@ -88,8 +88,29 @@
<div class="card border-0 shadow-sm mb-4">
<div class="card-body p-3">
<form method="GET" action="/schedule/today_schedule" class="row g-2 align-items-center">
<!-- Selector de Fecha y Navegación de Días -->
<div class="col-lg-3 col-md-6">
<label for="dateSelect" class="form-label small fw-bold text-muted mb-1">
<i class="bi bi-calendar-event text-primary me-1"></i>Fecha de la Cartelera
</label>
<div class="input-group input-group-sm">
<a href="/schedule/today_schedule?date={{ prev_date }}&floor={{ floor_filter }}&shift={{ shift_filter }}{% if hide_virtual %}&hide_virtual=1{% endif %}" class="btn btn-outline-secondary" title="Día Anterior">
<i class="bi bi-chevron-left"></i>
</a>
<input type="date" name="date" id="dateSelect" class="form-control form-control-sm font-monospace text-center fw-bold" value="{{ today }}" onchange="this.form.submit()">
<a href="/schedule/today_schedule?date={{ next_date }}&floor={{ floor_filter }}&shift={{ shift_filter }}{% if hide_virtual %}&hide_virtual=1{% endif %}" class="btn btn-outline-secondary" title="Día Siguiente">
<i class="bi bi-chevron-right"></i>
</a>
{% if today != default_today %}
<a href="/schedule/today_schedule" class="btn btn-primary btn-sm" title="Volver al Día de Hoy">
Hoy
</a>
{% endif %}
</div>
</div>
<!-- Filter by Floor -->
<div class="col-lg-3 col-md-4">
<div class="col-lg-2 col-md-3">
<label for="floorSelect" class="form-label small fw-bold text-muted mb-1">
<i class="bi bi-layers text-secondary me-1"></i>Piso / Planta
</label>
@@ -104,7 +125,7 @@
</div>
<!-- Filter by Turno -->
<div class="col-lg-3 col-md-4">
<div class="col-lg-2 col-md-3">
<label for="shiftSelect" class="form-label small fw-bold text-muted mb-1">
<i class="bi bi-brightness-high text-warning me-1"></i>Turno
</label>
@@ -116,7 +137,7 @@
</div>
<!-- Hide Virtual Classrooms Toggle -->
<div class="col-lg-4 col-md-4 pt-md-3">
<div class="col-lg-3 col-md-6 pt-md-3">
<div class="form-check form-switch pt-1">
<input class="form-check-input" type="checkbox" role="switch" name="hide_virtual" value="1" id="hideVirtualToday" {% if hide_virtual %}checked{% endif %} onchange="this.form.submit()">
<label class="form-check-label fw-semibold small text-dark" for="hideVirtualToday">
@@ -127,7 +148,7 @@
</div>
<!-- Actions -->
<div class="col-lg-2 col-md-12 pt-md-3 text-lg-end d-flex gap-2">
<div class="col-lg-2 col-md-6 pt-md-3 text-lg-end d-flex gap-2">
<button type="submit" class="btn btn-primary btn-sm flex-fill">
<i class="bi bi-funnel me-1"></i>Filtrar
</button>