dnet-applications/frontends/dnet-is-application/src/app/contexts/contexts.component.html

42 lines
1.8 KiB
HTML
Raw Normal View History

2023-01-27 11:44:30 +01:00
<h2>Contexts</h2>
2023-02-02 09:37:24 +01:00
<mat-form-field appearance="fill" floatLabel="always" style="width: 100%; margin-top: 10px;">
2023-01-27 11:44:30 +01:00
<mat-label>Filter</mat-label>
<input matInput (keyup)="applyFilter($event)" placeholder="Filter..." #input />
</mat-form-field>
<table mat-table [dataSource]="contextsDatasource" matSort class="mat-elevation-z8">
<ng-container matColumnDef="id">
<th mat-header-cell *matHeaderCellDef style="width: 20%;" mat-sort-header sortActionDescription="Sort by Context ID"> Id </th>
<td mat-cell *matCellDef="let element">
2023-01-27 12:43:15 +01:00
<a [routerLink]="['/ctx_viewer']" [queryParams]="{id: element.id}">{{element.id}}</a>
2023-01-27 11:44:30 +01:00
</td>
</ng-container>
<ng-container matColumnDef="label">
<th mat-header-cell *matHeaderCellDef style="width: 40%;" mat-sort-header sortActionDescription="Sort by Context Label"> Label </th>
<td mat-cell *matCellDef="let element"> {{element.label}} </td>
</ng-container>
<ng-container matColumnDef="type">
<th mat-header-cell *matHeaderCellDef style="width: 10%;" mat-sort-header sortActionDescription="Sort by Context Type"> Type </th>
<td mat-cell *matCellDef="let element"> {{element.type}} </td>
</ng-container>
<ng-container matColumnDef="buttons">
2023-01-27 12:43:15 +01:00
<th mat-header-cell *matHeaderCellDef style="text-align: right;">Parameters</th>
2023-01-27 11:44:30 +01:00
<td mat-cell *matCellDef="let element" class="table-buttons">
2023-01-27 15:00:41 +01:00
<button mat-stroked-button color="primary" (click)="showParamsDialog(element)">show</button>
2023-01-27 11:44:30 +01:00
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="colums"></tr>
<tr mat-row *matRowDef="let row; columns: colums;"></tr>
<!-- Row shown when there is no matching data. -->
<tr class="mat-row" *matNoDataRow>
<td class="mat-cell" colspan="4" style="padding: 0 16px;">No data matching the filter "{{input.value}}"</td>
</tr>
</table>