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

{% block stylesheet %}
{% endblock %}

{% block javascripts %}
{% endblock %}

{% block content %}
    <div class="row">
        <h3 class="text-center">GENERAR CLAVES</h3>
        <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
            <form class="form-horizontal" action="{{path('generar_claves')}}" method="POST">
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10 text-right">
                        <button type="submit" class="btn btn-primary">Crear</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
            <h1>Claves Disponibles</h1>
            <table class="table  table-responsive table-striped table-condensed">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>Folio</th>
                    </tr>
                </thead>
                <tbody>
                    {% if claves is defined and claves != null %}
                        {% for c in claves %}
                            <tr>
                                <td>{{loop.index}}</td>
                                <td>{{c.folio}}</td>
                            </tr>
                        {% endfor %}
                    {% endif %}
                </tbody>
            </table>
        </div>
        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
            <h1>Claves Ocupadas</h1>
            <table class="table  table-responsive table-striped table-condensed">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>Folio</th>
                        <th>Motivo</th>
                    </tr>
                </thead>
                <tbody>
                    {% if ocupadas is defined and ocupadas != null %}
                        {% for c in ocupadas %}
                            <tr>
                                <td>{{loop.index}}</td>
                                <td>{{c.folio}}</td>
                                <td>{{c.motivo}}</td>
                            </tr>
                        {% endfor %}
                    {% endif %}
                </tbody>
            </table>
        </div>
    </div>

{% endblock %}