foca-abm-vehiculos-item.html 2.85 KB
<h4>Sectores</h4>
<form name="formVehiculo">
    <input type="hidden" name="id" ng-model="sector.id" />
    <div class="form-group row">
        <label class="offset-sm-1 col-sm-2 col-form-label">Transportista</label>
        <div class="col-sm-4">
            <input
                class="form-control"
                type="text"
                teclado-virtual
                ng-model="vehiculo.transportista"
                ng-model-options="{allowInvalid: false}"
                uib-typeahead="transportista as transportista.COD + ' ' +
                    transportista.NOM for transportista in transportistas | filter:$viewValue"
            />
        </div>
    </div>
    <div class="form-group row">
        <label class="offset-sm-1 col-sm-2 col-form-label">Código</label>
        <div class="col-sm-4">
            <input
                class="form-control"
                type="text"
                teclado-virtual
                ng-model="vehiculo.id"
                readonly
            />
        </div>
    </div>
    <div class="form-group row">
        <label class="offset-sm-1 col-sm-2 col-form-label">Tractor</label>
        <div class="col-sm-4">
            <input
                class="form-control"
                type="text"
                teclado-virtual
                ng-model="vehiculo.tractor"
                ng-required="true"
            />
        </div>
    </div>
    <div class="form-group row">
        <label class="offset-sm-1 col-sm-2 col-form-label">Semi</label>
        <div class="col-sm-4">
            <input
                class="form-control"
                type="text"
                teclado-virtual
                ng-model="vehiculo.semi"
                ng-required="true"
            />
        </div>
    </div>
    <div class="form-group row">
        <label class="offset-sm-1 col-sm-2 col-form-label">Capacidad</label>
        <div class="col-sm-4">
            <input
                class="form-control"
                type="text"
                teclado-virtual
                ng-model="vehiculo.capacidad"
                ng-required="true"
            />
        </div>
    </div>
    <div class="form-group row">
        <label class="offset-sm-1 col-sm-2 col-form-label">Cisternado</label>
        <div class="col-sm-4">
            <input
                class="form-control"
                type="text"
                teclado-virtual
                ng-model="vehiculo.cisternado"
                ng-required="true"
            />
        </div>
    </div>
    <div class="form-group row">
        <div class="col-sm-7 text-right">
            <button
                class="btn btn-primary"
                ng-click="guardar()"
                ng-disabled="!formVehiculo.$valid"
            >Guardar</button>
            <button class="btn btn-default" ng-click="cancelar()">Cancelar</button>
        </div>
    </div>
</form>