Commit 62d69e27cf8659b567842abebae9581f2a926444
1 parent
67f80d2cf5
Exists in
master
Seteo de la info de las promociones.
Showing
2 changed files
with
21 additions
and
12 deletions
Show diff stats
src/app/components/popover/popover.component.html
1 | 1 | <div class="card-body"> |
2 | 2 | <div class="row"> |
3 | - <div class="col"> | |
3 | + <div class="col text-left"> | |
4 | 4 | <p class="h5 card-title"> |
5 | 5 | Este producto forma parte<br> |
6 | 6 | de Combos y Promociones |
... | ... | @@ -8,16 +8,24 @@ |
8 | 8 | </div> |
9 | 9 | </div> |
10 | 10 | |
11 | - <div class="row"> | |
12 | - <div class="col text-dark"> | |
13 | - <div class="bg-white rounded-sm p-2 px-3"> | |
14 | - <div class="row justify-content-between"> | |
15 | - <div class="col-auto"> | |
16 | - <p class="h4 font-weight-bold mb-0">Promo 2x1</p> | |
17 | - <p class="h6 mb-0">{{popoverContent}}</p> | |
18 | - </div> | |
19 | - <div class="col-4 text-right my-auto"> | |
20 | - <p class="h3 font-weight-bold mb-0">{{28 | currency}}</p> | |
11 | + <div class="overflow-scroll popover-size pr-2"> | |
12 | + <div | |
13 | + class="row my-2" | |
14 | + *ngFor="let promo of popoverContent"> | |
15 | + <div class="col text-dark"> | |
16 | + <div class="bg-white rounded-sm p-2 px-3"> | |
17 | + <div class="row justify-content-between"> | |
18 | + <div class="col-auto text-left"> | |
19 | + <p class="h5 font-weight-bold mb-0">{{promo.nombrePromo}}</p> | |
20 | + <p | |
21 | + class="h6 mb-0" | |
22 | + *ngFor="let producto of promo.productos"> | |
23 | + {{producto.DetArt}} | |
24 | + </p> | |
25 | + </div> | |
26 | + <div class="col-auto text-right align-self-end"> | |
27 | + <p class="h4 font-weight-bold mb-0">{{28 | currency}}</p> | |
28 | + </div> | |
21 | 29 | </div> |
22 | 30 | </div> |
23 | 31 | </div> |
src/app/components/popover/popover.component.ts
1 | 1 | import { Component, OnInit, Input } from '@angular/core'; |
2 | 2 | import { PopoverDirective } from 'ngx-bootstrap/popover'; |
3 | +import { Promocion } from 'src/app/wrappers/promocion'; | |
3 | 4 | |
4 | 5 | @Component({ |
5 | 6 | selector: 'app-popover', |
... | ... | @@ -9,7 +10,7 @@ import { PopoverDirective } from 'ngx-bootstrap/popover'; |
9 | 10 | export class PopoverComponent implements OnInit { |
10 | 11 | |
11 | 12 | @Input() popover: PopoverDirective; |
12 | - @Input() popoverContent: string; | |
13 | + @Input() popoverContent: Promocion[]; | |
13 | 14 | |
14 | 15 | constructor() { } |
15 | 16 |