foca-abm-vehiculos-item.html
4.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<h4>Vehiculo</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-group">
<input
class="form-control"
type="text"
ng-model="vehiculo.transportista.NOM"
readonly
/>
<!-- <div class="input-group-append">
<button
class="btn btn-outline-secondary form-control"
type="button"
ng-click="seleccionarTransportista()">
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</div> -->
</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.codigo"
/>
</div>
</div>
<div class="form-group row">
<label class="offset-sm-1 col-sm-2 col-form-label">Dominio 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">Dominio 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">
<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>
<div class="col-12" ng-show="!nuevo">
<h4>Cisternas</h4>
<table class="table table-sm table-striped table-dark">
<thead>
<tr>
<th>Código</th>
<th>Unidad de Medida</th>
<th>Capacidad</th>
<th>Carga</th>
<th class="text-center">
<button class="btn btn-default boton-accion" ng-click="editar(0)">
<i class="fa fa-plus"></i>
</button>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="cisterna in cisternas | filter:filtros">
<td ng-bind="cisterna.id"></td>
<td ng-bind="cisterna.unidadMedida.NOM"></td>
<td ng-bind="cisterna.capacidad"></td>
<td ng-bind="cisterna.cisternaCarga.cantidad || 0"></td>
<td class="text-center">
<button
class="btn btn-default boton-accion"
ng-click="editar(cisterna.id)"
>
<i class="fa fa-pencil"></i>
</button>
<button
class="btn btn-default boton-accion"
ng-click="solicitarConfirmacionCisterna(cisterna)"
>
<i class="fa fa-trash"></i>
</button>
</td>
</tr>
</body>
</table>
</div>