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

{% block content %}
    <div class="container">
        <h3 class="text-center">REGISTRO DE COSTO DE INSCRIPCION</h3>
        <div class="col-lg-2 col-md-2 col-sm-2 hidden-xs">
        </div>
        <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
            <form class="form-horizontal" action="{{path('alta_costo_inscripcion')}}" method="POST">
                <div class="form-group">
                    <label class="control-label col-sm-2" for="grado">Grado:</label>
                    <div class="col-sm-10">
                        <select id="grado" name="grado" class="form-control">
                            <option value="default">Selecciona</option>
                            {% if grados is defined %}
                                {% for g in grados %}
                                    <option value="{{ g.ideLic }}">{{ g.nomLic }}</option>
                                {% endfor %}
                            {% endif %}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-2" for="monto">Monto:</label>
                    <div class="col-sm-10">
                        <input type="number" step="any" class="form-control" id="monto" name="monto">
                    </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-12 col-md-12 col-sm-12 col-xs-12 table-responsive">
            <table class="table table-condensed table-sobre table-striped">
                <thead>
                    <tr>
                        <th>NP</th>
                        <th>GRADO</th>
                        <th>COSTO INSCRIPCION</th>
                    </tr>
                </thead>
                <tbody>
                    {% if costos is defined %}
                        {% for c in costos %}
                            <tr>
                                <td>{{loop.index}}</td>
                                <td>{{c.cveLic.nomLic}}</td>
                                <td>$ {{c.monto}}</td>
                            </tr>
                        {% endfor %}
                    {% endif %}
                </tbody>
            </table>
        </div>
    </div>

{% endblock %}