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

{% block content %}

    <div class="row">
        <h3 class="text-center">REGISTRO DE EXCURSIONES / EVENTOS</h3>
        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
            <form class="form-horizontal" action="{{path('alta_eventos')}}" method="POST">
                <div class="form-group">
                    <label class="control-label col-sm-4" for="nomEve">Nombre del Evento:</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="nomEve" id="nomEve" required="true">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-4" for="costo">Costo:</label>
                    <div class="col-sm-8">
                        <input type="number" step="any" class="form-control" name="costo" id="costo" min="0" required="true">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-4" for="fecEve">Fecha del Evento:</label>
                    <div class="col-sm-8">
                        <input type="date" class="form-control" name="fecEve" id="fecEve" required="true">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-4" for="horIni">Hora Inicio:</label>
                    <div class="col-sm-8">
                        <input type="time" class="form-control" name="horIni" id="horIni">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-4" for="horFin">Hora Fin:</label>
                    <div class="col-sm-8">
                        <input type="time" class="form-control" name="horFin" id="horFin">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-4" for="responsable">Responsable:</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="responsable" id="responsable" required="true">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-4" for="cvePla">Plantel Cede:</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="cvePla" id="cvePla" readonly="true" value="{{plantel.nomPla}}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10 text-right">
                        <button type="submit" class="btn btn-primary">Registrar</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-lg-5 col-md-5 col-sm-5 col-xs-12 table-responsive">
            <table class="table table-condensed table-sobre table-striped table-responsive">
                <thead>
                    <tr>
                        <th>NP</th>
                        <th>NOMBRE</th>
                        <th>MONTO</th>
                    </tr>
                </thead>
                <tbody>
                    {% if cT is defined %}
                        {% for c in cT %}
                            <tr>
                                <td>{{loop.index}}</td>
                                <td>{{c.desTra}}</td>
                                <td>$ {{c.monto | number_format(2,".",",")}}</td>
                            </tr>
                        {% endfor %}
                    {% endif %}
                </tbody>
            </table>
        </div>
    </div>

{% endblock %}