Commit e499a011cfb2475e5741985b237231ac6c641b9f
Exists in
master
Merge branch 'master' into 'master'
Master (pmarco) See merge request modulos-npm/foca-crear-nota-pedido!37
Showing
2 changed files
Show diff stats
src/js/controller.js
| ... | ... | @@ -17,6 +17,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 17 | 17 | {texto: '', accion: function() {}}, |
| 18 | 18 | {texto: '', accion: function() {}} |
| 19 | 19 | ]; |
| 20 | + $scope.datepickerAbierto = false; | |
| 20 | 21 | |
| 21 | 22 | $scope.show = false; |
| 22 | 23 | $scope.cargando = true; |
src/views/nota-pedido.html
| ... | ... | @@ -9,8 +9,23 @@ |
| 9 | 9 | <h5>NOTA DE PEDIDO</h5> |
| 10 | 10 | </div> |
| 11 | 11 | <div class="col-6 col-sm-4 numero-pedido">Nº {{puntoVenta}}-{{comprobante}}</div> |
| 12 | - <div class="col-6 col-sm-4 text-right"> | |
| 13 | - Fecha: {{ now | date:'dd/MM/yyyy HH:mm'}} | |
| 12 | + <div class="col-6 col-sm-4 text-right crear-nota-pedido-fecha"> | |
| 13 | + Fecha: | |
| 14 | + <span | |
| 15 | + ng-show="!datepickerAbierto" | |
| 16 | + ng-bind="now | date:'dd/MM/yyyy HH:mm'" | |
| 17 | + ng-click="datepickerAbierto = true" | |
| 18 | + > | |
| 19 | + </span> | |
| 20 | + <input | |
| 21 | + ng-show="datepickerAbierto" | |
| 22 | + type="date" | |
| 23 | + ng-model="now" | |
| 24 | + ng-change="datepickerAbierto = false" | |
| 25 | + ng-blur="datepickerAbierto = false" | |
| 26 | + class="form-control form-control-sm col-8 float-right" | |
| 27 | + foca-focus="datepickerAbierto" | |
| 28 | + /> | |
| 14 | 29 | </div> |
| 15 | 30 | </div> |
| 16 | 31 | <div class="row"> |