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

{% block title %}
    WONDER-Nacional
{% endblock %}
{% block titulo %}
    GESTIÓN DE TRANSPORTE INTERNACIONAL
{% endblock %}
{% block bread %}
    <li class="active">Nuevo Transporte Internacional</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 INTERNACIONAL</h3>
                <br><br>
                <div class="row">
                    <div class="form-group col-sm-3">
                        {{ form_label(form.idempresa) }}
                        {{ form_widget(form.idempresa) }}
{#                        <span class="text-danger">{{ form_errors(form.idempresa) }}</span>#}
                    </div>
                    <div class="form-group col-sm-1"></div>
                    <div class="form-group col-sm-3">
                        {{ form_label(form.fechasalida) }}
                        {{ form_widget(form.fechasalida) }}
{#                        <span class="text-danger">{{ form_errors(form.fechasalida) }}</span>#}
                    </div>
                    <div class="form-group col-sm-1"></div>
                    <div class="form-group col-sm-3">
                        {{ form_label(form.micdta) }}
                        {{ form_widget(form.micdta) }}
{#                        <span class="text-danger">{{ form_errors(form.micdta) }}</span>#}
                    </div>
{#                    <div class="form-group col-sm-2"></div>#}
                    <div class="form-group col-sm-3">
                        {{ form_label(form.cant) }}
                        {{ form_widget(form.cant) }}
{#                        <span class="text-danger">{{ form_errors(form.cant) }}</span>#}
                    </div>
                    <div class="form-group col-sm-1"></div>
                    <div class="form-group col-sm-3">
                        {{ form_label(form.idservicio) }}
                        {{ form_widget(form.idservicio) }}
{#                        <span class="text-danger">{{ form_errors(form.idservicio) }}</span>#}
                    </div>
                </div>

                <div class="row">

                    <div class="form-group col-sm-3">
                        {{ form_label(form.idorigen) }}
                        {{ form_widget(form.idorigen) }}
{#                        <span class="text-danger">{{ form_errors(form.idorigen) }}</span>#}
                    </div>
                    <div class="form-group col-sm-1"></div>
                    <div class="form-group col-sm-3">
                        {{ form_label(form.iddestino) }}
                        {{ form_widget(form.iddestino) }}
{#                        <span class="text-danger">{{ form_errors(form.iddestino) }}</span>#}
                    </div>
                </div>
            </div>
        </div><!-- /. columna1 -->

        <div class="col-sm-12">
            <div class="white-box">
                <h3 class="box-title">DATOS DE LA EMPRESA DE APOYO - TRANSPORTISTA</h3>
                <div class="row">
                    <div class="form-group col-sm-3">
                        {{ form_label(form.idempresa2) }}
                        {{ form_widget(form.idempresa2) }}
{#                        <span class="text-danger">{{ form_errors(form.idempresa2) }}</span>#}
                    </div>
                    <div class="form-group col-sm-1"></div>
                    <div class="form-group col-sm-3">
                        {{ form_label(form.idcamion) }}
                        {{ form_widget(form.idcamion) }}
                        {#                        <span class="text-danger">{{ form_errors(form.flete) }}</span>#}
                    </div>
                    <div class="form-group col-sm-1"></div>
                    <div class="form-group col-sm-3">
                        {{ form_label(form.flete) }}
                        {{ form_widget(form.flete) }}
{#                        <span class="text-danger">{{ form_errors(form.flete) }}</span>#}
                    </div>

                    <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('tinternacional_index') }}">Cancelar</a>
            </div>

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

    </div>

    {{ form_end(form) }}

{% endblock %}


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

{#{% block title %}New Tinternacional{% endblock %}#}

{#{% block body %}#}
{#    <h1>Create new Tinternacional</h1>#}

{#    {{ include('tinternacional/_form.html.twig') }}#}

{#    <a href="{{ path('tinternacional_index') }}">back to list</a>#}
{#{% endblock %}#}
