Commit 4a3c1d0300b1a1e6d7f6a7e0d8f8163eeee4bd03
1 parent
4176cd7090
Exists in
master
and in
1 other branch
Arreglo de vista abm-imagenes.
Showing
2 changed files
with
54 additions
and
32 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 | <h1>Configuración imágenes</h1> | 3 | <div class="container-fluid"> |
4 | <br> | 4 | <div class="row m-3"> |
5 | <span class="fa fa-search form-control-lg form-control-search pl-3"></span> | 5 | <div class="col"> |
6 | <input | 6 | <p class="h2">Configuración imágenes</p> |
7 | type="text" | 7 | </div> |
8 | class="form-control form-control-lg shadow-sm rounded-pill px-5" | 8 | </div> |
9 | placeholder="Búsqueda productos" | 9 | |
10 | [(ngModel)]="searchTerm" | 10 | <div class="row search"> |
11 | (ngModelChange)="filterItems()"> | 11 | <div class="col"> |
12 | <span class="fa fa-search form-control-lg form-control-search pl-3"></span> | ||
13 | <input | ||
14 | type="text" | ||
15 | class="form-control form-control-lg shadow-sm rounded-pill px-5" | ||
16 | placeholder="Búsqueda productos" | ||
17 | [(ngModel)]="searchTerm" | ||
18 | (ngModelChange)="filterItems()"> | ||
19 | </div> | ||
20 | </div> | ||
21 | |||
22 | <div class="row m-3 vh-70 overflow-scroll"> | ||
23 | <div class="col"> | ||
24 | <h5>Productos</h5> | ||
25 | <table class="table"> | ||
26 | <thead> | ||
27 | <tr class="text-center"> | ||
28 | <th>Nombre</th> | ||
29 | <th>Descripción</th> | ||
30 | <th>Imagen</th> | ||
31 | <th></th> | ||
32 | </tr> | ||
33 | </thead> | ||
34 | <tbody> | ||
35 | <tr *ngFor="let articulo of auxProductos"> | ||
36 | <td>{{articulo.DetArt}}</td> | ||
37 | <td>{{articulo.DET_LAR}}</td> | ||
38 | <td> | ||
39 | <img *ngIf="articulo.imagenes.length" src="{{apiUrl}}/imagenes/{{articulo.imagenes[0].imagen}}"> | ||
40 | <img id="{{articulo.CodSec + articulo.CodArt}}" [hidden]="articulo.imagenes.length"> | ||
41 | </td> | ||
42 | <td><input type="file" accept="image/*" (change)="onFileSelected($event, articulo)"></td> | ||
43 | </tr> | ||
44 | </tbody> | ||
45 | </table> | ||
46 | </div> | ||
47 | </div> | ||
12 | 48 | ||
13 | <div class="row px-5"> | ||
14 | <h5>Productos</h5> |
src/app/components/amb-imagenes/amb-imagenes.component.scss
1 | .search .form-control-search { | ||
2 | position: absolute; | ||
3 | z-index: 2; | ||
4 | display: block; | ||
5 | text-align: center; | ||
6 | pointer-events: none; | ||
7 | color: #aaa; | ||
8 | line-height: inherit; | ||
9 | } | ||
10 |