{% extends 'gakusei/create-layout.html' %}
{% load crispy_forms_tags %}
{% load static %}

    {% block style %}
        <link rel="stylesheet" href="{% static 'gakusei/select2/select2.min.css' %}">
        <link rel="stylesheet" href="{% static 'gakusei/select2/select2-bootstrap-5-theme.min.css' %}">
    {% endblock %}

    {% block script %}
        <script src="{% static 'gakusei/js/jquery-3.7.1.min.js' %}"></script>
        <script src="{% static 'gakusei/select2/select2.full.min.js' %}"></script>

        <script src="{% static 'gakusei/js/asistencia/create-rezagados.js' %}"></script>
    {% endblock %}


    {% block regresar-url %}{% url 'dia-de-clase' %}{% endblock %}

    {% block card-title %}Registro de Asistencia para Rezagados{% endblock %}

    {% block form %}
        <form id="asistencia-form" action="{% url 'asistencia-create-rezagados' %}" data-asistencia="{% url 'api-asistencia-form-rezagados' %}" method="post"> {%csrf_token%}
            
            {{ clase_form }}

            <div id="rezagados-form">
                <p>Seleccione una clase primero.</p>
            </div>

            <input id="submit-button" class="btn btn-lg btn-success" disabled type="submit" value="Registrar">
        </form>
    {% endblock %}