Commit 1d60fb1a7175410f884595be2f57c5059c3e7c17
Exists in
master
Merge branch 'master' into 'develop'
Master(mpuebla) See merge request !130
Showing
1 changed file
Show diff stats
src/app/components/popover-sinonimos/popover-sinonimos.component.html
1 | <div class="card-body fade-left"> | 1 | <div class="card-body fade-left"> |
2 | 2 | ||
3 | <div class="row m-0"> | 3 | <div class="row m-0"> |
4 | <div class="col text-left"> | 4 | <div class="col text-left"> |
5 | <p class="h4 card-title"> | 5 | <p class="h4 card-title"> |
6 | Personalice su pedido | 6 | Personalice su pedido |
7 | </p> | 7 | </p> |
8 | </div> | 8 | </div> |
9 | </div> | 9 | </div> |
10 | 10 | ||
11 | <div class="row m-0 pr-2 my-2"> | 11 | <div class="row m-0 pr-2"> |
12 | <div class="col"> | 12 | <div class="col"> |
13 | <div class="row mb-2" *ngFor="let sinonimo of popoverContent; let i = index"> | 13 | <div class="row" *ngFor="let sinonimo of popoverContent; let i = index"> |
14 | <div class="col p-0"> | 14 | <div class="col p-0"> |
15 | 15 | ||
16 | <div class="row py-2 mb-3"> | 16 | <div class="row py-2"> |
17 | <div class="col-12"> | 17 | <div class="col-12"> |
18 | <div class="btn-group float-right my-auto" role="group"> | 18 | <div class="btn-group float-right my-auto" role="group"> |
19 | <button | 19 | <button |
20 | type="button" | 20 | type="button" |
21 | class="btn btn-light my-auto border shadow" | 21 | class="btn btn-light my-auto border shadow" |
22 | (click)="sumarCantidadPromo()"> | 22 | (click)="sumarCantidadPromo()"> |
23 | <i class="fa fa-plus" aria-hidden="true"></i> | 23 | <i class="fa fa-plus" aria-hidden="true"></i> |
24 | </button> | 24 | </button> |
25 | <div class="bg-white border border-white px-3 py-1 my-auto text-dark h5"> | 25 | <div class="bg-white border border-white px-3 py-1 my-auto text-dark h5"> |
26 | <small | 26 | <small |
27 | class="font-weight-bold"> | 27 | class="font-weight-bold"> |
28 | {{cantidadPromo}} | 28 | {{cantidadPromo}} |
29 | </small> | 29 | </small> |
30 | </div> | 30 | </div> |
31 | <button | 31 | <button |
32 | type="button" | 32 | type="button" |
33 | class="btn btn-light my-auto border shadow" | 33 | class="btn btn-light my-auto border shadow" |
34 | (click)="restarCantidadPromo()" | 34 | (click)="restarCantidadPromo()" |
35 | [disabled]="cantidadRestanteSinonimos < cantidadOriginal || cantidadPromo === 1"> | 35 | [disabled]="cantidadRestanteSinonimos < cantidadOriginal || cantidadPromo === 1"> |
36 | <i class="fa fa-minus" aria-hidden="true"></i> | 36 | <i class="fa fa-minus" aria-hidden="true"></i> |
37 | </button> | 37 | </button> |
38 | </div> | 38 | </div> |
39 | </div> | 39 | </div> |
40 | </div> | 40 | </div> |
41 | 41 | ||
42 | <div class="row bg-white text-dark m-0 py-1 shadow"> | 42 | <div class="row bg-white text-dark m-0 py-1 shadow"> |
43 | <div class="col text-left"> | 43 | <div class="col text-left"> |
44 | <p class="h5 m-0 card-title"> | 44 | <p class="h5 m-0 card-title"> |
45 | Elija opción - | 45 | Elija opción - |
46 | <span [ngClass]=" | 46 | <span [ngClass]=" |
47 | { | 47 | { |
48 | 'text-success': cantidadRestanteSinonimos == 0, | 48 | 'text-success': cantidadRestanteSinonimos == 0, |
49 | 'text-danger': cantidadRestanteSinonimos > 0 | 49 | 'text-danger': cantidadRestanteSinonimos > 0 |
50 | }"> | 50 | }"> |
51 | Cantidad Restante {{cantidadRestanteSinonimos}} | 51 | Cantidad Restante {{cantidadRestanteSinonimos}} |
52 | </span> | 52 | </span> |
53 | </p> | 53 | </p> |
54 | </div> | 54 | </div> |
55 | </div> | 55 | </div> |
56 | 56 | ||
57 | <div class="row m-0 popover-size overflow-scroll"> | 57 | <div class="row m-0 popover-size overflow-scroll"> |
58 | <div class="col-12 p-0"> | 58 | <div class="col-12 p-0"> |
59 | <div class="row m-0 my-3 d-flex justify-content-between" *ngFor="let producto of sinonimo.productos"> | 59 | <div class="row m-0 my-2 d-flex justify-content-between" *ngFor="let producto of sinonimo.productos"> |
60 | <div class="col-7 p-0 h6 text-right"> | 60 | <div class="col-7 p-0 h6 text-right"> |
61 | <p class="m-0 font-weight-normal"> | 61 | <p class="m-0 font-weight-normal"> |
62 | {{producto.DetArt}} | 62 | {{producto.DetArt}} |
63 | </p> | 63 | </p> |
64 | </div> | 64 | </div> |
65 | <!-- SUMA -RESTA CANTIDAD DE PRODUCTOS --> | 65 | <!-- SUMA -RESTA CANTIDAD DE PRODUCTOS --> |
66 | <div class="col-5 pr-0"> | 66 | <div class="col-5 pr-0"> |
67 | <div class="btn-group float-right my-auto" role="group"> | 67 | <div class="btn-group float-right my-auto" role="group"> |
68 | <button | 68 | <button |
69 | type="button" | 69 | type="button" |
70 | class="btn btn-light my-auto border shadow" | 70 | class="btn btn-light my-auto border shadow" |
71 | (click)="sumarCantidad(producto, i)"> | 71 | (click)="sumarCantidad(producto, i)"> |
72 | <i class="fa fa-plus" aria-hidden="true"></i> | 72 | <i class="fa fa-plus" aria-hidden="true"></i> |
73 | </button> | 73 | </button> |
74 | <div class="bg-white border border-white px-3 py-1 my-auto text-dark h5"> | 74 | <div class="bg-white border border-white px-3 py-1 my-auto text-dark h5"> |
75 | <small | 75 | <small |
76 | [ngClass]="{'font-weight-bold': producto.cantidad > 0}"> | 76 | [ngClass]="{'font-weight-bold': producto.cantidad > 0}"> |
77 | {{producto.cantidad}} | 77 | {{producto.cantidad}} |
78 | </small> | 78 | </small> |
79 | </div> | 79 | </div> |
80 | <button | 80 | <button |
81 | type="button" | 81 | type="button" |
82 | class="btn btn-light my-auto border shadow" | 82 | class="btn btn-light my-auto border shadow" |
83 | (click)="restarCantidad(producto, i)"> | 83 | (click)="restarCantidad(producto, i)"> |
84 | <i class="fa fa-minus" aria-hidden="true"></i> | 84 | <i class="fa fa-minus" aria-hidden="true"></i> |
85 | </button> | 85 | </button> |
86 | </div> | 86 | </div> |
87 | </div> | 87 | </div> |
88 | </div> | 88 | </div> |
89 | </div> | 89 | </div> |
90 | </div> | 90 | </div> |
91 | 91 | ||
92 | </div> | 92 | </div> |
93 | </div> | 93 | </div> |
94 | </div> | 94 | </div> |
95 | </div> | 95 | </div> |
96 | 96 | ||
97 | <div class="row mt-3 justify-content-end"> | 97 | <div class="row m-0"> |
98 | <div class="col"> | 98 | <div class="col"> |
99 | <button | 99 | <button |
100 | [disabled]="cantidadRestanteSinonimos > 0" | 100 | [disabled]="cantidadRestanteSinonimos > 0" |
101 | type="button" | 101 | type="button" |
102 | class="btn btn-block btn-light shadow" | 102 | class="btn btn-block btn-light shadow" |
103 | (click)="continuar()"> | 103 | (click)="continuar()"> |
104 | <span class="font-weight-bold pr-2">Continuar</span> | 104 | <span class="font-weight-bold pr-2">Continuar</span> |
105 | <i class="fa fa-check text-success" aria-hidden="true"></i> | 105 | <i class="fa fa-check text-success" aria-hidden="true"></i> |
106 | </button> | 106 | </button> |
107 | </div> | 107 | </div> |
108 | </div> | 108 | </div> |
109 | 109 | ||
110 | </div> | 110 | </div> |