2021-08-07 09:30:50 +00:00
|
|
|
<div *ngIf="usuarioExtra">
|
|
|
|
<h2 id="page-heading" data-cy="UsuarioEncuestaHeading">
|
|
|
|
<span class="ds-title" jhiTranslate="dataSurveyApp.usuarioExtra.plantillas.title">Mis Plantillas </span>
|
2021-08-08 19:51:45 +00:00
|
|
|
<p class="ds-subtitle">Cree encuestas a partir de las plantillas previamente compradas</p>
|
2021-08-07 09:30:50 +00:00
|
|
|
|
|
|
|
<div class="d-flex justify-content-end">
|
|
|
|
<button class="ds-btn ds-btn--secondary mr-2" (click)="loadAll()" [disabled]="isLoading">
|
|
|
|
<fa-icon icon="sync" [spin]="isLoading"></fa-icon>
|
|
|
|
<span jhiTranslate="dataSurveyApp.usuarioExtra.home.refreshListLabel">Refresh List</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
<jhi-alert-error></jhi-alert-error>
|
|
|
|
|
|
|
|
<jhi-alert></jhi-alert>
|
|
|
|
|
2021-08-09 05:54:23 +00:00
|
|
|
<form *ngIf="misPlantillas?.length === 0" class="ds-form">
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-addon"><i class="glyphicon glyphicon-search"></i></div>
|
|
|
|
<input type="text" name="searchString" placeholder="Buscar..." [(ngModel)]="searchString" />
|
|
|
|
</div>
|
|
|
|
</form>
|
2021-08-08 20:29:02 +00:00
|
|
|
<div class="ds-survey" id="entities" *ngIf="misPlantillas?.length === 0">
|
2021-08-08 19:51:45 +00:00
|
|
|
<div class="ds-survey--all-question-wrapper">
|
2021-08-09 05:54:23 +00:00
|
|
|
<ng-container>
|
2021-08-08 19:51:45 +00:00
|
|
|
<p class="ds-title text-center">No posee plantillas</p>
|
|
|
|
<p class="ds-subtitle text-center">Adquiera y compre diferentes plantillas disponibles en nuestra tienda</p>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
2021-08-07 09:30:50 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="table-responsive" id="entities" *ngIf="misPlantillas && misPlantillas.length > 0">
|
2021-08-11 03:55:41 +00:00
|
|
|
<table class="ds-table table table-striped" aria-describedby="page-heading">
|
2021-08-07 09:30:50 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col"><span jhiTranslate="dataSurveyApp.plantilla.nombre">Nombre</span></th>
|
|
|
|
<th scope="col"><span jhiTranslate="dataSurveyApp.plantilla.descripcion">Descripcion</span></th>
|
|
|
|
<th scope="col"><span jhiTranslate="dataSurveyApp.plantilla.categoria">Categoria</span></th>
|
|
|
|
<th scope="col"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-08-09 05:54:23 +00:00
|
|
|
<tr *ngFor="let miPlantilla of misPlantillas | filter: 'nombre':searchString; trackBy: trackId" data-cy="entityTable">
|
2021-08-07 09:30:50 +00:00
|
|
|
<td>{{ miPlantilla.nombre }}</td>
|
|
|
|
<td>{{ miPlantilla.descripcion }}</td>
|
|
|
|
<td>{{ miPlantilla.categoria?.nombre }}</td>
|
|
|
|
<td class="text-right">
|
|
|
|
<div class="btn-group">
|
|
|
|
<button
|
|
|
|
type="submit"
|
2021-08-12 06:58:33 +00:00
|
|
|
[routerLink]="['/mis-plantillas', miPlantilla.id, 'preview']"
|
2021-08-07 09:30:50 +00:00
|
|
|
class="ds-btn ds-btn--secondary btn-sm"
|
|
|
|
data-cy="entityDetailsButton"
|
|
|
|
>
|
|
|
|
<fa-icon icon="eye"></fa-icon>
|
|
|
|
<span class="d-none d-md-inline">Vista previa</span>
|
|
|
|
</button>
|
|
|
|
|
2021-08-08 20:29:02 +00:00
|
|
|
<button
|
|
|
|
type="submit"
|
|
|
|
class="ds-btn ds-btn--primary btn-sm"
|
|
|
|
data-cy="entityCreateButton"
|
|
|
|
(click)="crearEncuesta(miPlantilla.id)"
|
|
|
|
>
|
2021-08-07 09:30:50 +00:00
|
|
|
<span class="d-none d-md-inline" jhiTranslate="dataSurveyApp.usuarioExtra.plantillas.crearEncuesta">Crear Encuesta</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|