{% extends 'base.html' %} {% block title %}{{ commission.subject.name }} — {{ commission.get_full_code() }} — Edu-Space{% endblock %} {% block content %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}
{% set shift_gradient = { 'Mañana': 'linear-gradient(135deg, #f59e0b 0%, #fcd34d 100%)', 'Tarde': 'linear-gradient(135deg, #3b82f6 0%, #93c5fd 100%)', 'Vespertino':'linear-gradient(135deg, #8b5cf6 0%, #c4b5fd 100%)', 'Noche': 'linear-gradient(135deg, #1e293b 0%, #475569 100%)' } %}
{{ commission.get_full_code() }}

{{ commission.subject.name }}

{% if commission.subject.career_obj %} {{ commission.subject.career_obj.name }} {% endif %}
{% if commission.shift %} {% set shift_colors = {'Mañana': 'warning', 'Tarde': 'info', 'Vespertino': 'secondary', 'Noche': 'dark'} %} {{ commission.shift }} {% endif %} {{ commission.semester }} {{ commission.year }} {% if commission.active %} Activa {% else %} Inactiva {% endif %}
    {% if commission.schedule %}
  • Horario
    {{ commission.schedule }}
  • {% endif %}
  • Docente
    {% if commission.teacher %}
    {{ commission.teacher.name }}
    {{ commission.teacher.email }}
    {% else %}
    Sin asignar
    {% endif %}
  • {% if role in ['docente', 'admin', 'bedelia'] %}
  • Alumnos
    {{ enrollments | length }} / {{ commission.max_students }}
  • {% endif %} {% if commission.subject.code %}
  • Código asignatura
    {{ commission.subject.code }}
  • {% endif %} {% if commission.subject.credits %}
  • Créditos
    {{ commission.subject.credits }}
  • {% endif %}
{% if commission.virtual_link %} Acceso Virtual (Zoom / Meet / Teams) {% endif %} {% if role in ['admin', 'bedelia'] %} {% endif %}
{% if classroom %}
Aula Asignada
{{ classroom.room_number }}
{{ classroom.building or '—' }}{% if classroom.floor %}, Piso {{ classroom.floor }}{% endif %}
{% if recent_reservation %}
Próxima clase: {{ recent_reservation.start_time.strftime('%d/%m/%Y %H:%M') }}
{% endif %}
{% if classroom.capacity %} Capacidad: {{ classroom.capacity }} {% endif %} {% if classroom.has_projector %} Proyector {% endif %}
{% endif %}
{% if role in ['docente', 'admin', 'bedelia'] and enrollments %}
Alumnos Inscriptos {{ enrollments | length }}
{% for e in enrollments %} {% endfor %}
# Alumno Estado Desde Notas
{{ loop.index }}
{{ e.student.name if e.student else '—' }}
{{ e.student.email if e.student else '' }}
{% set st_colors = {'activo': 'success', 'retirado': 'danger', 'condicional': 'warning'} %} {{ e.status | capitalize }} {{ e.enrolled_at.strftime('%d/%m/%Y') if e.enrolled_at else '—' }} {{ e.notes or '—' }}
{% elif role in ['docente', 'admin', 'bedelia'] and not enrollments %}

No hay alumnos inscriptos en esta comisión todavía.

{% if role in ['admin', 'bedelia'] %} Inscribir Alumnos {% endif %}
{% elif role == 'alumno' %}
Tu inscripción
Inscripto en esta comisión
{{ commission.subject.name }} — {{ commission.get_full_code() }}
{% if commission.subject.description %}
Sobre la asignatura

{{ commission.subject.description }}

{% endif %}
{% endif %}
{% endblock %}