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
+34 -3
View File
@@ -134,6 +134,16 @@
{% endfor %}
</select>
</div>
<div class="col-6 col-md-2">
<label class="form-label small fw-semibold mb-1">
<i class="bi bi-door-open text-primary me-1"></i>Aula / Espacio
</label>
<select name="unassigned_room" class="form-select form-select-sm" id="unassigned-room-filter">
<option value="" {% if not unassigned_room_filter %}selected{% endif %}>Todas las comisiones</option>
<option value="true" {% if unassigned_room_filter == 'true' %}selected{% endif %}>⚠️ Sin Aula Asignada</option>
<option value="false" {% if unassigned_room_filter == 'false' %}selected{% endif %}>✅ Con Aula Asignada</option>
</select>
</div>
<div class="col-6 col-md-1">
<label class="form-label small fw-semibold mb-1">Estado</label>
<select name="active" class="form-select form-select-sm" id="active-filter">
@@ -142,9 +152,9 @@
<option value="" {% if not active_filter %}selected{% endif %}>Todas</option>
</select>
</div>
<div class="col-12 col-md-2 d-flex gap-2">
<button type="submit" class="btn btn-primary btn-sm flex-fill" id="filter-btn">
<i class="bi bi-funnel me-1"></i>Filtrar
<div class="col-12 col-md-1 d-flex gap-1">
<button type="submit" class="btn btn-primary btn-sm flex-fill" id="filter-btn" title="Aplicar filtros">
<i class="bi bi-funnel"></i>
</button>
<a href="/admin/commissions_list" class="btn btn-outline-secondary btn-sm" title="Limpiar filtros">
<i class="bi bi-x"></i>
@@ -171,6 +181,7 @@
<tr>
<th class="ps-3">Comisión</th>
<th>Asignatura</th>
<th>Espacio / Aula</th>
<th>Docente</th>
<th class="text-center">Turno</th>
<th class="text-center">Alumnos</th>
@@ -200,6 +211,26 @@
<small class="text-muted ms-1">{{ comm.semester }} {{ comm.year }}</small>
</div>
</td>
<td>
{% if comm.has_classroom %}
{% if comm.is_virtual %}
<span class="badge bg-info-subtle text-info border">
<i class="bi bi-camera-video me-1"></i>{{ comm.classroom_name }}
</span>
{% if comm.virtual_link %}
<a href="{{ comm.virtual_link }}" target="_blank" class="text-info ms-1 small" title="Enlace Videoconferencia"><i class="bi bi-box-arrow-up-right"></i></a>
{% endif %}
{% else %}
<span class="badge bg-success-subtle text-success border font-monospace">
<i class="bi bi-door-open me-1"></i>{{ comm.classroom_name }}
</span>
{% endif %}
{% else %}
<span class="badge bg-danger-subtle text-danger border">
<i class="bi bi-exclamation-triangle-fill me-1"></i>Sin Aula
</span>
{% endif %}
</td>
<td>
{% if comm.teachers and comm.teachers | length > 0 %}
<div class="d-flex flex-column gap-1">