Commit 8c22a9c2e2a0bbb6bd43b643d8481ea634dc9b63
Exists in
master
and in
1 other branch
Merge branch 'develop' into 'master'
Develop See merge request !15
Showing
2 changed files
Show diff stats
src/js/controller.js
| ... | ... | @@ -51,7 +51,7 @@ angular.module('focaModalDomicilio') |
| 51 | 51 | angular.element('#search')[0].focus(); |
| 52 | 52 | $scope.filters = ''; |
| 53 | 53 | }); |
| 54 | - }else { | |
| 54 | + } else { | |
| 55 | 55 | primera(); |
| 56 | 56 | } |
| 57 | 57 | } |
| ... | ... | @@ -201,7 +201,7 @@ angular.module('focaModalDomicilio') |
| 201 | 201 | |
| 202 | 202 | $scope.localizarDomicilio = function(localizar) { |
| 203 | 203 | var direccion = null; |
| 204 | - if(localizar) { | |
| 204 | + if (localizar) { | |
| 205 | 205 | direccion = { |
| 206 | 206 | calle: $scope.domicilio.calle, |
| 207 | 207 | numero: $scope.domicilio.numeroCalle, |
| ... | ... | @@ -216,7 +216,11 @@ angular.module('focaModalDomicilio') |
| 216 | 216 | controller: 'focaModalLocalizarController', |
| 217 | 217 | size: 'lg', |
| 218 | 218 | resolve: { |
| 219 | - direccion: direccion | |
| 219 | + parametros: { | |
| 220 | + direccion: direccion, | |
| 221 | + latitud: $scope.domicilio.latitud, | |
| 222 | + longitud: $scope.domicilio.longitud | |
| 223 | + } | |
| 220 | 224 | } |
| 221 | 225 | } |
| 222 | 226 | ); |
src/views/modal-domicilio.html
| ... | ... | @@ -2,9 +2,16 @@ |
| 2 | 2 | <div class="row w-100"> |
| 3 | 3 | <div class="col-lg-6"> |
| 4 | 4 | <h5 class="modal-title my-1" ng-hide="ingreso">Búsqueda de Domicilios</h5> |
| 5 | - <h5 class="modal-title my-1" ng-show="ingreso">Crear domicilio</h5> | |
| 5 | + <h5 class="modal-title my-1" ng-show="ingreso">Crear domicilios de descarga</h5> | |
| 6 | 6 | </div> |
| 7 | 7 | <div class="input-group col-lg-6 pr-0 my-2"> |
| 8 | + <button | |
| 9 | + class="btn btn-outline-debo mr-2" | |
| 10 | + ng-click="ingreso = true" | |
| 11 | + ng-show="!ingreso" | |
| 12 | + title="Nuevo"> | |
| 13 | + <i class="fa fa-plus" aria-hidden="true"></i> | |
| 14 | + </button> | |
| 8 | 15 | <input |
| 9 | 16 | type="text" |
| 10 | 17 | class="form-control form-control-sm" |
| ... | ... | @@ -55,17 +62,6 @@ |
| 55 | 62 | No se encontraron resultados. |
| 56 | 63 | </td> |
| 57 | 64 | </tr> |
| 58 | - <tr> | |
| 59 | - <td colspan="6" ng-show="!ingreso"> | |
| 60 | - <input | |
| 61 | - class="form-control form-control-sm" | |
| 62 | - type="text" | |
| 63 | - placeholder="Nuevo domicilio" | |
| 64 | - readonly | |
| 65 | - ng-click="ingreso = !ingreso" | |
| 66 | - /> | |
| 67 | - </td> | |
| 68 | - </tr> | |
| 69 | 65 | <tr class="selectable" |
| 70 | 66 | ng-repeat="(key,domicilio) in currentPageDomicilios"> |
| 71 | 67 | <td |