Merge pull request #95 from Quantum-P3/feature/US-31
Feature/us-31: listar plantillas para administrador
This commit is contained in:
commit
2a77c017fa
|
@ -3,7 +3,7 @@
|
||||||
<span jhiTranslate="dataSurveyApp.plantilla.home.title">Plantillas</span>
|
<span jhiTranslate="dataSurveyApp.plantilla.home.title">Plantillas</span>
|
||||||
|
|
||||||
<div class="d-flex justify-content-end">
|
<div class="d-flex justify-content-end">
|
||||||
<button class="btn btn-info mr-2" (click)="loadAll()" [disabled]="isLoading">
|
<button class="ds-btn btn-info mr-2" (click)="loadAll()" [disabled]="isLoading">
|
||||||
<fa-icon icon="sync" [spin]="isLoading"></fa-icon>
|
<fa-icon icon="sync" [spin]="isLoading"></fa-icon>
|
||||||
<span jhiTranslate="dataSurveyApp.plantilla.home.refreshListLabel">Refresh List</span>
|
<span jhiTranslate="dataSurveyApp.plantilla.home.refreshListLabel">Refresh List</span>
|
||||||
</button>
|
</button>
|
||||||
|
@ -11,11 +11,11 @@
|
||||||
<button
|
<button
|
||||||
id="jh-create-entity"
|
id="jh-create-entity"
|
||||||
data-cy="entityCreateButton"
|
data-cy="entityCreateButton"
|
||||||
class="btn btn-primary jh-create-entity create-plantilla"
|
class="ds-btn ds-btn--primary jh-create-entity create-plantilla"
|
||||||
[routerLink]="['/plantilla/new']"
|
[routerLink]="['/plantilla/new']"
|
||||||
>
|
>
|
||||||
<fa-icon icon="plus"></fa-icon>
|
<fa-icon icon="plus"></fa-icon>
|
||||||
<span jhiTranslate="dataSurveyApp.plantilla.home.createLabel"> Create a new Plantilla </span>
|
<span jhiTranslate="dataSurveyApp.plantilla.home.createLabel"> Create a new Template </span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</h2>
|
</h2>
|
||||||
|
@ -25,14 +25,13 @@
|
||||||
<jhi-alert></jhi-alert>
|
<jhi-alert></jhi-alert>
|
||||||
|
|
||||||
<div class="alert alert-warning" id="no-result" *ngIf="plantillas?.length === 0">
|
<div class="alert alert-warning" id="no-result" *ngIf="plantillas?.length === 0">
|
||||||
<span jhiTranslate="dataSurveyApp.plantilla.home.notFound">No plantillas found</span>
|
<span jhiTranslate="dataSurveyApp.plantilla.home.notFound">No templates found</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive" id="entities" *ngIf="plantillas && plantillas.length > 0">
|
<div class="table-responsive" id="entities" *ngIf="plantillas && plantillas.length > 0">
|
||||||
<table class="table table-striped" aria-describedby="page-heading">
|
<table class="table table-striped" aria-describedby="page-heading">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col"><span jhiTranslate="global.field.id">ID</span></th>
|
|
||||||
<th scope="col"><span jhiTranslate="dataSurveyApp.plantilla.nombre">Nombre</span></th>
|
<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.descripcion">Descripcion</span></th>
|
||||||
<th scope="col"><span jhiTranslate="dataSurveyApp.plantilla.fechaCreacion">Fecha Creacion</span></th>
|
<th scope="col"><span jhiTranslate="dataSurveyApp.plantilla.fechaCreacion">Fecha Creacion</span></th>
|
||||||
|
@ -45,9 +44,6 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *ngFor="let plantilla of plantillas; trackBy: trackId" data-cy="entityTable">
|
<tr *ngFor="let plantilla of plantillas; trackBy: trackId" data-cy="entityTable">
|
||||||
<td>
|
|
||||||
<a [routerLink]="['/plantilla', plantilla.id, 'view']">{{ plantilla.id }}</a>
|
|
||||||
</td>
|
|
||||||
<td>{{ plantilla.nombre }}</td>
|
<td>{{ plantilla.nombre }}</td>
|
||||||
<td>{{ plantilla.descripcion }}</td>
|
<td>{{ plantilla.descripcion }}</td>
|
||||||
<td>{{ plantilla.fechaCreacion | formatMediumDatetime }}</td>
|
<td>{{ plantilla.fechaCreacion | formatMediumDatetime }}</td>
|
||||||
|
@ -64,7 +60,7 @@
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
[routerLink]="['/plantilla', plantilla.id, 'view']"
|
[routerLink]="['/plantilla', plantilla.id, 'view']"
|
||||||
class="btn btn-info btn-sm"
|
class="ds-btn btn-info btn-sm"
|
||||||
data-cy="entityDetailsButton"
|
data-cy="entityDetailsButton"
|
||||||
>
|
>
|
||||||
<fa-icon icon="eye"></fa-icon>
|
<fa-icon icon="eye"></fa-icon>
|
||||||
|
@ -74,14 +70,14 @@
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
[routerLink]="['/plantilla', plantilla.id, 'edit']"
|
[routerLink]="['/plantilla', plantilla.id, 'edit']"
|
||||||
class="btn btn-primary btn-sm"
|
class="ds-btn ds-btn--primary btn-sm"
|
||||||
data-cy="entityEditButton"
|
data-cy="entityEditButton"
|
||||||
>
|
>
|
||||||
<fa-icon icon="pencil-alt"></fa-icon>
|
<fa-icon icon="pencil-alt"></fa-icon>
|
||||||
<span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
|
<span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button type="submit" (click)="delete(plantilla)" class="btn btn-danger btn-sm" data-cy="entityDeleteButton">
|
<button type="submit" (click)="delete(plantilla)" class="ds-btn ds-btn--danger btn-sm" data-cy="entityDeleteButton">
|
||||||
<fa-icon icon="times"></fa-icon>
|
<fa-icon icon="times"></fa-icon>
|
||||||
<span class="d-none d-md-inline" jhiTranslate="entity.action.delete">Delete</span>
|
<span class="d-none d-md-inline" jhiTranslate="entity.action.delete">Delete</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -34,7 +34,7 @@ export class PlantillaComponent implements OnInit {
|
||||||
this.loadAll();
|
this.loadAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
trackId(index: number, item: IPlantilla): number {
|
trackId(_index: number, item: IPlantilla): number {
|
||||||
return item.id!;
|
return item.id!;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,12 +30,12 @@ export const ADMIN_ROUTES: RouteInfo[] = [
|
||||||
type: 'link',
|
type: 'link',
|
||||||
icontype: 'nc-icon nc-paper',
|
icontype: 'nc-icon nc-paper',
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// path: '/plantilla',
|
path: '/plantilla',
|
||||||
// title: 'Plantillas',
|
title: 'Plantillas',
|
||||||
// type: 'link',
|
type: 'link',
|
||||||
// icontype: 'nc-icon nc-album-2',
|
icontype: 'nc-icon nc-album-2',
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
path: '/categoria',
|
path: '/categoria',
|
||||||
title: 'Categorías',
|
title: 'Categorías',
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
"home": {
|
"home": {
|
||||||
"title": "Plantillas",
|
"title": "Plantillas",
|
||||||
"refreshListLabel": "Refrescar lista",
|
"refreshListLabel": "Refrescar lista",
|
||||||
"createLabel": "Crear nuevo Plantilla",
|
"createLabel": "Crear nueva plantilla",
|
||||||
"createOrEditLabel": "Crear o editar Plantilla",
|
"createOrEditLabel": "Crear o editar plantilla",
|
||||||
"notFound": "Ningún Plantillas encontrado"
|
"notFound": "No se encontró ninguna plantilla"
|
||||||
},
|
},
|
||||||
"created": "Un nuevo Plantilla ha sido creado con el identificador {{ param }}",
|
"created": "Una nueva plantilla ha sido creada con el identificador {{ param }}",
|
||||||
"updated": "Un Plantilla ha sido actualizado con el identificador {{ param }}",
|
"updated": "Una plantilla ha sido actualizada con el identificador {{ param }}",
|
||||||
"deleted": "Un Plantilla ha sido eliminado con el identificador {{ param }}",
|
"deleted": "Una plantilla ha sido eliminada con el identificador {{ param }}",
|
||||||
"delete": {
|
"delete": {
|
||||||
"question": "¿Seguro que quiere eliminar Plantilla {{ id }}?"
|
"question": "¿Seguro que quiere eliminar Plantilla {{ id }}?"
|
||||||
},
|
},
|
||||||
|
@ -19,9 +19,9 @@
|
||||||
},
|
},
|
||||||
"id": "ID",
|
"id": "ID",
|
||||||
"nombre": "Nombre",
|
"nombre": "Nombre",
|
||||||
"descripcion": "Descripcion",
|
"descripcion": "Descripción",
|
||||||
"fechaCreacion": "Fecha Creacion",
|
"fechaCreacion": "Fecha Creación",
|
||||||
"fechaPublicacionTienda": "Fecha Publicacion Tienda",
|
"fechaPublicacionTienda": "Fecha Publicación Tienda",
|
||||||
"estado": "Estado",
|
"estado": "Estado",
|
||||||
"precio": "Precio",
|
"precio": "Precio",
|
||||||
"pPreguntaCerrada": "P Pregunta Cerrada",
|
"pPreguntaCerrada": "P Pregunta Cerrada",
|
||||||
|
|
Loading…
Reference in New Issue