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

{% block stylesheet %}
{% endblock %}

{% block javascripts %}
{% endblock %}

{% block content %}
    <div class="container-fluid">
        <h1 class="mt-4">CONSULTA DE PLANTELES</h1><button id="btnExportar" class="btn btn-info btn-sm">Exportar</button>
        <ol class="breadcrumb mb-2">
            <li class="breadcrumb-item"><a href="{{ path('cm_homepage') }}">Tablero</a></li>
            <li class="breadcrumb-item active">Plantel</li>
        </ol>
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 table-responsive">
                <table class="table table-condensed table-sobre table-striped small">
                    <thead>
                        <tr>
                            <th>NP</th>
                            <th>CVE</th>
                            <th>CCT</th>
                            <th>NOMENCLATURA</th>
                            <th>NOMBRE</th>
                            <th>TELÉFONO</th>
                            <th>*</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% if planteles is defined %}
                            {% for p in planteles %}
                                <tr>
                                    <td>{{loop.index}}</td>
                                    <td>{{p.cvePla}}</td>
                                    <td>{{p.cct}}</td>
                                    <td>{{p.nomenclatura}}</td>
                                    <td>{{p.nomPla}}</td>
                                    <td>{{p.tel}}</td>
                                    <td>
                                        <a class="btn btn-success btn-xs" href="{{ path('editar_plantel',{'idePla':p.idePla}) }}">
                                            <i class="fa fa-edit fw"></i>
                                        </a>
                                    </td>
                                </tr>
                            {% endfor %}
                        {% endif %}
                    </tbody>
                </table>
            </div><!-- FIN col-lg-12 -->
        </div><!-- FIN row -->
    </div><!-- FIN container-fluid -->
{% endblock %}
