feat(reception,udeci): v3.8.48 - forced scanner focus, spanish keyboard gun normalization, reception default dashboard, and udeci commission listings
This commit is contained in:
+16
-15
@@ -1544,6 +1544,20 @@
|
||||
</head>
|
||||
<body data-user-authenticated="{{ 'true' if (auth_user and auth_user.is_authenticated) else 'false' }}">
|
||||
{% if auth_user and auth_user.is_authenticated %}
|
||||
{% set active_nav_user = impersonated_user if (is_impersonating and impersonated_user) else (auth_user if (auth_user and auth_user.is_authenticated) else (current_user if (current_user and current_user.is_authenticated) else user)) %}
|
||||
{% set raw_user_role = ((active_nav_user.role if active_nav_user and active_nav_user.role else (role if role else 'alumno')) | string | lower) %}
|
||||
{% if 'admin' in raw_user_role %}
|
||||
{% set user_role = 'admin' %}
|
||||
{% elif 'bedel' in raw_user_role %}
|
||||
{% set user_role = 'bedelia' %}
|
||||
{% elif 'docent' in raw_user_role or 'prof' in raw_user_role %}
|
||||
{% set user_role = 'docente' %}
|
||||
{% elif 'recep' in raw_user_role %}
|
||||
{% set user_role = 'recepcion' %}
|
||||
{% else %}
|
||||
{% set user_role = 'alumno' %}
|
||||
{% endif %}
|
||||
{% set home_url = '/reception/scanner' if user_role == 'recepcion' else '/dashboard' %}
|
||||
|
||||
<div class="app-wrapper">
|
||||
<!-- Sidebar Backdrop (Móvil) -->
|
||||
@@ -1551,7 +1565,7 @@
|
||||
<!-- Sidebar -->
|
||||
<aside class="sidebar" id="sidebar">
|
||||
<div class="sidebar-header border-bottom border-secondary-subtle d-flex align-items-center justify-content-between px-3">
|
||||
<a href="/dashboard" class="text-decoration-none d-flex align-items-center brand-link">
|
||||
<a href="{{ home_url }}" class="text-decoration-none d-flex align-items-center brand-link">
|
||||
<img src="/img/logo_unicaba_mini.png" alt="Logo UniCABA" class="navbar-logo me-2" height="26">
|
||||
<span class="brand-text fs-5">Edu-Space</span>
|
||||
</a>
|
||||
@@ -1566,19 +1580,6 @@
|
||||
</div>
|
||||
|
||||
<div class="sidebar-body flex-grow-1 overflow-y-auto p-2">
|
||||
{% set active_nav_user = impersonated_user if (is_impersonating and impersonated_user) else (auth_user if (auth_user and auth_user.is_authenticated) else (current_user if (current_user and current_user.is_authenticated) else user)) %}
|
||||
{% set raw_user_role = ((active_nav_user.role if active_nav_user and active_nav_user.role else (role if role else 'alumno')) | string | lower) %}
|
||||
{% if 'admin' in raw_user_role %}
|
||||
{% set user_role = 'admin' %}
|
||||
{% elif 'bedel' in raw_user_role %}
|
||||
{% set user_role = 'bedelia' %}
|
||||
{% elif 'docent' in raw_user_role or 'prof' in raw_user_role %}
|
||||
{% set user_role = 'docente' %}
|
||||
{% elif 'recep' in raw_user_role %}
|
||||
{% set user_role = 'recepcion' %}
|
||||
{% else %}
|
||||
{% set user_role = 'alumno' %}
|
||||
{% endif %}
|
||||
<ul class="sidebar-nav mb-0" id="sidebarNav">
|
||||
{% if user_role == 'admin' %}
|
||||
<!-- ADMINISTRADOR -->
|
||||
@@ -1923,7 +1924,7 @@
|
||||
<div class="main-content">
|
||||
<!-- Mobile Header (Visible EXCLUSIVAMENTE en dispositivos móviles y tablets < 992px) -->
|
||||
<div class="mobile-header shadow-sm align-items-center justify-content-between px-3">
|
||||
<a href="/dashboard" class="text-decoration-none brand-link d-flex align-items-center">
|
||||
<a href="{{ home_url }}" class="text-decoration-none brand-link d-flex align-items-center">
|
||||
<img src="/img/logo_unicaba_mini.png" alt="Logo UniCABA" class="navbar-logo me-2" height="24">
|
||||
<span class="brand-text fw-bold fs-6">Edu-Space</span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user