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

{% block stylesheet %}
    <!-- Bootstrap Core CSS -->
    <link href="{{asset('vendor/bootstrap/css/bootstrap.min.css')}}" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="{{asset('vendor/metisMenu/metisMenu.min.css')}}" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="{{asset('dist/css/sb-admin-2.css')}}" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="{{asset('vendor/font-awesome/css/font-awesome.min.css')}}" rel="stylesheet" type="text/css">
{% endblock %}

{% block javascripts %}
    <!-- jQuery -->
    <script src="{{asset('vendor/jquery/jquery.min.js')}}"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="{{asset('vendor/bootstrap/js/bootstrap.min.js')}}"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="{{asset('vendor/metisMenu/metisMenu.min.js')}}"></script>

    <!-- Custom Theme JavaScript -->
    <script src="{{asset('dist/js/sb-admin-2.js')}}"></script>
{% endblock %}

{% block content %}
    <div class="row">
        <h3 class="text-center title">CONSULTA DE COLEGIATURAS</h3>
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
            <form class="form-horizontal" action="{{path('consulta_colegiatura')}}" method="POST">
                <div class="form-group">
                    <label class="control-label col-sm-2" for="cct">Licenciatura:</label>
                    <div class="col-sm-10">
                        <select id="licenciatura" name="licenciatura" class="form-control">
                            <option value="default">Selecciona</option>
                            {% if licenciaturas is defined %}
                                {% for l in licenciaturas %}
                                    <option value="{{l.ideLic}}">{{l.nomLic}}</option>
                                {% endfor %}
                            {% endif %}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10 text-right">
                        <button type="submit" class="btn btn-primary">Buscar</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 table-responsive">
            {% if lic is defined %}                
                <h3 class="text-center title">{{lic.nomLic}}</h3>
            {% endif %}
            <table class="table table-condensed table-sobre table-striped">
                <thead>
                <th>No.</th>
                <th>CVE</th>
                <th>NOMBRE</th>
                <th>MONTO</th>
                <th>ESTATUS</th>
                <th></th>
                </thead>
                <tbody>
                    {% if colegiaturas is defined %}
                        {% for c in colegiaturas %}
                            <tr>
                                <td>{{loop.index}}</td>
                                <td>{{c.cveCol}}</td>
                                <td>{{c.nomCol}}</td>
                                <td>{{c.monto}}</td>
                                <td>{{c.estatus.desEst}}</td>                                
                                <td>{{c.fecMov | date('d-m-Y')}}</td>
                            </tr>
                        {% endfor %}
                    {% endif %}
                </tbody>
            </table>
        </div>
    </div>

{% endblock %}
