{% extends 'base.html.twig' %}

{% block title %}
    WONDER-Nacional
{% endblock %}
{% block titulo %}
    GESTIÓN DE TRANSPORTE NACIONAL
{% endblock %}
{% block bread %}
    <li class="active">Edición Transporte Nacional</li>
{% 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">DATOS DEL TRANSPORTE NACIONAL</h3>
                <br><br>
                <div class="row">
                    {#                    <div class="form-group col-sm-5">#}
                    {#                        {{ form_label(form.factura) }}#}
                    {#                        {{ form_widget(form.factura) }}#}
                    {#                        <span class="text-danger">{{ form_errors(form.factura) }}</span>#}
                    {#                    </div>#}

                    <div class="form-group col-sm-5">
                        {{ form_label(form.fechainicio) }}
                        {{ form_widget(form.fechainicio) }}
                        <span class="text-danger">{{ form_errors(form.fechainicio) }}</span>
                    </div>
                    <div class="form-group col-sm-2"></div>
                    <div class="form-group col-sm-5">
                        {{ form_label(form.idempresa) }}
                        {{ form_widget(form.idempresa) }}
                        <span class="text-danger">{{ form_errors(form.idempresa) }}</span>
                    </div>
                </div>

                <div class="row">

                    <div class="form-group col-sm-5">
                        {{ form_label(form.idorigen) }}
                        {{ form_widget(form.idorigen) }}
                        <span class="text-danger">{{ form_errors(form.idorigen) }}</span>
                    </div>
                    <div class="form-group col-sm-2"></div>
                    <div class="form-group col-sm-5">
                        {{ form_label(form.iddestino) }}
                        {{ form_widget(form.iddestino) }}
                        <span class="text-danger">{{ form_errors(form.iddestino) }}</span>
                    </div>
                </div>

                <div class="row">
                    <div class="form-group col-sm-12">
                        {{ form_label(form.observaciones) }}
                        {{ form_widget(form.observaciones) }}
                        <span class="text-danger">{{ form_errors(form.observaciones) }}</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 %}


