{% extends 'CmBundle:Z:baseDos.html.twig' %}

{% block stylesheet %}
{% endblock %}

{% block javascripts %}
{% endblock %}


{% block content %}
    <div class="row">
        <div class="col-lg-12">
            <h1>GENERAR CREDENCIALES POR LOTES</h1>
        </div>
        <div class="col-lg-12">
            <form method="POST" action="{{path('filtro_credenciales')}}" target="_blank">
                <div class="form-group">
                    <label class="title col-md-2">PLANTEL:</label>
                    <div class="col-md-4">
                        <select id="idePla" name="idePla" class="form-control">
                            <option value="default">Selecciona</option>
                            {% if planteles is defined and planteles != null %}
                                {% for p in planteles %}
                                    <option value="{{p.idePla}}">{{p.nomPla}}</option>
                                {% endfor %}
                            {% endif %}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="title col-md-2">NIVEL:</label>
                    <div class="col-md-4">
                        <select id="ideLic" name="ideLic" class="form-control">
                            <option value="default">Selecciona</option>
                            {% if licenciaturas is defined and licenciaturas != null %}
                                {% for l in licenciaturas %}
                                    {% if l.cveNivAca.ideNivAca == 1 %}
                                        <option value="{{l.ideLic}}">B: {{l.nomLic}}</option>
                                    {% elseif l.cveNivAca.ideNivAca == 2 %}
                                        <option value="{{l.ideLic}}">EU: {{l.nomLic}}</option>
                                    {% elseif l.cveNivAca.ideNivAca == 3 %}
                                        <option value="{{l.ideLic}}">LIC: {{l.nomLic}}</option>
                                    {% elseif l.cveNivAca.ideNivAca == 4 %}
                                        <option value="{{l.ideLic}}">MTRÍA: {{l.nomLic}}</option>
                                    {% elseif l.cveNivAca.ideNivAca == 5 %}
                                        <option value="{{l.ideLic}}">DOC: {{l.nomLic}}</option>
                                    {% endif %}
                                {% endfor %}
                            {% endif %}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <button class="btn btn-primary" type="submit">Generar</button>
                </div>
            </form>
        </div>
    </div>
{% endblock %}