Commit 286f3e20412770a0617f244c4479ce12c00d7824
1 parent
822c9f371a
Exists in
master
and in
2 other branches
vuelvo a agregar foca-modal-busqueda-avanzada.html
Showing
2 changed files
with
83 additions
and
23 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -154,29 +154,6 @@ angular.module('focaLogisticaPedidoRuta') .controller('focaLogisticaPedidoRutaCo |
| 154 | 154 | }); |
| 155 | 155 | }; |
| 156 | 156 | |
| 157 | - // $scope.busquedaAvanzada = function () { | |
| 158 | - // var modalInstance = $uibModal.open( | |
| 159 | - // { | |
| 160 | - // ariaLabelledBy: 'Busqueda Avanzada', | |
| 161 | - // templateUrl: 'foca-modal-busqueda-avanzada.html', | |
| 162 | - // controller: 'focaModalBusquedaAvanzadaController', | |
| 163 | - // resolve: { | |
| 164 | - // parametrosModal: function () { | |
| 165 | - // return { | |
| 166 | - // remitos: $scope.marcadores | |
| 167 | - // }; | |
| 168 | - // } | |
| 169 | - // } | |
| 170 | - // } | |
| 171 | - // ); | |
| 172 | - // modalInstance.result.then(function(data) { | |
| 173 | - // actualizarMarcadores(data); | |
| 174 | - // }, function () { | |
| 175 | - // // funcion ejecutada cuando se cancela el modal | |
| 176 | - // } | |
| 177 | - // ); | |
| 178 | - // }; | |
| 179 | - | |
| 180 | 157 | $scope.seleccionarRemito = function () { |
| 181 | 158 | var modalInstance = $uibModal.open( |
| 182 | 159 | { |
src/views/foca-modal-busqueda-avanzada.html
| ... | ... | @@ -0,0 +1,83 @@ |
| 1 | +<div class="modal-header"> | |
| 2 | + <div class="row"> | |
| 3 | + <div class="col-12"> | |
| 4 | + <h5>Búsqueda avanzada:</h5> | |
| 5 | + <button | |
| 6 | + ladda="searchLoading" | |
| 7 | + class="btn btn-outline-secondary form-control" | |
| 8 | + type="button" | |
| 9 | + ng-click="seleccionarRemito()"> | |
| 10 | + <i class="fa fa-search" aria-hidden="true"></i> | |
| 11 | + </button> | |
| 12 | + </div> | |
| 13 | + </div> | |
| 14 | +</div> | |
| 15 | +<div class="modal-body"> --> | |
| 16 | + <div class="row"> | |
| 17 | + <div class="col-12"> | |
| 18 | + <h6>Remitos del cliente:</h6> | |
| 19 | + </div> | |
| 20 | + <div class="col-12"> | |
| 21 | + <div class="input-group"> | |
| 22 | + <input | |
| 23 | + class="form-control" | |
| 24 | + ng-model="cliente" | |
| 25 | + ng-keypress="seleccionarCliente($event.keyCode)" | |
| 26 | + placeholder="Ingrese un cliente" | |
| 27 | + /> | |
| 28 | + <button | |
| 29 | + ng-show="cliente !== ''" | |
| 30 | + type="button" | |
| 31 | + class="clear-input" | |
| 32 | + ng-click="cliente = '';" | |
| 33 | + ><i class="fa fa-times"></i> | |
| 34 | + </button> | |
| 35 | + <div class="input-group-append"> | |
| 36 | + <button | |
| 37 | + ladda="searchLoading" | |
| 38 | + class="btn btn-outline-secondary form-control" | |
| 39 | + type="button" | |
| 40 | + ng-click="seleccionarCliente()"> | |
| 41 | + <i class="fa fa-search" aria-hidden="true"></i> | |
| 42 | + </button> | |
| 43 | + </div> | |
| 44 | + </div> | |
| 45 | + </div> | |
| 46 | + </div> | |
| 47 | + <div class="row pt-3"> | |
| 48 | + <div class="col-12"> | |
| 49 | + <h6>Remito Nº</h6> | |
| 50 | + </div> | |
| 51 | + <div class="col-12"> | |
| 52 | + <div class="input-group"> | |
| 53 | + <input | |
| 54 | + class="form-control" | |
| 55 | + ng-model="remito.numero" | |
| 56 | + ng-click="seleccionarRemito()" | |
| 57 | + readonly/> | |
| 58 | + <div class="input-group-append"> | |
| 59 | + <button | |
| 60 | + ladda="searchLoading" | |
| 61 | + class="btn btn-outline-secondary form-control" | |
| 62 | + type="button" | |
| 63 | + ng-click="seleccionarRemito()"> | |
| 64 | + <i class="fa fa-search" aria-hidden="true"></i> | |
| 65 | + </button> | |
| 66 | + </div> | |
| 67 | + </div> | |
| 68 | + </div> | |
| 69 | + </div> | |
| 70 | +</div> | |
| 71 | +<div class="modal-footer py-1"> | |
| 72 | + <button | |
| 73 | + class="btn btn-sm btn-secondary" | |
| 74 | + type="button" | |
| 75 | + data-dismiss="modal" | |
| 76 | + ng-click="cancel()">Cancelar | |
| 77 | + </button> | |
| 78 | + <button | |
| 79 | + class="btn btn-sm btn-primary" | |
| 80 | + type="button" | |
| 81 | + ng-click="buscar()">Buscar | |
| 82 | + </button> | |
| 83 | +</div> |