2021-07-29 05:26:29 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<div class="container-fluid navbar navbar-marketing navbar-expand-lg bg-white navbar-light">
|
|
|
|
<div class="container px-5 py-4">
|
|
|
|
<h1 class="ds-title" [hidden]="notAccount">Inicio</h1>
|
|
|
|
<a class="text-dark" href=" " [hidden]="!notAccount">
|
|
|
|
<img src="http://datasurvey.org/content/img_datasurvey/datasurvey-logo-text-black.svg" width="300" alt="" />
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a href=" ">
|
|
|
|
<button class="ds-btn btn-outline-secondary fw-500 ms-lg-4">Sobre DataSurvey</button>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="col-6" style="text-align: end">
|
|
|
|
<!--<a routerlink="" [hidden]="!notAccount">
|
|
|
|
<button class="ds-btn btn-light fw-500 ms-lg-4">Sobre DataSurvey</button>
|
|
|
|
</a>-->
|
|
|
|
<a routerLink="/login" [hidden]="!notAccount">
|
|
|
|
<button class="ds-btn ds-btn--primary fw-500 ms-lg-4">Iniciar Sesión</button>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a routerLink="/account/register" [hidden]="!notAccount">
|
|
|
|
<button class="ds-btn ds-btn--primary fw-500 ms-lg-4">Registrarse</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="bg-light py-10 container-encuestas">
|
|
|
|
<div class="container px-0">
|
|
|
|
<!--filtrado-->
|
|
|
|
|
2021-07-31 04:07:23 +00:00
|
|
|
<div class="input-group">
|
2021-07-29 05:26:29 +00:00
|
|
|
<div class="ds-filter">
|
|
|
|
<div class="input-group-addon"><i class="glyphicon glyphicon-search"></i></div>
|
2021-07-31 04:07:23 +00:00
|
|
|
<input class="form-control" type="text" name="searchString" placeholder="Buscar por nombre..." [(ngModel)]="searchString" />
|
2021-07-29 05:26:29 +00:00
|
|
|
</div>
|
2021-07-31 05:00:12 +00:00
|
|
|
<!--<div class="ds-filter">
|
2021-07-31 04:07:23 +00:00
|
|
|
<select name="searchCategoria" class="form-control" [(ngModel)]="searchCategoria" style="width: 200px">
|
|
|
|
<option value="" selected="selected" disabled="disabled">Filtrar por categoría</option>
|
|
|
|
<option value="">Todas las categorías</option>
|
|
|
|
<option *ngFor="let categoria of categorias" [value]="categoria.nombre">{{categoria.nombre}}</option>
|
2021-07-29 05:26:29 +00:00
|
|
|
</select>
|
2021-07-31 04:07:23 +00:00
|
|
|
</div>-->
|
|
|
|
</div>
|
2021-07-29 05:26:29 +00:00
|
|
|
|
2021-07-31 04:07:23 +00:00
|
|
|
<hr />
|
2021-07-29 05:26:29 +00:00
|
|
|
|
2021-07-31 04:07:23 +00:00
|
|
|
<div class="container" *ngIf="encuestas && encuestas.length == 0">
|
2021-07-29 05:26:29 +00:00
|
|
|
<h1 class="ds-title">Encuestas</h1>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
<div class="social-box">
|
|
|
|
<h1>
|
|
|
|
<fa-icon [icon]="faFileAlt"></fa-icon>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--Inicio de los cards-->
|
|
|
|
|
2021-07-31 04:07:23 +00:00
|
|
|
<div class="row gx-5" *ngIf="encuestas && encuestas.length > 0">
|
|
|
|
<div
|
|
|
|
class="col-xl-4 col-lg-4 col-md-6 mb-5"
|
|
|
|
*ngFor="
|
|
|
|
let encuesta of encuestas | filter: 'nombre':searchString | filter: 'categoria.nombre':searchCategoria;
|
|
|
|
trackBy: trackId
|
|
|
|
"
|
|
|
|
>
|
|
|
|
<div class="card-encuesta lift h-100" [attr.data-id]="encuesta.id">
|
|
|
|
<!--(dblclick)="openSurvey($event)"
|
|
|
|
(click)="selectSurvey($event)"
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<div class="card-body p-3">
|
2021-07-29 05:26:29 +00:00
|
|
|
<div class="card-title mb-0">{{ encuesta.nombre }}</div>
|
2021-07-31 04:07:23 +00:00
|
|
|
<div class="entity-body--row m-2">
|
2021-07-29 05:26:29 +00:00
|
|
|
<span class="tag mt-2">{{ encuesta.categoria?.nombre | lowercase }}</span>
|
|
|
|
</div>
|
2021-07-31 04:07:23 +00:00
|
|
|
<div class="entity-body--row m-2">
|
2021-07-29 05:26:29 +00:00
|
|
|
<span class="subtitle mt-2">{{ encuesta.descripcion | titlecase }}</span>
|
|
|
|
</div>
|
|
|
|
<div class="text-xs text-gray-500">
|
|
|
|
<div class="entity-body">
|
2021-07-31 04:07:23 +00:00
|
|
|
<div class="entity-body--row m-2">
|
2021-07-29 05:26:29 +00:00
|
|
|
<span class="mt-2"
|
2021-07-31 04:07:23 +00:00
|
|
|
>Fecha de inicio <fa-icon class="entity-icon--access" [icon]="faCalendarAlt"></fa-icon> {{
|
|
|
|
encuesta.fechaPublicacion | formatShortDatetime | titlecase
|
2021-07-29 05:26:29 +00:00
|
|
|
}}</span
|
|
|
|
>
|
|
|
|
</div>
|
2021-07-31 04:07:23 +00:00
|
|
|
<div class="entity-body--row m-2">
|
2021-07-29 05:26:29 +00:00
|
|
|
<span class="mt-2"
|
2021-07-31 04:07:23 +00:00
|
|
|
>Fecha de finalización <fa-icon class="entity-icon--access" [icon]="faCalendarAlt"></fa-icon
|
|
|
|
> {{ encuesta.fechaFinalizar | formatShortDatetime | titlecase }}</span
|
2021-07-29 05:26:29 +00:00
|
|
|
>
|
|
|
|
</div>
|
2021-07-31 04:07:23 +00:00
|
|
|
<div class="entity-body--row m-2">
|
2021-07-29 05:26:29 +00:00
|
|
|
<p>Calificacion</p>
|
2021-07-31 04:07:23 +00:00
|
|
|
<fa-icon *ngFor="let i of [].constructor(encuesta.calificacion)" class="entity-icon--star" [icon]="faStar"></fa-icon>
|
2021-07-29 05:26:29 +00:00
|
|
|
<fa-icon
|
|
|
|
*ngFor="let i of [].constructor(5 - encuesta.calificacion!)"
|
2021-07-31 04:07:23 +00:00
|
|
|
class="entity-icon--star--off"
|
2021-07-29 05:26:29 +00:00
|
|
|
[icon]="faStar"
|
|
|
|
></fa-icon>
|
|
|
|
</div>
|
2021-07-31 04:07:23 +00:00
|
|
|
<div class="entity-body--row m-2">
|
2021-07-29 05:26:29 +00:00
|
|
|
<button class="ds-btn btn-card"><fa-icon [icon]="faPollH"></fa-icon> Completar encuesta</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-31 04:07:23 +00:00
|
|
|
</div>
|
2021-07-29 05:26:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-31 04:07:23 +00:00
|
|
|
</div>
|
2021-07-29 05:26:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--Inicio de cards-->
|
|
|
|
</div>
|