Commit 3d636f5e25c1b28d56f47f5d6b66c8ccd1b3d185
1 parent
4a3c1d0300
Exists in
master
Arreglo de vista.
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
src/app/components/amb-imagenes/amb-imagenes.component.html
1 | <app-header></app-header> | 1 | <app-header></app-header> |
2 | 2 | ||
3 | <div class="container-fluid"> | 3 | <div class="container-fluid"> |
4 | <div class="row m-3"> | 4 | <div class="row m-3"> |
5 | <div class="col"> | 5 | <div class="col"> |
6 | <p class="h2">Configuración imágenes</p> | 6 | <p class="h2">Configuración imágenes</p> |
7 | </div> | 7 | </div> |
8 | </div> | 8 | </div> |
9 | 9 | ||
10 | <div class="row search"> | 10 | <div class="row search"> |
11 | <div class="col"> | 11 | <div class="col"> |
12 | <span class="fa fa-search form-control-lg form-control-search pl-3"></span> | 12 | <span class="fa fa-search form-control-lg form-control-search pl-3"></span> |
13 | <input | 13 | <input |
14 | type="text" | 14 | type="text" |
15 | class="form-control form-control-lg shadow-sm rounded-pill px-5" | 15 | class="form-control form-control-lg shadow-sm rounded-pill px-5" |
16 | placeholder="Búsqueda productos" | 16 | placeholder="Búsqueda productos" |
17 | [(ngModel)]="searchTerm" | 17 | [(ngModel)]="searchTerm" |
18 | (ngModelChange)="filterItems()"> | 18 | (ngModelChange)="filterItems()"> |
19 | </div> | 19 | </div> |
20 | </div> | 20 | </div> |
21 | 21 | ||
22 | <div class="row m-3 vh-70 overflow-scroll"> | 22 | <div class="row m-3 vh-70 overflow-scroll"> |
23 | <div class="col"> | 23 | <div class="col"> |
24 | <h5>Productos</h5> | 24 | <h5>Productos</h5> |
25 | <table class="table"> | 25 | <table class="table"> |
26 | <thead> | 26 | <thead> |
27 | <tr class="text-center"> | 27 | <tr class="text-center"> |
28 | <th>Nombre</th> | 28 | <th>Nombre</th> |
29 | <th>Descripción</th> | 29 | <th>Descripción</th> |
30 | <th>Imagen</th> | 30 | <th colspan="2">Imagen</th> |
31 | <th></th> | ||
32 | </tr> | 31 | </tr> |
33 | </thead> | 32 | </thead> |
34 | <tbody> | 33 | <tbody> |
35 | <tr *ngFor="let articulo of auxProductos"> | 34 | <tr *ngFor="let articulo of auxProductos"> |
36 | <td>{{articulo.DetArt}}</td> | 35 | <td>{{articulo.DetArt}}</td> |
37 | <td>{{articulo.DET_LAR}}</td> | 36 | <td>{{articulo.DET_LAR}}</td> |
38 | <td> | 37 | <td> |
39 | <img *ngIf="articulo.imagenes.length" src="{{apiUrl}}/imagenes/{{articulo.imagenes[0].imagen}}"> | 38 | <img *ngIf="articulo.imagenes.length" src="{{apiUrl}}/imagenes/{{articulo.imagenes[0].imagen}}"> |
40 | <img id="{{articulo.CodSec + articulo.CodArt}}" [hidden]="articulo.imagenes.length"> | 39 | <img id="{{articulo.CodSec + articulo.CodArt}}" [hidden]="articulo.imagenes.length"> |
41 | </td> | 40 | </td> |
42 | <td><input type="file" accept="image/*" (change)="onFileSelected($event, articulo)"></td> | 41 | <td><input type="file" accept="image/*" (change)="onFileSelected($event, articulo)"></td> |
43 | </tr> | 42 | </tr> |
44 | </tbody> | 43 | </tbody> |
45 | </table> | 44 | </table> |
46 | </div> | 45 | </div> |
47 | </div> | 46 | </div> |
48 | 47 | ||
49 | </div> | 48 | </div> |
50 | 49 |