{% extends 'base.html.twig' %}
{% block title%}
    WONDER-T-Nal Facturar
{% endblock %}
{% block titulo %}
    GESTIÓN DE FACTURAS - EMPRESAS TRANSPORTE NACIONAL
{% endblock %}
{% block bread %}
    Cobra Factura
{% endblock %}


{% block body %}
    <style>
        body {background-image: url({{ asset('recursos/imagenes/sistema/fondo_lateral.png')}});
            background-repeat: no-repeat;
            /*background-size: 200px;*/
            background-size: cover;
        }

        .col-sm-2 {
            max-width: 100%;
        }
    </style>

    {#{{ form_start(form) }}#}
    {{ form_start(form, { 'attr': {'novalidate':'novalidate', 'class': 'form-material form-horizontal'} }) }}
    <div class="row">
        <div class="col-sm-12">
            <div class="white-box">
                <br>
                <h3 class="box-title">COBRA FACTURA</h3>
                <br><br>
                <div class="row" style="pointer-events:none">
                    <div class="form-group col-sm-3">
                        {{ form_label(form.fcobrofact) }}
                        {{ form_widget(form.fcobrofact) }}
                        {#                        <span class="text-danger">{{ form_errors(form.fcobrofact) }}</span>#}
                    </div>
                    <div class="form-group col-sm-1"></div>
                    <div class="form-group col-sm-3">
                        {{ form_label(form.factura) }}
                        {{ form_widget(form.factura) }}
                        {#                        <span class="text-danger">{{ form_errors(form.factura) }}</span>#}
                    </div>
                    <div class="form-group col-sm-1"></div>
                    <div class="form-group col-sm-3">
                        {{ form_label(form.monto) }}
                        {{ form_widget(form.monto) }}
                        {#                        <span class="text-danger">{{ form_errors(form.monto) }}</span>#}
                    </div>
                </div>

                <div class="row" style="background: #fff59f">
                    <div class="form-group col-sm-3">
                        {{ form_label(form.fpagofact) }}
                        {{ form_widget(form.fpagofact) }}
                        {#                        <span class="text-danger">{{ form_errors(form.fcobrofact) }}</span>#}
                        {% if ((mimensaje1 is defined) and (mimensaje1 is not null)) %}
                            <span class="text-danger">{{ mimensaje1 }}</span>
                        {% endif %}
                    </div>
                    <div class="form-group col-sm-1"></div>
                    <div class="form-group col-sm-3">
                        {{ form_label(form.idpago) }}
                        {{ form_widget(form.idpago) }}
                        {#                        <span class="text-danger">{{ form_errors(form.factura) }}</span>#}
                        {% if ((mimensaje2 is defined) and (mimensaje2 is not null)) %}
                            <span class="text-danger">{{ mimensaje2 }}</span>
                        {% endif %}
                    </div>
                </div>

                <div class="row" style="background: #fff59f">
                    <div class="form-group col-sm-12">
                        {{ form_label(form.observacion) }}
                        {{ form_widget(form.observacion) }}
                        <span class="text-danger">{{ form_errors(form.observacion) }}</span>
                    </div>
                </div>

                <br>
                <button type="submit" class="btn btn-info waves-effect waves-light m-r-10">Guardar</button>
                <a class="btn btn-inverse waves-effect waves-light" href="{{ path('tnacional_index') }}">Cancelar</a>
            </div>

        </div><!-- /. columna1 -->

    </div>


    {{ form_end(form) }}

{% endblock %}


