Commit 75d79b6832e68ea2716455fda9d9ffef1f403c06
1 parent
37efac8145
Exists in
master
boton salir
Showing
3 changed files
with
15 additions
and
0 deletions
Show diff stats
src/views/foca-abm-precios-condiciones-item.html
1 | <h4>Precios y Condiciones</h4> | 1 | <h4>Precios y Condiciones</h4> |
2 | <form> | 2 | <form> |
3 | <input type="hidden" name="id" ng-model="precioCondicion.id" /> | 3 | <input type="hidden" name="id" ng-model="precioCondicion.id" /> |
4 | <div class="form-group row"> | 4 | <div class="form-group row"> |
5 | <label class="offset-sm-1 col-sm-2 col-form-label">Código</label> | 5 | <label class="offset-sm-1 col-sm-2 col-form-label">Código</label> |
6 | <div class="col-sm-4"> | 6 | <div class="col-sm-4"> |
7 | <input | 7 | <input |
8 | class="form-control" | 8 | class="form-control" |
9 | type="text" | 9 | type="text" |
10 | name="codigo" | 10 | name="codigo" |
11 | ng-model="precioCondicion.codigo" | 11 | ng-model="precioCondicion.codigo" |
12 | autocomplete="off" | 12 | autocomplete="off" |
13 | teclado-virtual | 13 | teclado-virtual |
14 | /> | 14 | /> |
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | <div class="form-group row"> | 17 | <div class="form-group row"> |
18 | <label class="offset-sm-1 col-sm-2 col-form-label">Nombre</label> | 18 | <label class="offset-sm-1 col-sm-2 col-form-label">Nombre</label> |
19 | <div class="col-sm-4"> | 19 | <div class="col-sm-4"> |
20 | <input | 20 | <input |
21 | class="form-control" | 21 | class="form-control" |
22 | type="text" | 22 | type="text" |
23 | name="nombre" | 23 | name="nombre" |
24 | ng-model="precioCondicion.nombre" | 24 | ng-model="precioCondicion.nombre" |
25 | autocomplete="off" | 25 | autocomplete="off" |
26 | teclado-virtual | 26 | teclado-virtual |
27 | /> | 27 | /> |
28 | </div> | 28 | </div> |
29 | </div> | 29 | </div> |
30 | <div class="form-group row"> | 30 | <div class="form-group row"> |
31 | <label class="offset-sm-1 col-sm-2 col-form-label">Descripción</label> | 31 | <label class="offset-sm-1 col-sm-2 col-form-label">Descripción</label> |
32 | <div class="col-sm-4"> | 32 | <div class="col-sm-4"> |
33 | <input | 33 | <input |
34 | class="form-control" | 34 | class="form-control" |
35 | type="text" | 35 | type="text" |
36 | name="nombre" | 36 | name="nombre" |
37 | ng-model="precioCondicion.descripcion" | 37 | ng-model="precioCondicion.descripcion" |
38 | autocomplete="off" | 38 | autocomplete="off" |
39 | teclado-virtual | 39 | teclado-virtual |
40 | /> | 40 | /> |
41 | </div> | 41 | </div> |
42 | </div> | 42 | </div> |
43 | <div class="form-group row"> | 43 | <div class="form-group row"> |
44 | <label class="offset-sm-1 col-sm-2 col-form-label">Lista de precios</label> | 44 | <label class="offset-sm-1 col-sm-2 col-form-label">Lista de precios</label> |
45 | <div class="col-sm-4"> | 45 | <div class="col-sm-4"> |
46 | <input | 46 | <input |
47 | class="form-control" | 47 | class="form-control" |
48 | type="text" | 48 | type="text" |
49 | name="nombre" | 49 | name="nombre" |
50 | ng-model="precioCondicion.idListaPrecio" | 50 | ng-model="precioCondicion.idListaPrecio" |
51 | autocomplete="off" | 51 | autocomplete="off" |
52 | /> | 52 | /> |
53 | </div> | 53 | </div> |
54 | </div> | 54 | </div> |
55 | <div class="form-group row" ng-show="mostrarPlazos"> | 55 | <div class="form-group row" ng-show="mostrarPlazos"> |
56 | <label class="offset-sm-1 col-sm-2 col-form-label">Plazos</label> | 56 | <label class="offset-sm-1 col-sm-2 col-form-label">Plazos</label> |
57 | <div class="col-sm-4"> | 57 | <div class="col-sm-4"> |
58 | <table class="table table-sm table-hover lista"> | 58 | <table class="table table-sm table-hover lista"> |
59 | <thead> | 59 | <thead> |
60 | <tr> | 60 | <tr> |
61 | <th>Item</th> | 61 | <th>Item</th> |
62 | <th>Dias</th> | 62 | <th>Dias</th> |
63 | <th colspan="2" class="text-center"> | 63 | <th colspan="2" class="text-center"> |
64 | <button class="btn btn-default boton-accion" ng-click="editarPlazoPago(0)"> | 64 | <button class="btn btn-default boton-accion" ng-click="editarPlazoPago(0)"> |
65 | <i class="fa fa-plus"></i> | 65 | <i class="fa fa-plus"></i> |
66 | </button> | 66 | </button> |
67 | </th> | 67 | </th> |
68 | </tr> | 68 | </tr> |
69 | </thead> | 69 | </thead> |
70 | <tbody> | 70 | <tbody> |
71 | <tr ng-repeat="plazo in precioCondicion.plazos"> | 71 | <tr ng-repeat="plazo in precioCondicion.plazos"> |
72 | <td ng-bind="plazo.item"></td> | 72 | <td ng-bind="plazo.item"></td> |
73 | <td ng-bind="plazo.dias"></td> | 73 | <td ng-bind="plazo.dias"></td> |
74 | <td class="text-center"> | 74 | <td class="text-center"> |
75 | <button class="btn btn-default boton-accion" ng-click="editarPlazoPago(plazo.id)"> | 75 | <button class="btn btn-default boton-accion" ng-click="editarPlazoPago(plazo.id)"> |
76 | <i class="fa fa-pencil"></i> | 76 | <i class="fa fa-pencil"></i> |
77 | </button> | 77 | </button> |
78 | <button | 78 | <button |
79 | class="btn btn-default boton-accion" | 79 | class="btn btn-default boton-accion" |
80 | ng-click="solicitarConfirmacionPlazoPago(plazo)" | 80 | ng-click="solicitarConfirmacionPlazoPago(plazo)" |
81 | > | 81 | > |
82 | <i class="fa fa-trash"></i> | 82 | <i class="fa fa-trash"></i> |
83 | </button> | 83 | </button> |
84 | </td> | 84 | </td> |
85 | </tr> | 85 | </tr> |
86 | </tbody> | 86 | </tbody> |
87 | </table> | 87 | </table> |
88 | </div> | 88 | </div> |
89 | </div> | 89 | </div> |
90 | <div class="form-group row"> | 90 | <div class="form-group row"> |
91 | <div class="col-sm-7 text-right"> | 91 | <div class="col-sm-7 text-right"> |
92 | <button class="btn btn-primary" ng-click="guardar(precioCondicion)">Guardar</button> | 92 | <button class="btn btn-primary" ng-click="guardar(precioCondicion)">Guardar</button> |
93 | <button class="btn btn-default" ng-click="cancelar()">Cancelar</button> | 93 | <button class="btn btn-default" ng-click="cancelar()">Cancelar</button> |
94 | </div> | 94 | </div> |
95 | </div> | 95 | </div> |
96 | </form> | 96 | </form> |
97 | <a href="#!/" title="Salir" | ||
98 | class="btn btn-secondary btn-block float-right col-md-2" | ||
99 | > | ||
100 | Salir | ||
101 | </a> |
src/views/foca-abm-precios-condiciones-listado.html
1 | <div class="lista"> | 1 | <div class="lista"> |
2 | <h4>Precios y Condiciones</h4> | 2 | <h4>Precios y Condiciones</h4> |
3 | <table class="table table-sm table-hover table-nonfluid"> | 3 | <table class="table table-sm table-hover table-nonfluid"> |
4 | <thead> | 4 | <thead> |
5 | <tr> | 5 | <tr> |
6 | <th>Código</th> | 6 | <th>Código</th> |
7 | <th>Nombre</th> | 7 | <th>Nombre</th> |
8 | <th colspan="2" class="text-center"> | 8 | <th colspan="2" class="text-center"> |
9 | <button class="btn btn-default boton-accion" ng-click="editar(0)"> | 9 | <button class="btn btn-default boton-accion" ng-click="editar(0)"> |
10 | <i class="fa fa-plus"></i> | 10 | <i class="fa fa-plus"></i> |
11 | </button> | 11 | </button> |
12 | </th> | 12 | </th> |
13 | </tr> | 13 | </tr> |
14 | </thead> | 14 | </thead> |
15 | <tbody> | 15 | <tbody> |
16 | <tr ng-repeat="precioCondicion in preciosCondiciones"> | 16 | <tr ng-repeat="precioCondicion in preciosCondiciones"> |
17 | <td ng-bind="precioCondicion.codigo"></td> | 17 | <td ng-bind="precioCondicion.codigo"></td> |
18 | <td ng-bind="precioCondicion.nombre"></td> | 18 | <td ng-bind="precioCondicion.nombre"></td> |
19 | <td> | 19 | <td> |
20 | <button class="btn btn-default boton-accion" ng-click="editar(precioCondicion.id)"> | 20 | <button class="btn btn-default boton-accion" ng-click="editar(precioCondicion.id)"> |
21 | <i class="fa fa-pencil"></i> | 21 | <i class="fa fa-pencil"></i> |
22 | </button> | 22 | </button> |
23 | <button class="btn btn-default boton-accion" ng-click="solicitarConfirmacion(precioCondicion)"> | 23 | <button class="btn btn-default boton-accion" ng-click="solicitarConfirmacion(precioCondicion)"> |
24 | <i class="fa fa-trash"></i> | 24 | <i class="fa fa-trash"></i> |
25 | </button> | 25 | </button> |
26 | </td> | 26 | </td> |
27 | </tr> | 27 | </tr> |
28 | </tbody> | 28 | </tbody> |
29 | </table> | 29 | </table> |
30 | </div> | 30 | </div> |
31 | <a href="#!/" title="Salir" | ||
32 | class="btn btn-secondary btn-block float-right col-md-2" | ||
33 | > | ||
34 | Salir | ||
35 | </a> | ||
31 | 36 |
src/views/foca-abm-precios-condiciones-modal-confirmar.html
1 | <div class="modal-header"> | 1 | <div class="modal-header"> |
2 | <h4>Confirmar</h4> | 2 | <h4>Confirmar</h4> |
3 | </div> | 3 | </div> |
4 | <div class="modal-body"> | 4 | <div class="modal-body"> |
5 | <p> | 5 | <p> |
6 | ¿Está seguro que desea borrar el precio condición | 6 | ¿Está seguro que desea borrar el precio condición |
7 | {{precioCondicion.codigo}} {{precioCondicion.nombre}}? | 7 | {{precioCondicion.codigo}} {{precioCondicion.nombre}}? |
8 | </p> | 8 | </p> |
9 | </div> | 9 | </div> |
10 | <div class="modal-footer"> | 10 | <div class="modal-footer"> |
11 | <button class="btn btn-danger" ng-click="borrar()">Borrar</button> | 11 | <button class="btn btn-danger" ng-click="borrar()">Borrar</button> |
12 | <button class="btn btn-default" ng-click="cancelar()">Cancelar</button> | 12 | <button class="btn btn-default" ng-click="cancelar()">Cancelar</button> |
13 | </div> | 13 | </div> |
14 | <a href="#!/" title="Salir" | ||
15 | class="btn btn-secondary btn-block float-right col-md-2" | ||
16 | > | ||
17 | Salir | ||
18 | </a> |