From 8e22d769f6ddd64244708631f5548361b9752b48 Mon Sep 17 00:00:00 2001 From: Mariela Bonilla Date: Tue, 20 Jul 2021 21:52:42 -0600 Subject: [PATCH 1/6] add filtro de encuesta por nombre --- .../encuesta/list/encuesta.component.html | 352 ++++++++++-------- .../encuesta/list/encuesta.component.ts | 7 +- 2 files changed, 196 insertions(+), 163 deletions(-) diff --git a/src/main/webapp/app/entities/encuesta/list/encuesta.component.html b/src/main/webapp/app/entities/encuesta/list/encuesta.component.html index f0545aa..cc4710b 100644 --- a/src/main/webapp/app/entities/encuesta/list/encuesta.component.html +++ b/src/main/webapp/app/entities/encuesta/list/encuesta.component.html @@ -34,173 +34,201 @@
No encuestas found
+
+
+
+
+ +
+
- -
- -
-
    -
    -
  • - +
  • +
    +
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
    +
    +
  • + +
  • +
    +
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+   {{ encuesta.nombre | titlecase }} - Crear +
+
+   {{ encuesta.nombre | titlecase }} +
+
+   {{ + encuesta.fechaCreacion | formatShortDatetime | titlecase + }} +
+
+ {{ encuesta.descripcion | titlecase }} +
+
+ {{ encuesta.categoria?.nombre | lowercase }} +
+
+ +
+
+ +
- -
-
-   {{ encuesta.nombre | titlecase }} -
-
-   {{ encuesta.nombre | titlecase }} -
-
-   {{ - encuesta.fechaCreacion | formatShortDatetime | titlecase - }} -
-
- {{ encuesta.descripcion | titlecase }} -
-
- {{ encuesta.categoria?.nombre | lowercase }} -
-
- -
-
- -
diff --git a/src/main/webapp/app/entities/encuesta/list/encuesta.component.ts b/src/main/webapp/app/entities/encuesta/list/encuesta.component.ts index 6fccf6b..0089a1b 100644 --- a/src/main/webapp/app/entities/encuesta/list/encuesta.component.ts +++ b/src/main/webapp/app/entities/encuesta/list/encuesta.component.ts @@ -66,6 +66,8 @@ export class EncuestaComponent implements OnInit, AfterViewInit { categoriasSharedCollection: ICategoria[] = []; usuarioExtrasSharedCollection: IUsuarioExtra[] = []; + public searchEncuesta: string; + editForm = this.fb.group({ id: [], nombre: [null, [Validators.required, Validators.minLength(1), Validators.maxLength(50)]], @@ -93,7 +95,9 @@ export class EncuestaComponent implements OnInit, AfterViewInit { protected fb: FormBuilder, protected accountService: AccountService, protected router: Router - ) {} + ) { + this.searchEncuesta = ''; + } resetForm(): void { this.editForm.reset(); @@ -115,6 +119,7 @@ export class EncuestaComponent implements OnInit, AfterViewInit { } ngOnInit(): void { + this.searchEncuesta = ''; document.body.addEventListener('click', e => { document.getElementById('contextmenu')!.classList.add('ds-contextmenu--closed'); document.getElementById('contextmenu')!.classList.remove('ds-contextmenu--open'); From 9fd9e22739f270c428cca62f4037358ef18b334b Mon Sep 17 00:00:00 2001 From: Mariela Bonilla Date: Wed, 21 Jul 2021 22:30:54 -0600 Subject: [PATCH 2/6] add filter by acceso y estado --- .../encuesta/list/encuesta.component.html | 42 +++++++++++++++++-- .../encuesta/list/encuesta.component.ts | 10 +++++ 2 files changed, 48 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/app/entities/encuesta/list/encuesta.component.html b/src/main/webapp/app/entities/encuesta/list/encuesta.component.html index cc4710b..266ead0 100644 --- a/src/main/webapp/app/entities/encuesta/list/encuesta.component.html +++ b/src/main/webapp/app/entities/encuesta/list/encuesta.component.html @@ -35,10 +35,41 @@ No encuestas found
-
+
-
- +
+
+ +
+
+
+ +
+
+
+ +
+
@@ -90,7 +121,10 @@
{ document.getElementById('contextmenu')!.classList.add('ds-contextmenu--closed'); document.getElementById('contextmenu')!.classList.remove('ds-contextmenu--open'); From 813f40cf6ace83e3716b3089ab9f02483cd8e09e Mon Sep 17 00:00:00 2001 From: Mariela Bonilla Date: Thu, 22 Jul 2021 02:52:06 -0600 Subject: [PATCH 3/6] =?UTF-8?q?add=20en=20flltro=20la=20opci=C3=B3n=20de?= =?UTF-8?q?=20filtrar=20por=20encuestas=20FINISHED?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/entities/encuesta/list/encuesta.component.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/app/entities/encuesta/list/encuesta.component.html b/src/main/webapp/app/entities/encuesta/list/encuesta.component.html index 266ead0..33c2c3d 100644 --- a/src/main/webapp/app/entities/encuesta/list/encuesta.component.html +++ b/src/main/webapp/app/entities/encuesta/list/encuesta.component.html @@ -57,6 +57,7 @@ +
-
+
    @@ -97,6 +97,22 @@
+
+
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • @@ -104,146 +120,83 @@
  • - - -
    - -
    -
      -
      -
    • - -
    • -
      -
      -
    • - -
    • -
    • - -
    • -
    • - -
    • -
    • - -
    • -
      -
      -
    • - -
    • -
      -
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    +
    +
    +   {{ encuesta.nombre | titlecase }}
    - -
    -
    -   {{ encuesta.nombre | titlecase }} -
    -
    -   {{ encuesta.nombre | titlecase }} -
    -
    -   {{ - encuesta.fechaCreacion | formatShortDatetime | titlecase - }} -
    -
    - {{ encuesta.descripcion | titlecase }} -
    -
    - {{ encuesta.categoria?.nombre | lowercase }} -
    -
    - -
    +
    +   {{ encuesta.nombre | titlecase }}
    +
    +   {{ + encuesta.fechaCreacion | formatShortDatetime | titlecase + }} +
    +
    + {{ encuesta.descripcion | titlecase }} +
    +
    + {{ encuesta.categoria?.nombre | lowercase }} +
    +
    + +
    +
    - -
    diff --git a/src/main/webapp/app/entities/encuesta/list/encuesta.component.ts b/src/main/webapp/app/entities/encuesta/list/encuesta.component.ts index be4bed8..aeffa5e 100644 --- a/src/main/webapp/app/entities/encuesta/list/encuesta.component.ts +++ b/src/main/webapp/app/entities/encuesta/list/encuesta.component.ts @@ -62,7 +62,6 @@ export class EncuestaComponent implements OnInit, AfterViewInit { account: Account | null = null; usuarioExtra: UsuarioExtra | null = null; estadoDeleted = EstadoEncuesta.DELETED; - public searchString: string; encuestas?: IEncuesta[]; isLoading = false; @@ -72,7 +71,7 @@ export class EncuestaComponent implements OnInit, AfterViewInit { categoriasSharedCollection: ICategoria[] = []; usuarioExtrasSharedCollection: IUsuarioExtra[] = []; - public searchEncuesta: string; + public searchString: string; public accesoEncuesta: string; //public categoriaEncuesta: string; public estadoEncuesta: string; From 6a79ff975e6525854f02847c40c3e64abb4e82a3 Mon Sep 17 00:00:00 2001 From: Mariela Bonilla Date: Sat, 24 Jul 2021 17:29:33 -0600 Subject: [PATCH 5/6] fix de filtrar encuestas --- .../encuesta/list/encuesta.component.html | 405 +++++++++--------- 1 file changed, 207 insertions(+), 198 deletions(-) diff --git a/src/main/webapp/app/entities/encuesta/list/encuesta.component.html b/src/main/webapp/app/entities/encuesta/list/encuesta.component.html index dfddde5..ebae177 100644 --- a/src/main/webapp/app/entities/encuesta/list/encuesta.component.html +++ b/src/main/webapp/app/entities/encuesta/list/encuesta.component.html @@ -80,7 +80,7 @@ -
    +
      @@ -105,8 +105,17 @@
    • -
    • @@ -123,11 +132,12 @@
      @@ -283,210 +293,210 @@
      -->
    - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    NombreFecha CreacionAccesoEstadoCategoriaCorreo Usuario
    {{ encuesta.nombre }}{{ encuesta.fechaCreacion | formatMediumDatetime }}{{ encuesta.acceso }}{{ encuesta.estado }} - - - - -
    - - - - - -
    -
    -
    - - - - -