fix de filtrar encuestas
This commit is contained in:
parent
7d61742e40
commit
6a79ff975e
|
@ -80,7 +80,7 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- Lista de Encuestas del Usuario -->
|
<!-- Lista de Encuestas del Usuario -->
|
||||||
<div class="ds-list" (contextmenu)="openContextMenu($event)">
|
<div class="ds-list" (contextmenu)="openContextMenu($event)" *ngIf="!isAdmin()">
|
||||||
<!-- Context Menu -->
|
<!-- Context Menu -->
|
||||||
<div class="ds-contextmenu ds-contextmenu--closed" id="contextmenu">
|
<div class="ds-contextmenu ds-contextmenu--closed" id="contextmenu">
|
||||||
<ul id="ds-context-menu__list">
|
<ul id="ds-context-menu__list">
|
||||||
|
@ -105,8 +105,17 @@
|
||||||
<button type="button" id="contextmenu-duplicate"><fa-icon class="contextmenu__icon" [icon]="faCopy"></fa-icon>Duplicar</button>
|
<button type="button" id="contextmenu-duplicate"><fa-icon class="contextmenu__icon" [icon]="faCopy"></fa-icon>Duplicar</button>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button type="button" id="contextmenu-rename">
|
<button
|
||||||
<fa-icon class="contextmenu__icon" [icon]="faFile"></fa-icon>Cambiar nombre
|
type="button"
|
||||||
|
id="contextmenu-publish"
|
||||||
|
type="button"
|
||||||
|
(click)="publish()"
|
||||||
|
data-toggle="modal"
|
||||||
|
data-target="#publicarEncuesta"
|
||||||
|
*ngIf="isPublished"
|
||||||
|
>
|
||||||
|
<!--Agarrar el id de la encuesta -->
|
||||||
|
<fa-icon class="contextmenu__icon" [icon]="faUpload"></fa-icon>Publicar
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -123,11 +132,12 @@
|
||||||
<div
|
<div
|
||||||
class="ds-list--entity"
|
class="ds-list--entity"
|
||||||
*ngFor="
|
*ngFor="
|
||||||
let encuesta of encuestas | filter: 'nombre':searchString | filter: 'acceso':accesoEncuesta | filter: 'estado':estadoEncuesta;
|
let encuesta of encuestas! | filter: 'nombre':searchString | filter: 'acceso':accesoEncuesta | filter: 'estado':estadoEncuesta;
|
||||||
trackBy: trackId
|
trackBy: trackId
|
||||||
"
|
"
|
||||||
(dblclick)="openSurvey($event)"
|
(dblclick)="openSurvey($event)"
|
||||||
(click)="selectSurvey($event)"
|
(click)="selectSurvey($event)"
|
||||||
|
[hidden]="encuesta.estado == 'DELETED'"
|
||||||
[attr.data-id]="encuesta.id"
|
[attr.data-id]="encuesta.id"
|
||||||
>
|
>
|
||||||
<div class="entity-header">
|
<div class="entity-header">
|
||||||
|
@ -283,8 +293,8 @@
|
||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="table-responsive" id="entities" *ngIf="isAdmin() && encuestas && encuestas.length > 0">
|
<div class="table-responsive" id="entities" *ngIf="isAdmin() && encuestas && encuestas.length > 0">
|
||||||
<table class="table table-striped" aria-describedby="page-heading">
|
<table class="table table-striped" aria-describedby="page-heading">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -352,19 +362,19 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- --------------------------------------------------------------------------------------------- -->
|
<!-- --------------------------------------------------------------------------------------------- -->
|
||||||
|
|
||||||
<!-- Modal -->
|
<!-- Modal -->
|
||||||
<div
|
<div
|
||||||
class="modal fade ds-modal"
|
class="modal fade ds-modal"
|
||||||
id="crearEncuesta"
|
id="crearEncuesta"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
role="dialog"
|
role="dialog"
|
||||||
aria-labelledby="exampleModalCenterTitle"
|
aria-labelledby="exampleModalCenterTitle"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<form autocomplete="off" class="ds-form" name="editForm" role="form" novalidate (ngSubmit)="save()" [formGroup]="editForm">
|
<form autocomplete="off" class="ds-form" name="editForm" role="form" novalidate (ngSubmit)="save()" [formGroup]="editForm">
|
||||||
|
@ -482,11 +492,11 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ------------------------------------------------------------------------------------------------- -->
|
<!-- ------------------------------------------------------------------------------------------------- -->
|
||||||
|
|
||||||
<!-- <div ngIf class="row justify-content-center">
|
<!-- <div ngIf class="row justify-content-center">
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
<form name="editForm" role="form" novalidate (ngSubmit)="save()" [formGroup]="editForm">
|
<form name="editForm" role="form" novalidate (ngSubmit)="save()" [formGroup]="editForm">
|
||||||
<h2 id="jhi-encuesta-heading" data-cy="EncuestaCreateUpdateHeading" jhiTranslate="dataSurveyApp.encuesta.home.createOrEditLabel">
|
<h2 id="jhi-encuesta-heading" data-cy="EncuestaCreateUpdateHeading" jhiTranslate="dataSurveyApp.encuesta.home.createOrEditLabel">
|
||||||
|
@ -748,4 +758,3 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
</div>
|
|
||||||
|
|
Loading…
Reference in New Issue