
<div class="modal fade" id="createmodel{{ tregnal.idregnal }}" tabindex="-1" role="dialog" aria-labelledby="createModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
        {#Cuando se usa modal hay que realizar la action#}
            {{ form_start(form, {'action': path('new_despacho', { 'idregnal': tregnal.idregnal, 'idnacional': idnacional })}) }}
            <div class="modal-header">
                <h5 class="modal-title" id="createModalLabel"><i class="ti-marker-alt m-r-10"></i> Asignar Transportista</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">

                <div class="row">
                    <div style="pointer-events:none" class="form-group col-sm-6" disabled>
                        {{ form_label(form.chasis) }}
                        {{ form_widget(form.chasis) }}
                        <span class="text-danger">{{ form_errors(form.chasis) }}</span>
                    </div>
                </div>

                <div class="row">
                    <div style="pointer-events:none" class="form-group col-sm-6">
                        {{ form_label(form.marca) }}
                        {{ form_widget(form.marca) }}
                        <span class="text-danger">{{ form_errors(form.marca) }}</span>
                    </div>

                    <div style="pointer-events:none" class="form-group col-sm-6">
                        {{ form_label(form.modelo) }}
                        {{ form_widget(form.modelo) }}
                        <span class="text-danger">{{ form_errors(form.modelo) }}</span>
                    </div>
                </div>

                <div class="row" style="background: #fff59f">
                    <div class="form-group col-sm-12">
                        {{ form_label(form.fechasalida) }}
                        {{ form_widget(form.fechasalida) }}
                        <span class="text-danger">{{ form_errors(form.fechasalida) }}</span>
                    </div>
                    <div class="form-group col-sm-6">
                        {{ form_label(form.idusuario) }}
                        {{ form_widget(form.idusuario) }}
                        <span class="text-danger">{{ form_errors(form.idusuario) }}</span>
                    </div>
                    <div class="form-group col-sm-6">
                        {{ form_label(form.montopagar) }}
                        {{ form_widget(form.montopagar) }}
                        <span class="text-danger">{{ form_errors(form.montopagar) }}</span>
                    </div>
                    <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>

                <div class="modal-footer">
                </div>


                <button type="button" class="btn btn-rounded waves-effect" data-dismiss="modal">Cerrar</button>
                <button type="button submit" class="btn btn-rounded  btn-success waves-effect waves-light"><i class="ti-save"></i> Grabar</button>

            </div>
            {{ form_end(form) }}
        </div>
    </div>
</div>

<script>
    $('#createmodel213').modal('hide');
    $('#createmodel213').hide();
</script>

{#<div class="modal fade" id="equipoEditModal">#}
{#    <div class="modal-dialog">#}
{#        <div class="modal-content">#}
{#            <div class="modal-header">#}
{#                <h4 class="modal-title">EDITAR</h4>#}
{#            </div>#}
{#            <div class="modal-body">#}
{#                {{ form_start(equipoForm, {'action': path('tregnal_edit', { 'idregnal': entity.idregnal, 'idnacional': idnacional })}) }}#}
{#                {{ form_widget(equipoForm) }}#}
{#                <button type="submit" class="btn btn-primary">Guardar</button>#}
{#                {{ form_end(equipoForm) }}#}
{#            </div>#}
{#        </div>#}
{#    </div>#}
{#</div>#}