63 lines
2.8 KiB
HTML
63 lines
2.8 KiB
HTML
<div class="header-container">
|
|
<button mat-icon-button color="primary" (click)="iniciarTour()">
|
|
<mat-icon>help</mat-icon>
|
|
</button>
|
|
<div class="header-container-title">
|
|
<h2 joyrideStep="groupsTitleStepText" text="{{ 'groupsTitleStepText' | translate }}">
|
|
{{ 'repositoryTitle' | translate }}
|
|
</h2>
|
|
</div>
|
|
<div class="images-button-row">
|
|
<button mat-flat-button color="primary" (click)="addImage()" joyrideStep="addStep" text="Utiliza este botón para añadir un nuevo repositorio.">Añadir repositorio</button>
|
|
</div>
|
|
</div>
|
|
<mat-divider class="divider"></mat-divider>
|
|
|
|
<div class="search-container">
|
|
<mat-form-field appearance="fill" class="search-string">
|
|
<mat-label>Buscar nombre de repositorio</mat-label>
|
|
<input matInput placeholder="Búsqueda" [(ngModel)]="filters['name']" (keyup.enter)="search()" i18n-placeholder="@@searchPlaceholder">
|
|
<mat-icon matSuffix>search</mat-icon>
|
|
<mat-hint>Pulsar 'enter' para buscar</mat-hint>
|
|
</mat-form-field>
|
|
<mat-form-field appearance="fill" class="search-string">
|
|
<mat-label>Buscar IP de repositorio</mat-label>
|
|
<input matInput placeholder="Búsqueda" [(ngModel)]="filters['ip']" (keyup.enter)="search()" i18n-placeholder="@@searchPlaceholder">
|
|
<mat-icon matSuffix>search</mat-icon>
|
|
<mat-hint>Pulsar 'enter' para buscar</mat-hint>
|
|
</mat-form-field>
|
|
</div>
|
|
|
|
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
|
|
<ng-container *ngFor="let column of columns" [matColumnDef]="column.columnDef">
|
|
<th mat-header-cell *matHeaderCellDef> {{ column.header }} </th>
|
|
<td mat-cell *matCellDef="let repository" >
|
|
<ng-container>
|
|
{{ column.cell(repository) }}
|
|
</ng-container>
|
|
</td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="actions">
|
|
<th mat-header-cell *matHeaderCellDef i18n="@@columnActions" style="text-align: center;">Acciones</th>
|
|
<td mat-cell *matCellDef="let repository" style="text-align: center;">
|
|
<button mat-icon-button color="primary" (click)="importImage($event, repository)" i18n="@@editImage"> <mat-icon>move_to_inbox</mat-icon></button>
|
|
<button mat-icon-button color="primary" (click)="editRepository($event, repository)" i18n="@@editImage"> <mat-icon>edit</mat-icon></button>
|
|
<button mat-icon-button color="warn" (click)="deleteRepository($event, repository)">
|
|
<mat-icon i18n="@@deleteElementTooltip">delete</mat-icon>
|
|
</button>
|
|
</td>
|
|
</ng-container>
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
</table>
|
|
|
|
<div class="paginator-container">
|
|
<mat-paginator [length]="length"
|
|
[pageSize]="itemsPerPage"
|
|
[pageIndex]="page"
|
|
[pageSizeOptions]="[5, 10, 20, 40, 100]"
|
|
(page)="onPageChange($event)">
|
|
</mat-paginator>
|
|
</div>
|