{% extends 'gakusei/list-layout.html' %}

    {% block card-title %}Listado de Horarios{% endblock %}

    {% block create-url %}{% url 'horario-create' %}{% endblock %}
    {% block create-text %}Registrar Horario{% endblock %}

    {% block filter-url %}{% url 'horario-filter' %}{% endblock %}

    {% block thead %}
        <td>Clase</td>
        <td>Dia</td>
        <td>H. Entrada</td>
        <td>H. Salida</td>
        <td></td>
    {% endblock %}

    {% block tbody %}
        {% for horario in object_list %}
            <tr>
                <td>{{horario.clase}}</td>
                <td>{{horario.dia_semana}}</td>
                <td>{{horario.entrada}}</td>
                <td>{{horario.salida}}</td>
                <td class="text-center align-middle"><a href="{% url 'horario-detail' horario.id %}"><i class="fs-4 fa-solid fa-eye"></i></a></td>
            </tr>
            {% empty %}
            <tr>
                <td colspan="5" class="text-center fw-bold fst-italic">Sin Registros</td>
            </tr>
        {% endfor %}
    {% endblock %}