+ {% if filter_stats.tomorrow.classrooms.assigned and filter_stats.tomorrow.classrooms.assigned | length > 0 %}
+
+ {% for aula in filter_stats.tomorrow.classrooms.assigned %}
+
+
+
+ {{ aula.code }}
+ En Uso Mañana
+
+
+ {{ aula.building }}{% if aula.floor %} · {{ aula.floor }}{% endif %}
+
+
+ {{ aula.assigned_summary or 'Clase activa' }}
+
+
+
Cap: {{ aula.capacity }}
+
Ver Cartelera
+
+
+
+ {% endfor %}
+
+ {% else %}
+
+
+
No hay aulas en uso el día de mañana
+
+ {% endif %}
+
{% if filter_stats.week.classrooms.unassigned and filter_stats.week.classrooms.unassigned | length > 0 %}
diff --git a/frontend/views/dashboard.html b/frontend/views/dashboard.html
index 79213fb..66633b8 100644
--- a/frontend/views/dashboard.html
+++ b/frontend/views/dashboard.html
@@ -172,8 +172,10 @@ document.querySelectorAll('[data-color]').forEach(function(el) {
// Bedelía: Switcher para Cartelera y Agenda de Clases
function switchBedeliaScheduleView(view) {
const todayEl = document.getElementById('bedeliaScheduleToday');
+ const tomorrowEl = document.getElementById('bedeliaScheduleTomorrow');
const weekEl = document.getElementById('bedeliaScheduleWeek');
if (todayEl) todayEl.style.display = view === 'today' ? 'block' : 'none';
+ if (tomorrowEl) tomorrowEl.style.display = view === 'tomorrow' ? 'block' : 'none';
if (weekEl) weekEl.style.display = view === 'week' ? 'block' : 'none';
document.querySelectorAll('#bedeliaScheduleSwitcher button').forEach(function(btn) {
btn.classList.toggle('active', btn.getAttribute('data-view') === view);
@@ -197,7 +199,7 @@ let currentCommStatus = 'unassigned';
let currentClassPeriod = 'today';
let currentClassStatus = 'unassigned';
-// Bedelía: Switcher de Percentiles de Aulas (Día / Semana / Mes)
+// Bedelía: Switcher de Percentiles de Aulas (Día / Mañana / Semana / Mes)
function switchBedeliaPercentiles(period) {
if (!FILTER_STATS_DATA || !FILTER_STATS_DATA[period]) return;
const periodData = FILTER_STATS_DATA[period];
@@ -208,7 +210,7 @@ function switchBedeliaPercentiles(period) {
const periodTitle = document.getElementById('bedeliaPctPeriodTitle');
if (periodTitle) {
- periodTitle.innerText = period === 'today' ? 'Día (Hoy)' : (period === 'week' ? 'Semana' : 'Mes');
+ periodTitle.innerText = period === 'today' ? 'Día (Hoy)' : (period === 'tomorrow' ? 'Mañana' : (period === 'week' ? 'Semana' : 'Mes'));
}
const assignedCount = document.getElementById('bedeliaPctAssignedCount');
@@ -222,7 +224,7 @@ function switchBedeliaPercentiles(period) {
if (unassignedCount) unassignedCount.innerText = classData.unassigned_count ?? 0;
if (unassignedPct) unassignedPct.innerText = (classData.unassigned_pct ?? 0) + '%';
if (assignedLabel) {
- assignedLabel.innerText = period === 'today' ? 'Con cursada activa hoy' : (period === 'week' ? 'Con cursada activa esta semana' : 'Con cursada activa este mes');
+ assignedLabel.innerText = period === 'today' ? 'Con cursada activa hoy' : (period === 'tomorrow' ? 'Con cursada activa mañana' : (period === 'week' ? 'Con cursada activa esta semana' : 'Con cursada activa este mes'));
}
// Actualizar leyendas y barras
@@ -254,7 +256,7 @@ function switchBedeliaPercentiles(period) {
});
}
-// Admin: Switcher de Percentiles de Aulas (Día / Semana / Mes)
+// Admin: Switcher de Percentiles de Aulas (Día / Mañana / Semana / Mes)
function switchAdminPercentiles(period) {
if (!FILTER_STATS_DATA || !FILTER_STATS_DATA[period]) return;
const periodData = FILTER_STATS_DATA[period];
@@ -265,7 +267,7 @@ function switchAdminPercentiles(period) {
const periodTitle = document.getElementById('adminPctPeriodTitle');
if (periodTitle) {
- periodTitle.innerText = period === 'today' ? 'Día (Hoy)' : (period === 'week' ? 'Semana' : 'Mes');
+ periodTitle.innerText = period === 'today' ? 'Día (Hoy)' : (period === 'tomorrow' ? 'Mañana' : (period === 'week' ? 'Semana' : 'Mes'));
}
const assignedCount = document.getElementById('adminPctAssignedCount');
diff --git a/frontend/views/dashboard/dashadm.html b/frontend/views/dashboard/dashadm.html
index d498b52..b2a5dec 100644
--- a/frontend/views/dashboard/dashadm.html
+++ b/frontend/views/dashboard/dashadm.html
@@ -107,6 +107,9 @@
+
diff --git a/frontend/views/dashboard/dashbede.html b/frontend/views/dashboard/dashbede.html
index ff3a362..075be38 100644
--- a/frontend/views/dashboard/dashbede.html
+++ b/frontend/views/dashboard/dashbede.html
@@ -109,6 +109,9 @@
+
@@ -223,6 +226,10 @@
Clases de Hoy
{{ role_data.today_schedule_list | length }}
+
+
+
+ {% if role_data.tomorrow_schedule_list and role_data.tomorrow_schedule_list | length > 0 %}
+
+
+
+
+ | Horario |
+ Aula / Espacio |
+ Asignatura |
+ Comisión / Turno |
+ Docente |
+ Estado |
+ Acción |
+
+
+
+ {% for r in role_data.tomorrow_schedule_list %}
+
+ |
+ {{ r.start_time }} - {{ r.end_time }} hs
+ |
+
+ {% if r.classroom.is_virtual %}
+
+ {{ r.classroom.code }}
+
+ {% if r.virtual_link %}
+
+ Link
+
+ {% endif %}
+ {% else %}
+
+ {{ r.classroom.code }}
+
+ {% endif %}
+ |
+
+ {{ r.subject_name }}
+ {% if r.subject_code %}{{ r.subject_code }}{% endif %}
+ |
+
+ {{ r.commission.code }}
+ {{ r.shift }}
+ |
+ {{ r.user.name }} |
+
+ Confirmada
+ |
+
+
+ Ver
+
+ |
+
+ {% endfor %}
+
+
+
+ {% else %}
+
+
+
No hay clases programadas para el día de mañana
+
Consulte el cronograma semanal o cargue una nueva reserva si corresponde.
+
+ {% endif %}
+
+
{% if role_data.week_schedule_list and role_data.week_schedule_list | length > 0 %}
@@ -383,11 +459,14 @@
-
+
+
@@ -527,7 +606,109 @@
{% endif %}
-
+
+
+ {% if filter_stats.tomorrow.commissions.unassigned and filter_stats.tomorrow.commissions.unassigned | length > 0 %}
+
+
+
+
+ | Comisión |
+ Asignatura |
+ Docente |
+ Horario Habitual |
+ Turno |
+ Cupo |
+ Acción |
+
+
+
+ {% for comm in filter_stats.tomorrow.commissions.unassigned %}
+
+ |
+ {{ comm.full_code }}
+ |
+
+ {{ comm.subject_name }}
+ {% if comm.subject_code %}{{ comm.subject_code }}{% endif %}
+ |
+ {{ comm.teacher_name }} |
+ {{ comm.schedule }} |
+ {{ comm.shift }} |
+ {{ comm.current_students }}/{{ comm.max_students }} |
+
+
+ Asignar Aula
+
+ |
+
+ {% endfor %}
+
+
+
+ {% else %}
+
+
+
¡Todas las comisiones de mañana tienen aula asignada!
+
No hay comisiones huérfanas sin espacio para el día de mañana.
+
+ {% endif %}
+
+
+
+
+ {% if filter_stats.tomorrow.commissions.assigned and filter_stats.tomorrow.commissions.assigned | length > 0 %}
+
+
+
+
+ | Comisión |
+ Asignatura |
+ Aula Asignada |
+ Horario de Clase |
+ Docente |
+ Turno |
+ Acción |
+
+
+
+ {% for comm in filter_stats.tomorrow.commissions.assigned %}
+
+ |
+ {{ comm.full_code }}
+ |
+
+ {{ comm.subject_name }}
+ {% if comm.subject_code %}{{ comm.subject_code }}{% endif %}
+ |
+
+
+ {{ comm.assigned_room or 'Aula Asignada' }}
+
+ |
+ {{ comm.assigned_time or comm.schedule }} |
+ {{ comm.teacher_name }} |
+ {{ comm.shift }} |
+
+
+ Ver
+
+ |
+
+ {% endfor %}
+
+
+
+ {% else %}
+
+
+
No hay comisiones asignadas para el día de mañana
+
Consulte las pestañas de semana o mes para ver las asignaciones programadas.
+
+ {% endif %}
+
+
+
{% if filter_stats.week.commissions.unassigned and filter_stats.week.commissions.unassigned | length > 0 %}
@@ -740,11 +921,14 @@
-
+
+
@@ -852,7 +1036,73 @@
{% endif %}
-
+
+
+ {% if filter_stats.tomorrow.classrooms.unassigned and filter_stats.tomorrow.classrooms.unassigned | length > 0 %}
+
+ {% for aula in filter_stats.tomorrow.classrooms.unassigned %}
+
+ {% endfor %}
+
+ {% else %}
+
+
+
¡Todas las aulas están ocupadas el día de mañana!
+
No hay espacios físicos disponibles para nuevas asignaciones mañana.
+
+ {% endif %}
+
+
+
+
+ {% if filter_stats.tomorrow.classrooms.assigned and filter_stats.tomorrow.classrooms.assigned | length > 0 %}
+
+ {% for aula in filter_stats.tomorrow.classrooms.assigned %}
+
+
+
+ {{ aula.code }}
+ En Uso Mañana
+
+
+ {{ aula.building }}{% if aula.floor %} · {{ aula.floor }}{% endif %}
+
+
+ {{ aula.assigned_summary or 'Clase activa' }}
+
+
+
Cap: {{ aula.capacity }}
+
Ver Cartelera
+
+
+
+ {% endfor %}
+
+ {% else %}
+
+
+
No hay aulas en uso el día de mañana
+
+ {% endif %}
+
+
+
{% if filter_stats.week.classrooms.unassigned and filter_stats.week.classrooms.unassigned | length > 0 %}