Commit 36f3e9eb3b9a9123e7c2a27fb0e5594c343dab55
1 parent
3d049f1d74
Exists in
master
correccion boton eliminar plazo
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/views/foca-abm-precios-condiciones-item.html
| 1 | <div class="row"> | 1 | <div class="row"> |
| 2 | <foca-cabecera-facturador | 2 | <foca-cabecera-facturador |
| 3 | titulo="'Precios y condiciones'" | 3 | titulo="'Precios y condiciones'" |
| 4 | fecha="now" | 4 | fecha="now" |
| 5 | class="mb-0 col-lg-12" | 5 | class="mb-0 col-lg-12" |
| 6 | ></foca-cabecera-facturador> | 6 | ></foca-cabecera-facturador> |
| 7 | </div> | 7 | </div> |
| 8 | <div class="row"> | 8 | <div class="row"> |
| 9 | <form class="col-md-10"> | 9 | <form class="col-md-10"> |
| 10 | <input type="hidden" name="id" ng-model="precioCondicion.id" /> | 10 | <input type="hidden" name="id" ng-model="precioCondicion.id" /> |
| 11 | <div class="row mb-3"> | 11 | <div class="row mb-3"> |
| 12 | <label class="col-sm-2 col-form-label">Código</label> | 12 | <label class="col-sm-2 col-form-label">Código</label> |
| 13 | <input | 13 | <input |
| 14 | class="form-control col-sm-4" | 14 | class="form-control col-sm-4" |
| 15 | type="text" | 15 | type="text" |
| 16 | name="codigo" | 16 | name="codigo" |
| 17 | ng-model="precioCondicion.codigo" | 17 | ng-model="precioCondicion.codigo" |
| 18 | autocomplete="off" | 18 | autocomplete="off" |
| 19 | teclado-virtual | 19 | teclado-virtual |
| 20 | /> | 20 | /> |
| 21 | <label class="col-sm-2 col-form-label">Nombre</label> | 21 | <label class="col-sm-2 col-form-label">Nombre</label> |
| 22 | <input | 22 | <input |
| 23 | class="form-control col-sm-4" | 23 | class="form-control col-sm-4" |
| 24 | type="text" | 24 | type="text" |
| 25 | name="nombre" | 25 | name="nombre" |
| 26 | ng-model="precioCondicion.nombre" | 26 | ng-model="precioCondicion.nombre" |
| 27 | autocomplete="off" | 27 | autocomplete="off" |
| 28 | teclado-virtual | 28 | teclado-virtual |
| 29 | /> | 29 | /> |
| 30 | </div> | 30 | </div> |
| 31 | <div class="form-group row"> | 31 | <div class="form-group row"> |
| 32 | <label class="col-sm-2 col-form-label">Descripción</label> | 32 | <label class="col-sm-2 col-form-label">Descripción</label> |
| 33 | <input | 33 | <input |
| 34 | class="form-control col-sm-10" | 34 | class="form-control col-sm-10" |
| 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 class="row"> | 42 | <div class="row"> |
| 43 | <label class="col-sm-2 col-form-label">Lista de precios</label> | 43 | <label class="col-sm-2 col-form-label">Lista de precios</label> |
| 44 | <div class="col-sm-4 input-group p-0"> | 44 | <div class="col-sm-4 input-group p-0"> |
| 45 | <input | 45 | <input |
| 46 | ng-model="listaPrecioLabel" | 46 | ng-model="listaPrecioLabel" |
| 47 | class="form-control" | 47 | class="form-control" |
| 48 | readonly | 48 | readonly |
| 49 | /> | 49 | /> |
| 50 | <div class="input-group-append"> | 50 | <div class="input-group-append"> |
| 51 | <button | 51 | <button |
| 52 | ladda="searchLoading" | 52 | ladda="searchLoading" |
| 53 | class="btn btn-outline-secondary form-control" | 53 | class="btn btn-outline-secondary form-control" |
| 54 | title="Buscar" | 54 | title="Buscar" |
| 55 | type="button" | 55 | type="button" |
| 56 | ng-click="seleccionarListaPrecio()" | 56 | ng-click="seleccionarListaPrecio()" |
| 57 | foca-focus="focused == 3" | 57 | foca-focus="focused == 3" |
| 58 | > | 58 | > |
| 59 | <i class="fa fa-search" aria-hidden="true"></i> | 59 | <i class="fa fa-search" aria-hidden="true"></i> |
| 60 | </button> | 60 | </button> |
| 61 | </div> | 61 | </div> |
| 62 | </div> | 62 | </div> |
| 63 | <label class="col-sm-2 col-form-label" ng-show="mostrarPlazos">Plazos</label> | 63 | <label class="col-sm-2 col-form-label" ng-show="mostrarPlazos">Plazos</label> |
| 64 | <div class="col-sm-4 p-0" ng-show="mostrarPlazos"> | 64 | <div class="col-sm-4 p-0" ng-show="mostrarPlazos"> |
| 65 | <div class="input-group p-0"> | 65 | <div class="input-group p-0"> |
| 66 | <input | 66 | <input |
| 67 | type="number" | 67 | type="number" |
| 68 | class="form-control text-right" | 68 | class="form-control text-right" |
| 69 | min="0" | 69 | min="0" |
| 70 | ng-model="plazoACargar.dias" | 70 | ng-model="plazoACargar.dias" |
| 71 | ng-keypress="agregarPlazo($event.keyCode)" | 71 | ng-keypress="agregarPlazo($event.keyCode)" |
| 72 | foca-focus="ingreso" | 72 | foca-focus="ingreso" |
| 73 | placeholder="Días" | 73 | placeholder="Días" |
| 74 | /> | 74 | /> |
| 75 | <div class="input-group-append"> | 75 | <div class="input-group-append"> |
| 76 | <button | 76 | <button |
| 77 | class="btn btn-outline-secondary form-control" | 77 | class="btn btn-outline-secondary form-control" |
| 78 | title="Agregar" | 78 | title="Agregar" |
| 79 | type="button" | 79 | type="button" |
| 80 | ng-click="agregarPlazo(13)" | 80 | ng-click="agregarPlazo(13)" |
| 81 | foca-focus="focused == 3" | 81 | foca-focus="focused == 3" |
| 82 | > | 82 | > |
| 83 | <i class="fa fa-save" aria-hidden="true"></i> | 83 | <i class="fa fa-save" aria-hidden="true"></i> |
| 84 | </button> | 84 | </button> |
| 85 | </div> | 85 | </div> |
| 86 | </div> | 86 | </div> |
| 87 | <table class="table table-striped table-sm"> | 87 | <table class="table table-striped table-sm"> |
| 88 | <tbody> | 88 | <tbody> |
| 89 | <tr ng-repeat="(key, plazo) in precioCondicion.plazos"> | 89 | <tr ng-repeat="(key, plazo) in precioCondicion.plazos"> |
| 90 | <td class="text-right" > | 90 | <td class="text-right" > |
| 91 | <span ng-bind="plazo.dias + ' días'"></span> | 91 | <span ng-bind="plazo.dias + ' días'"></span> |
| 92 | <button | 92 | <button |
| 93 | type="button" | ||
| 93 | title="Eliminar" | 94 | title="Eliminar" |
| 94 | class="btn btn-outline-secondary ml-1" | 95 | class="btn btn-outline-secondary ml-1" |
| 95 | ng-click="quitarPlazo(key)" | 96 | ng-click="quitarPlazo(key)" |
| 96 | > | 97 | > |
| 97 | <i class="fa fa-trash"></i> | 98 | <i class="fa fa-trash"></i> |
| 98 | </button> | 99 | </button> |
| 99 | </td> | 100 | </td> |
| 100 | </tr> | 101 | </tr> |
| 101 | </tbody> | 102 | </tbody> |
| 102 | </table> | 103 | </table> |
| 103 | </div> | 104 | </div> |
| 104 | </div> | 105 | </div> |
| 105 | </form> | 106 | </form> |
| 106 | </div> | 107 | </div> |
| 107 | 108 |