Commit 857b453c2fb8697f624cba96160db4318aebd059

Authored by Marcelo Puebla
1 parent fe6ae3c3e8
Exists in master and in 1 other branch develop

Arreglo cruz para limpiar input.

Solo aparece el botón si el input no esta vacio.
Showing 1 changed file with 21 additions and 7 deletions   Show diff stats
src/views/informe-general-unidad.html
... ... @@ -17,9 +17,13 @@
17 17 <small class="col-md-2 col-4 text-left my-1">Fecha Desde</small>
18 18 <div class="col-md-4 col-8 input-group mb-2">
19 19 <div class="input-group-prepend">
20   - <div class="input-group-text">
  20 + <button
  21 + class="input-group-text"
  22 + type="button"
  23 + ng-click="datepickerOpen = true"
  24 + >
21 25 <i class="fa fa-calendar"></i>
22   - </div>
  26 + </button>
23 27 </div>
24 28 <input
25 29 class="form-control form-control-sm"
... ... @@ -38,9 +42,13 @@
38 42 <small class="col-md-2 col-4 text-left my-1">Fecha Hasta</small>
39 43 <div class="col-md-4 col-8 input-group mb-2">
40 44 <div class="input-group-prepend">
41   - <div class="input-group-text">
  45 + <button
  46 + class="input-group-text"
  47 + type="button"
  48 + ng-click="datepicker2Open = true"
  49 + >
42 50 <i class="fa fa-calendar"></i>
43   - </div>
  51 + </button>
44 52 </div>
45 53 <input
46 54 class="form-control form-control-sm"
... ... @@ -65,9 +73,15 @@
65 73 ng-required="true"
66 74 ng-keypress="seleccionarSector($event.keyCode)"
67 75 />
68   - <button type="button" class="clear-input text-danger" ng-click="clearSector()">
69   - <i class="fa fa-times"></i>
70   - </button>
  76 + <button
  77 + ng-show="params.sector.NOMBRE.length >= 1"
  78 + style="color:lightgray"
  79 + type="button"
  80 + class="clear-input"
  81 + ng-click="clearSector()"
  82 + >
  83 + <i class="fa fa-times"></i>
  84 + </button>
71 85 <div class="input-group-append">
72 86 <div class="input-group-append" ng-hide="ingreso">
73 87 <button