2021-07-03 21:48:27 +00:00
|
|
|
<div>
|
|
|
|
<h2 id="page-heading" data-cy="CategoriaHeading">
|
2021-07-26 19:21:18 +00:00
|
|
|
<div>
|
|
|
|
<span class="ds-title" jhiTranslate="dataSurveyApp.categoria.home.title">Categorias</span>
|
|
|
|
<p class="ds-subtitle">Categorice las encuestas de la aplicación</p>
|
|
|
|
</div>
|
2021-07-03 21:48:27 +00:00
|
|
|
|
|
|
|
<div class="d-flex justify-content-end">
|
|
|
|
<button
|
|
|
|
id="jh-create-entity"
|
|
|
|
data-cy="entityCreateButton"
|
2021-07-12 05:32:06 +00:00
|
|
|
class="jh-create-entity create-categoria ds-btn ds-btn--primary"
|
2021-07-03 21:48:27 +00:00
|
|
|
[routerLink]="['/categoria/new']"
|
|
|
|
>
|
|
|
|
<fa-icon icon="plus"></fa-icon>
|
|
|
|
<span jhiTranslate="dataSurveyApp.categoria.home.createLabel"> Create a new Categoria </span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
|
2021-07-19 05:01:27 +00:00
|
|
|
<!-- <div class="alert alert-success" *ngIf="success" jhiTranslate="dataSurveyApp.categoria.delete.error">
|
2021-07-03 21:48:27 +00:00
|
|
|
|
2021-07-19 05:01:27 +00:00
|
|
|
</div>-->
|
|
|
|
|
2021-07-25 05:11:16 +00:00
|
|
|
<div
|
|
|
|
*ngIf="success"
|
|
|
|
class="alert alert-success alert-dismissible fade show"
|
|
|
|
role="alert"
|
|
|
|
jhiTranslate="dataSurveyApp.categoria.delete.success"
|
|
|
|
>
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2021-07-19 05:46:51 +00:00
|
|
|
</div>
|
|
|
|
|
2021-08-16 07:29:52 +00:00
|
|
|
<div class="ds-survey" id="entities" *ngIf="categorias?.length === 0">
|
|
|
|
<div class="ds-survey--all-question-wrapper">
|
|
|
|
<ng-container class="">
|
|
|
|
<p class="ds-title text-center">No existen categorías</p>
|
|
|
|
<p class="ds-subtitle text-center">Inicie creando categorías para identificar las encuestas de los usuarios</p>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
2021-07-03 21:48:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="table-responsive" id="entities" *ngIf="categorias && categorias.length > 0">
|
2021-07-11 02:22:54 +00:00
|
|
|
<form class="ds-form">
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-addon"><i class="glyphicon glyphicon-search"></i></div>
|
2021-07-11 04:38:54 +00:00
|
|
|
<input type="text" name="searchString" placeholder="Buscar..." [(ngModel)]="searchString" />
|
2021-07-11 02:22:54 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2021-08-11 03:53:09 +00:00
|
|
|
<table class="ds-table table table-striped" aria-describedby="page-heading">
|
2021-07-03 21:48:27 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col"><span jhiTranslate="dataSurveyApp.categoria.nombre">Nombre</span></th>
|
|
|
|
<th scope="col"><span jhiTranslate="dataSurveyApp.categoria.estado">Estado</span></th>
|
|
|
|
<th scope="col"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-07-11 02:23:22 +00:00
|
|
|
<tr *ngFor="let categoria of categorias | filter: 'nombre':searchString; trackBy: trackId" data-cy="entityTable">
|
2021-07-19 02:56:53 +00:00
|
|
|
<td *ngIf="categoria.id != 0">{{ categoria.nombre }}</td>
|
|
|
|
<td *ngIf="categoria.id != 0" jhiTranslate="{{ 'dataSurveyApp.EstadoCategoria.' + categoria.estado }}">{{ categoria.estado }}</td>
|
|
|
|
<td *ngIf="categoria.id != 0" class="text-right">
|
2021-07-03 21:48:27 +00:00
|
|
|
<div class="btn-group">
|
|
|
|
<button
|
|
|
|
type="submit"
|
|
|
|
[routerLink]="['/categoria', categoria.id, 'edit']"
|
2021-07-12 05:32:06 +00:00
|
|
|
class="btn-sm ds-btn ds-btn--primary"
|
2021-07-03 21:48:27 +00:00
|
|
|
data-cy="entityEditButton"
|
|
|
|
>
|
|
|
|
<span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
|
|
|
|
</button>
|
|
|
|
|
2021-08-11 03:53:09 +00:00
|
|
|
<button type="submit" (click)="toggleStatus(categoria)" class="ds-btn ds-btn--toggle" data-cy="entityDeleteButton">
|
2021-07-26 04:48:33 +00:00
|
|
|
<fa-icon [icon]="faExchangeAlt"></fa-icon>
|
2021-07-19 02:56:53 +00:00
|
|
|
<span class="d-none d-md-inline" jhiTranslate="entity.action.toggleStatus">Toggle Status</span>
|
2021-07-03 21:48:27 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|