fix(ui): tablas en modo oscuro, perfil en español y cabeceras v3.8.18
This commit is contained in:
@@ -4,35 +4,47 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="container-fluid pt-5 mt-4">
|
||||
<!-- Header -->
|
||||
<div class="d-flex flex-column flex-md-row justify-content-between align-items-md-center gap-3 mb-4">
|
||||
<div>
|
||||
<h1 class="h3 fw-bold mb-1">
|
||||
<i class="bi bi-calendar-range text-primary me-2"></i>Gestión de Ciclo Lectivo y Períodos Académicos
|
||||
</h1>
|
||||
<p class="text-muted mb-0 small">
|
||||
Administración de cuatrimestres, años académicos, fechas de inicio/fin y selección del ciclo lectivo activo.
|
||||
</p>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
{% if can_edit %}
|
||||
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modalAddTerm">
|
||||
<i class="bi bi-plus-lg me-1"></i>Nuevo Ciclo Lectivo
|
||||
</button>
|
||||
{% endif %}
|
||||
<a href="/schedule/commissions_view" class="btn btn-outline-secondary">
|
||||
<i class="bi bi-diagram-3 me-1"></i>Ver Cursadas
|
||||
</a>
|
||||
<!-- Header Institucional -->
|
||||
<div class="card border-0 shadow-sm mb-4" style="border-radius: 14px; background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(180, 62, 142, 0.03) 100%); border-left: 4px solid var(--bs-primary) !important;">
|
||||
<div class="card-body p-3 p-md-4">
|
||||
<div class="d-flex flex-column flex-md-row justify-content-between align-items-md-center gap-3">
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<div class="rounded-3 p-3 bg-primary bg-opacity-10 text-primary d-flex align-items-center justify-content-center shadow-xs" style="width: 52px; height: 52px;">
|
||||
<i class="bi bi-calendar-range fs-3"></i>
|
||||
</div>
|
||||
<div>
|
||||
<nav aria-label="breadcrumb" class="mb-1">
|
||||
<ol class="breadcrumb mb-0 py-0" style="font-size: 0.76rem;">
|
||||
<li class="breadcrumb-item"><a href="/dashboard" class="text-decoration-none text-muted"><i class="bi bi-house-door me-1"></i>Inicio</a></li>
|
||||
<li class="breadcrumb-item"><a href="/admin/academic_periods_list" class="text-decoration-none text-muted">Estructura Académica</a></li>
|
||||
<li class="breadcrumb-item active fw-semibold text-primary" aria-current="page">Ciclos Lectivos</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<h1 class="h4 fw-bold mb-0">Gestión de Ciclos Lectivos y Períodos</h1>
|
||||
<p class="text-muted small mb-0 mt-1">Administración de cuatrimestres, años académicos, fechas de inicio/fin y selección del ciclo activo.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
{% if can_edit %}
|
||||
<button type="button" class="btn btn-primary btn-sm px-3 shadow-xs" data-bs-toggle="modal" data-bs-target="#modalAddTerm">
|
||||
<i class="bi bi-plus-lg me-1"></i>Nuevo Ciclo Lectivo
|
||||
</button>
|
||||
{% endif %}
|
||||
<a href="/admin/commissions_list" class="btn btn-outline-secondary btn-sm px-3 shadow-xs">
|
||||
<i class="bi bi-diagram-3 me-1"></i>Ver Comisiones
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Academic Terms Table -->
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card border-0 shadow-sm" style="border-radius: 12px;">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table-light">
|
||||
<thead class="bg-body-tertiary">
|
||||
<tr>
|
||||
<th>Código</th>
|
||||
<th class="ps-3">Código</th>
|
||||
<th>Nombre del Ciclo Lectivo</th>
|
||||
<th>Año</th>
|
||||
<th>Período / Modalidad</th>
|
||||
@@ -40,7 +52,7 @@
|
||||
<th>Comisiones</th>
|
||||
<th>Estado Institucional</th>
|
||||
{% if can_edit %}
|
||||
<th class="text-end">Acciones</th>
|
||||
<th class="text-end pe-3">Acciones</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table-light">
|
||||
<thead class="bg-body-tertiary">
|
||||
<tr>
|
||||
<th>Carrera / Titulación</th>
|
||||
<th>Código</th>
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
{% if commissions %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover mb-0 align-middle" id="commissions-table">
|
||||
<thead class="table-light">
|
||||
<thead class="bg-body-tertiary">
|
||||
<tr>
|
||||
<th class="ps-3">Comisión</th>
|
||||
<th>Asignatura</th>
|
||||
|
||||
@@ -4,28 +4,34 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="container-fluid pt-5 mt-4">
|
||||
<!-- Header -->
|
||||
<div class="d-flex flex-column flex-md-row justify-content-between align-items-md-center gap-3 mb-4">
|
||||
<div>
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb mb-1 small">
|
||||
<li class="breadcrumb-item"><a href="/main/dashboard">Dashboard</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Tipificaciones</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<h1 class="h3 fw-bold mb-1">
|
||||
<i class="bi bi-tags text-warning me-2"></i>Tipificaciones de Hitos Académicos
|
||||
</h1>
|
||||
<p class="text-muted mb-0 small">
|
||||
Catálogo dinámico y configurable de tipos de evaluaciones, parciales, TPs y eventos para el calendario institucional.
|
||||
</p>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
{% if can_edit %}
|
||||
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modalAddType">
|
||||
<i class="bi bi-plus-lg me-1"></i>Nueva Tipificación
|
||||
</button>
|
||||
{% endif %}
|
||||
<!-- Header Institucional -->
|
||||
<div class="card border-0 shadow-sm mb-4" style="border-radius: 14px; background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(180, 62, 142, 0.03) 100%); border-left: 4px solid var(--bs-warning) !important;">
|
||||
<div class="card-body p-3 p-md-4">
|
||||
<div class="d-flex flex-column flex-md-row justify-content-between align-items-md-center gap-3">
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<div class="rounded-3 p-3 bg-warning bg-opacity-10 text-warning d-flex align-items-center justify-content-center shadow-xs" style="width: 52px; height: 52px;">
|
||||
<i class="bi bi-tags-fill fs-3"></i>
|
||||
</div>
|
||||
<div>
|
||||
<nav aria-label="breadcrumb" class="mb-1">
|
||||
<ol class="breadcrumb mb-0 py-0" style="font-size: 0.76rem;">
|
||||
<li class="breadcrumb-item"><a href="/dashboard" class="text-decoration-none text-muted"><i class="bi bi-house-door me-1"></i>Inicio</a></li>
|
||||
<li class="breadcrumb-item"><a href="/admin/academic_periods_list" class="text-decoration-none text-muted">Estructura Académica</a></li>
|
||||
<li class="breadcrumb-item active fw-semibold text-warning-emphasis" aria-current="page">Tipificaciones de Hitos</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<h1 class="h4 fw-bold mb-0">Tipificaciones de Hitos Académicos</h1>
|
||||
<p class="text-muted small mb-0 mt-1">Catálogo dinámico y configurable de tipos de evaluaciones, parciales, TPs y eventos para el calendario institucional.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
{% if can_edit %}
|
||||
<button type="button" class="btn btn-primary btn-sm px-3 shadow-xs" data-bs-toggle="modal" data-bs-target="#modalAddType">
|
||||
<i class="bi bi-plus-lg me-1"></i>Nueva Tipificación
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table-light">
|
||||
<thead class="bg-body-tertiary">
|
||||
<tr>
|
||||
<th>Código</th>
|
||||
<th>Nombre de la Asignatura</th>
|
||||
|
||||
@@ -1,70 +1,114 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}User Profile - Edu-Space Admin{% endblock %}
|
||||
{% block title %}Mi Perfil — Edu-Space{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container pt-5 mt-4">
|
||||
<div class="container-fluid pt-3">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-8">
|
||||
<!-- Header -->
|
||||
<div class="d-flex align-items-center justify-content-between mb-4">
|
||||
<h1 class="h3 mb-0">
|
||||
<i class="bi bi-person-badge text-primary me-2"></i>My Profile
|
||||
</h1>
|
||||
<a href="/main/dashboard" class="btn btn-outline-secondary btn-sm">
|
||||
<i class="bi bi-arrow-left me-1"></i>Dashboard
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Profile Card -->
|
||||
<div class="card border-0 shadow-sm mb-4">
|
||||
<div class="card-body p-4">
|
||||
<div class="d-flex align-items-center mb-4">
|
||||
<div class="bg-primary text-white rounded-circle d-flex align-items-center justify-content-center me-3" style="width: 72px; height: 72px; font-size: 2rem;">
|
||||
<i class="bi bi-person"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="mb-1">{{ user.name }}</h4>
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<span class="badge bg-primary">{{ user.role }}</span>
|
||||
{% if user.is_active %}
|
||||
<span class="badge bg-success"><i class="bi bi-check-circle me-1"></i>Active</span>
|
||||
{% else %}
|
||||
<span class="badge bg-danger"><i class="bi bi-x-circle me-1"></i>Inactive</span>
|
||||
{% endif %}
|
||||
<div class="col-lg-9 col-xl-8">
|
||||
<!-- Header Institucional -->
|
||||
<div class="card border-0 shadow-sm mb-4" style="border-radius: 14px; background: linear-gradient(135deg, rgba(180, 62, 142, 0.05) 0%, rgba(13, 110, 253, 0.03) 100%); border-left: 4px solid var(--bs-primary) !important;">
|
||||
<div class="card-body p-3 p-md-4">
|
||||
<div class="d-flex flex-column flex-md-row justify-content-between align-items-md-center gap-3">
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<div class="rounded-3 p-3 bg-primary bg-opacity-10 text-primary d-flex align-items-center justify-content-center shadow-xs" style="width: 52px; height: 52px;">
|
||||
<i class="bi bi-person-badge-fill fs-3"></i>
|
||||
</div>
|
||||
<div>
|
||||
<nav aria-label="breadcrumb" class="mb-1">
|
||||
<ol class="breadcrumb mb-0 py-0" style="font-size: 0.76rem;">
|
||||
<li class="breadcrumb-item"><a href="/dashboard" class="text-decoration-none text-muted"><i class="bi bi-house-door me-1"></i>Inicio</a></li>
|
||||
<li class="breadcrumb-item active fw-semibold text-primary" aria-current="page">Mi Perfil</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<h1 class="h4 fw-bold mb-0">Mi Perfil Institucional</h1>
|
||||
<p class="text-muted small mb-0 mt-1">Gestión de credenciales, información de cuenta y preferencias de interfaz.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
<a href="/dashboard" class="btn btn-outline-secondary btn-sm px-3 shadow-xs">
|
||||
<i class="bi bi-arrow-left me-1"></i>Volver al Panel
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Feedback Alerts -->
|
||||
{% if success %}
|
||||
<div class="alert alert-success alert-dismissible fade show shadow-sm mb-4" role="alert">
|
||||
<i class="bi bi-check-circle-fill me-2"></i>{{ success }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Cerrar"></button>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if error %}
|
||||
<div class="alert alert-danger alert-dismissible fade show shadow-sm mb-4" role="alert">
|
||||
<i class="bi bi-exclamation-triangle-fill me-2"></i>{{ error }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Cerrar"></button>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<!-- Profile Card -->
|
||||
<div class="card border-0 shadow-sm mb-4" style="border-radius: 12px;">
|
||||
<div class="card-body p-4">
|
||||
<div class="d-flex flex-wrap align-items-center justify-content-between gap-3 mb-4">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="bg-primary bg-opacity-10 text-primary border border-primary-subtle rounded-circle d-flex align-items-center justify-content-center me-3 shadow-xs" style="width: 68px; height: 68px; font-size: 1.85rem;">
|
||||
<i class="bi bi-person-fill"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="mb-1 fw-bold text-body">{{ user.name or user.first_name ~ ' ' ~ user.last_name }}</h4>
|
||||
<div class="d-flex align-items-center gap-2 flex-wrap">
|
||||
<span class="badge bg-primary-subtle text-primary border border-primary-subtle font-monospace text-uppercase" style="font-size: 0.75rem;">
|
||||
<i class="bi bi-shield-check me-1"></i>{{ user.role }}
|
||||
</span>
|
||||
{% if user.is_active != false %}
|
||||
<span class="badge bg-success-subtle text-success border border-success-subtle" style="font-size: 0.75rem;">
|
||||
<i class="bi bi-check-circle-fill me-1"></i>Activo
|
||||
</span>
|
||||
{% else %}
|
||||
<span class="badge bg-danger-subtle text-danger border border-danger-subtle" style="font-size: 0.75rem;">
|
||||
<i class="bi bi-x-circle-fill me-1"></i>Inactivo
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="/auth/change_password" class="btn btn-outline-primary btn-sm">
|
||||
<i class="bi bi-key me-1"></i>Cambiar Contraseña
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<hr class="my-4">
|
||||
<hr class="my-4 opacity-25">
|
||||
|
||||
<!-- User Details Grid -->
|
||||
<div class="row g-3">
|
||||
<div class="col-sm-6">
|
||||
<label class="form-label text-muted small mb-1">Email</label>
|
||||
<div class="fw-semibold">{{ user.email }}</div>
|
||||
<label class="form-label text-muted small mb-1 fw-semibold">Correo Electrónico Institucional</label>
|
||||
<div class="fw-bold font-monospace text-body">{{ user.email }}</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label class="form-label text-muted small mb-1">Full Name</label>
|
||||
<div class="fw-semibold">{{ user.name }}</div>
|
||||
<label class="form-label text-muted small mb-1 fw-semibold">Nombre Completo</label>
|
||||
<div class="fw-semibold text-body">{{ user.name or user.first_name ~ ' ' ~ user.last_name }}</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label class="form-label text-muted small mb-1">Access Role</label>
|
||||
<div class="fw-semibold">{{ user.role }}</div>
|
||||
<label class="form-label text-muted small mb-1 fw-semibold">Rol de Acceso Asignado</label>
|
||||
<div class="fw-semibold text-body">{{ user.role }}</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label class="form-label text-muted small mb-1">Last Login</label>
|
||||
<div class="fw-semibold">
|
||||
<label class="form-label text-muted small mb-1 fw-semibold">Último Acceso al Sistema</label>
|
||||
<div class="fw-semibold text-body font-monospace">
|
||||
{% if user.last_login %}
|
||||
{{ user.last_login }}
|
||||
{% else %}
|
||||
<span class="text-muted">First login</span>
|
||||
<span class="text-muted fst-italic">Primer ingreso registrado</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label class="form-label text-muted small mb-1">Registration Date</label>
|
||||
<div class="fw-semibold">
|
||||
<label class="form-label text-muted small mb-1 fw-semibold">Fecha de Alta Institucional</label>
|
||||
<div class="fw-semibold text-body font-monospace">
|
||||
{% if user.created_at %}
|
||||
{{ user.created_at }}
|
||||
{% else %}
|
||||
@@ -74,23 +118,23 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="my-4">
|
||||
<hr class="my-4 opacity-25">
|
||||
|
||||
<!-- Preferences Section -->
|
||||
<form method="POST" action="/auth/profile">
|
||||
<h5 class="fw-bold mb-3">
|
||||
<i class="bi bi-sliders text-primary me-2"></i>User Preferences
|
||||
<h5 class="fw-bold mb-3 h6 text-primary">
|
||||
<i class="bi bi-sliders me-2"></i>Preferencias de Usuario
|
||||
</h5>
|
||||
|
||||
<div class="row g-3">
|
||||
<!-- Preferred Language -->
|
||||
<div class="col-md-6 mb-3">
|
||||
<label for="preferred_language" class="form-label fw-semibold">
|
||||
<i class="bi bi-translate text-primary me-1"></i>Interface Language
|
||||
<label for="preferred_language" class="form-label fw-semibold small">
|
||||
<i class="bi bi-translate text-primary me-1"></i>Idioma de Interfaz
|
||||
</label>
|
||||
<select class="form-select" id="preferred_language" name="preferred_language">
|
||||
<select class="form-select form-select-sm" id="preferred_language" name="preferred_language">
|
||||
<option value="" {% if not user.preferred_language %}selected{% endif %}>
|
||||
Auto-detect from browser (Default)
|
||||
Detección automática del navegador (Predeterminado)
|
||||
</option>
|
||||
<option value="es" {% if user.preferred_language == 'es' %}selected{% endif %}>
|
||||
Español
|
||||
@@ -99,77 +143,77 @@
|
||||
English
|
||||
</option>
|
||||
</select>
|
||||
<small class="text-muted d-block mt-1">
|
||||
If set, this language overrides the browser configuration for all your sessions.
|
||||
<small class="text-muted d-block mt-1" style="font-size: 0.72rem;">
|
||||
Si se define, este idioma prevalecerá sobre el navegador en todas tus sesiones.
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<!-- Theme Preference -->
|
||||
<div class="col-md-6 mb-3">
|
||||
<label for="theme_preference" class="form-label fw-semibold">
|
||||
<i class="bi bi-palette text-primary me-1"></i>Visual Theme
|
||||
<label for="theme_preference" class="form-label fw-semibold small">
|
||||
<i class="bi bi-palette text-primary me-1"></i>Tema Visual
|
||||
</label>
|
||||
<select class="form-select" id="theme_preference" name="theme_preference">
|
||||
<select class="form-select form-select-sm" id="theme_preference" name="theme_preference">
|
||||
<option value="auto" {% if user.theme_preference == 'auto' or not user.theme_preference %}selected{% endif %}>
|
||||
Automatic (follow system)
|
||||
Automático (según sistema operativo)
|
||||
</option>
|
||||
<option value="light" {% if user.theme_preference == 'light' %}selected{% endif %}>
|
||||
Light Mode
|
||||
Modo Claro
|
||||
</option>
|
||||
<option value="dark" {% if user.theme_preference == 'dark' %}selected{% endif %}>
|
||||
Dark Mode
|
||||
Modo Oscuro
|
||||
</option>
|
||||
</select>
|
||||
<small class="text-muted d-block mt-1">
|
||||
Choose your preferred visual theme.
|
||||
<small class="text-muted d-block mt-1" style="font-size: 0.72rem;">
|
||||
Selecciona el tema visual de tu preferencia.
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-end mt-2">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<i class="bi bi-check-lg me-1"></i>Save Preferences
|
||||
<button type="submit" class="btn btn-primary btn-sm px-3 shadow-xs">
|
||||
<i class="bi bi-check-lg me-1"></i>Guardar Preferencias
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card-footer bg-body-tertiary px-4 py-3 d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small">Account Security</span>
|
||||
<a href="/auth/change_password" class="btn btn-primary btn-sm">
|
||||
<i class="bi bi-key me-1"></i>Change Password
|
||||
<div class="card-footer bg-body-tertiary px-4 py-3 d-flex justify-content-between align-items-center border-top">
|
||||
<span class="text-muted small"><i class="bi bi-shield-check text-success me-1"></i>Seguridad de la Cuenta</span>
|
||||
<a href="/auth/change_password" class="btn btn-sm btn-outline-secondary">
|
||||
<i class="bi bi-key me-1"></i>Actualizar Contraseña
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- User Reservations Overview (if any) -->
|
||||
{% if user.reservations %}
|
||||
<div class="card border-0 shadow-sm mb-4">
|
||||
<div class="card-header bg-body-tertiary">
|
||||
<h5 class="card-title mb-0 h6">
|
||||
<i class="bi bi-calendar-event me-2"></i>My Recent Reservations
|
||||
{% if user.reservations and user.reservations.length > 0 %}
|
||||
<div class="card border-0 shadow-sm mb-4" style="border-radius: 12px;">
|
||||
<div class="card-header bg-body-tertiary py-3 border-0">
|
||||
<h5 class="card-title mb-0 h6 fw-bold">
|
||||
<i class="bi bi-calendar-event text-primary me-2"></i>Mis Reservas Recientes
|
||||
</h5>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table-light">
|
||||
<table class="table table-hover align-middle mb-0 small">
|
||||
<thead class="bg-body-tertiary">
|
||||
<tr>
|
||||
<th>Classroom</th>
|
||||
<th>Purpose</th>
|
||||
<th>Date & Time</th>
|
||||
<th>Status</th>
|
||||
<th>Aula / Espacio</th>
|
||||
<th>Propósito</th>
|
||||
<th>Fecha y Horario</th>
|
||||
<th>Estado</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for res in (user.reservations or []).slice(0, 5) %}
|
||||
<tr>
|
||||
<td>
|
||||
<span class="badge bg-secondary">{{ res.classroom.code_display if res.classroom else 'N/A' }}</span>
|
||||
<span class="badge bg-secondary-subtle text-secondary border">{{ res.classroom.code_display if res.classroom else 'N/A' }}</span>
|
||||
</td>
|
||||
<td>{{ res.purpose }}</td>
|
||||
<td>{{ res.start_time }}</td>
|
||||
<td>
|
||||
<span class="badge bg-{{ 'success' if res.status == 'CONFIRMED' else ('warning' if res.status == 'PENDING' else 'secondary') }}">
|
||||
<span class="badge bg-{{ 'success' if res.status == 'CONFIRMED' else ('warning' if res.status == 'PENDING' else 'secondary') }}-subtle text-{{ 'success' if res.status == 'CONFIRMED' else ('warning' if res.status == 'PENDING' else 'secondary') }} border">
|
||||
{{ res.status }}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -1096,6 +1096,43 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* =======================================================
|
||||
ARMONIZACIÓN GLOBAL DE TABLAS EN MODO OSCURO (DARK MODE)
|
||||
Neutraliza .table-light y cabeceras claras que rompen el contraste
|
||||
======================================================= */
|
||||
[data-bs-theme="dark"] .table-light,
|
||||
[data-bs-theme="dark"] thead.table-light,
|
||||
[data-bs-theme="dark"] thead.table-light th,
|
||||
[data-bs-theme="dark"] thead.table-light td,
|
||||
[data-bs-theme="dark"] .table > :not(caption) > *.table-light > *,
|
||||
[data-bs-theme="dark"] .table thead.table-light th {
|
||||
--bs-table-color: #cbd5e1 !important;
|
||||
--bs-table-bg: #1e293b !important;
|
||||
--bs-table-border-color: rgba(255, 255, 255, 0.08) !important;
|
||||
background-color: #1e293b !important;
|
||||
color: #e2e8f0 !important;
|
||||
border-color: rgba(255, 255, 255, 0.08) !important;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .table thead th {
|
||||
background-color: #1e293b !important;
|
||||
color: #f1f5f9 !important;
|
||||
border-bottom: 2px solid rgba(255, 255, 255, 0.12) !important;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .table {
|
||||
--bs-table-color: #cbd5e1 !important;
|
||||
--bs-table-border-color: rgba(255, 255, 255, 0.08) !important;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
|
||||
--bs-table-hover-bg: rgba(255, 255, 255, 0.04) !important;
|
||||
--bs-table-hover-color: #f8fafc !important;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
|
||||
--bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% block extra_css %}{% endblock %}
|
||||
|
||||
@@ -429,7 +429,7 @@
|
||||
<div class="card border-0 shadow-sm mt-1">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table-light small text-uppercase">
|
||||
<thead class="bg-body-tertiary small text-uppercase">
|
||||
<tr>
|
||||
<th class="ps-3">Aula / Código</th>
|
||||
<th>Edificio / Sede</th>
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table-light small text-uppercase">
|
||||
<thead class="bg-body-tertiary small text-uppercase">
|
||||
<tr>
|
||||
<th class="ps-3">Fecha y Horario</th>
|
||||
<th>Aula / Piso</th>
|
||||
|
||||
Reference in New Issue
Block a user