From 2ed331130f407fbe7bebaa1b02a5ddfb378c105e Mon Sep 17 00:00:00 2001 From: Mariela Bonilla Date: Thu, 5 Aug 2021 23:56:00 -0600 Subject: [PATCH] add filtrar plantilla para administrador --- .../plantilla/list/plantilla.component.html | 34 ++++++++++++++++++- .../plantilla/list/plantilla.component.ts | 12 +++++-- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/app/entities/plantilla/list/plantilla.component.html b/src/main/webapp/app/entities/plantilla/list/plantilla.component.html index 1e9f101..fb3c7bc 100644 --- a/src/main/webapp/app/entities/plantilla/list/plantilla.component.html +++ b/src/main/webapp/app/entities/plantilla/list/plantilla.component.html @@ -25,7 +25,36 @@ +
+
+
+
+ +
+
+
+ +
+ +
+
@@ -48,7 +77,10 @@ - + {{ plantilla.nombre }} {{ plantilla.fechaPublicacionTienda | formatShortDatetime | titlecase }} diff --git a/src/main/webapp/app/entities/plantilla/list/plantilla.component.ts b/src/main/webapp/app/entities/plantilla/list/plantilla.component.ts index e11c369..d3638e8 100644 --- a/src/main/webapp/app/entities/plantilla/list/plantilla.component.ts +++ b/src/main/webapp/app/entities/plantilla/list/plantilla.component.ts @@ -43,17 +43,25 @@ export class PlantillaComponent implements OnInit { }); faExchangeAlt = faExchangeAlt; + + public searchString: string; + public estadoPlantilla: string; + constructor( protected plantillaService: PlantillaService, protected modalService: NgbModal, protected accountService: AccountService, protected fb: FormBuilder, protected categoriaService: CategoriaService - ) {} + ) { + this.searchString = ''; + this.estadoPlantilla = ''; + } loadAll(): void { this.isLoading = true; - + this.searchString = ''; + this.estadoPlantilla = ''; this.plantillaService.query().subscribe( (res: HttpResponse) => { this.isLoading = false;