2021-07-03 21:48:27 +00:00
|
|
|
<div>
|
|
|
|
<h2 id="page-heading" data-cy="UsuarioExtraHeading">
|
2021-07-12 02:09:56 +00:00
|
|
|
<span jhiTranslate="dataSurveyApp.usuarioExtra.home.title">Usuarios</span>
|
2021-07-03 21:48:27 +00:00
|
|
|
|
|
|
|
<div class="d-flex justify-content-end">
|
2021-07-12 02:39:20 +00:00
|
|
|
<button id="jh-create-entity" data-cy="entityCreateButton" class="ds-btn ds-btn--primary" [routerLink]="['/usuario-extra/new']">
|
2021-07-03 21:48:27 +00:00
|
|
|
<fa-icon icon="plus"></fa-icon>
|
2021-07-12 02:09:56 +00:00
|
|
|
<span jhiTranslate="dataSurveyApp.usuarioExtra.home.createLabel"> Create a new administrador </span>
|
2021-07-03 21:48:27 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<jhi-alert-error></jhi-alert-error>
|
|
|
|
|
2021-07-25 04:53:38 +00:00
|
|
|
<div *ngIf="successChange" class="alert alert-success alert-dismissible fade show" role="alert">
|
|
|
|
El estado del usuario fue modificado correctamente
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2021-07-03 21:48:27 +00:00
|
|
|
|
|
|
|
<div class="alert alert-warning" id="no-result" *ngIf="usuarioExtras?.length === 0">
|
|
|
|
<span jhiTranslate="dataSurveyApp.usuarioExtra.home.notFound">No usuarioExtras found</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="table-responsive" id="entities" *ngIf="usuarioExtras && usuarioExtras.length > 0">
|
|
|
|
<table class="table table-striped" aria-describedby="page-heading">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-07-12 02:09:56 +00:00
|
|
|
<th scope="col"><span jhiTranslate="dataSurveyApp.usuarioExtra.rol">Rol</span></th>
|
|
|
|
<th scope="col"><span jhiTranslate="dataSurveyApp.usuarioExtra.iconoPerfil">Icono</span></th>
|
2021-07-07 04:53:02 +00:00
|
|
|
<th scope="col"><span jhiTranslate="dataSurveyApp.usuarioExtra.nombre">Nombre Usuario</span></th>
|
2021-07-12 02:09:56 +00:00
|
|
|
<th scope="col"><span jhiTranslate="dataSurveyApp.usuarioExtra.correo">Correo electrónico</span></th>
|
2021-07-03 21:48:27 +00:00
|
|
|
<th scope="col"><span jhiTranslate="dataSurveyApp.usuarioExtra.estado">Estado</span></th>
|
2021-07-07 04:53:02 +00:00
|
|
|
<!--<th scope="col"><span jhiTranslate="dataSurveyApp.usuarioExtra.plantilla">Plantilla</span></th>-->
|
2021-07-03 21:48:27 +00:00
|
|
|
<th scope="col"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr *ngFor="let usuarioExtra of usuarioExtras; trackBy: trackId" data-cy="entityTable">
|
2021-07-07 04:53:02 +00:00
|
|
|
<td *ngIf="usuarioExtra.user">
|
|
|
|
<ul class="listRoles">
|
|
|
|
<li *ngFor="let userRole of usuarioExtra.user.authorities">
|
|
|
|
<p>{{ userRole }}</p>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</td>
|
2021-07-03 21:48:27 +00:00
|
|
|
<td>
|
2021-07-07 04:53:02 +00:00
|
|
|
<div class="photo mb-2"><img src="../../../../content/profile_icons/C{{ usuarioExtra.iconoPerfil }}.png" /></div>
|
2021-07-03 21:48:27 +00:00
|
|
|
</td>
|
|
|
|
<td>{{ usuarioExtra.nombre }}</td>
|
2021-07-07 04:53:02 +00:00
|
|
|
<td *ngIf="usuarioExtra.user">{{ usuarioExtra.user.email }}</td>
|
2021-07-03 21:48:27 +00:00
|
|
|
<td jhiTranslate="{{ 'dataSurveyApp.EstadoUsuario.' + usuarioExtra.estado }}">{{ usuarioExtra.estado }}</td>
|
2021-07-07 04:53:02 +00:00
|
|
|
<!--<td>
|
2021-07-03 21:48:27 +00:00
|
|
|
<span *ngFor="let plantilla of usuarioExtra.plantillas; let last = last">
|
|
|
|
<a class="form-control-static" [routerLink]="['/plantilla', plantilla.id, 'view']">{{ plantilla.id }}</a
|
|
|
|
>{{ last ? '' : ', ' }}
|
|
|
|
</span>
|
2021-07-07 04:53:02 +00:00
|
|
|
</td>-->
|
2021-07-12 02:09:56 +00:00
|
|
|
<td class="text-center">
|
2021-07-03 21:48:27 +00:00
|
|
|
<div class="btn-group">
|
|
|
|
<button
|
|
|
|
type="submit"
|
|
|
|
[routerLink]="['/usuario-extra', usuarioExtra.id, 'view']"
|
2021-07-12 02:39:20 +00:00
|
|
|
class="ds-btn ds-btn--primary btn-sm"
|
2021-07-03 21:48:27 +00:00
|
|
|
data-cy="entityDetailsButton"
|
|
|
|
>
|
|
|
|
<fa-icon icon="eye"></fa-icon>
|
|
|
|
<span class="d-none d-md-inline" jhiTranslate="entity.action.view">View</span>
|
|
|
|
</button>
|
2021-07-12 02:09:56 +00:00
|
|
|
|
2021-07-23 19:50:18 +00:00
|
|
|
<button type="submit" (click)="delete(usuarioExtra)" class="btn-sm ds-btn ds-btn--toggle" data-cy="entityDeleteButton">
|
|
|
|
<span class="d-none d-md-inline" jhiTranslate="entity.action.toggleStatus"></span>
|
2021-07-03 21:48:27 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|