83 lines
3.5 KiB
HTML
83 lines
3.5 KiB
HTML
<div class="container-fluid">
|
|
<h3>{{'DATASET-LISTING.TITLE' | translate}}</h3>
|
|
|
|
<app-datasets-criteria-component></app-datasets-criteria-component>
|
|
<mat-card class="mat-card">
|
|
<mat-card-header>
|
|
<mat-progress-bar *ngIf="dataSource?.isLoadingResults" mode="query"></mat-progress-bar>
|
|
</mat-card-header>
|
|
<mat-table [dataSource]="dataSource" matSort>
|
|
|
|
<!-- Column Definition: Name -->
|
|
<ng-container cdkColumnDef="label">
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-LISTING.COLUMNS.NAME' | translate}}</mat-header-cell>
|
|
<mat-cell *matCellDef="let row">{{row.label}}</mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Column Definition: Dmp -->
|
|
<ng-container cdkColumnDef="dmp">
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-LISTING.COLUMNS.DMP' | translate}}</mat-header-cell>
|
|
<mat-cell *matCellDef="let row"> {{row.dmp}} </mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Column Definition: Profile -->
|
|
<ng-container cdkColumnDef="profile">
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-LISTING.COLUMNS.PROFILE' | translate}}</mat-header-cell>
|
|
<mat-cell *matCellDef="let row"> {{row.profile}} </mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Column Definition: DataRepositories -->
|
|
<ng-container cdkColumnDef="dataRepositories">
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-LISTING.COLUMNS.DATAREPOSITORIES' | translate}}</mat-header-cell>
|
|
<mat-cell *matCellDef="let row"> {{row.dataRepositories}} </mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Column Definition: DataRepositories -->
|
|
<ng-container cdkColumnDef="registries">
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-LISTING.COLUMNS.REGISTRIES' | translate}}</mat-header-cell>
|
|
<mat-cell *matCellDef="let row"> {{row.registries}} </mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Column Definition: DataRepositories -->
|
|
<ng-container cdkColumnDef="services">
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-LISTING.COLUMNS.SERVICES' | translate}}</mat-header-cell>
|
|
<mat-cell *matCellDef="let row"> {{row.services}} </mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Column Definition: Status -->
|
|
<ng-container cdkColumnDef="status">
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-LISTING.COLUMNS.STATUS' | translate}}</mat-header-cell>
|
|
<mat-cell *matCellDef="let row"> {{row.status}}
|
|
</mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Column Definition: Description -->
|
|
<ng-container cdkColumnDef="description">
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-LISTING.COLUMNS.DESCRIPTION' | translate}}</mat-header-cell>
|
|
<mat-cell *matCellDef="let row"> {{row.description}} </mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Column Definition: Created -->
|
|
<ng-container cdkColumnDef="created">
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-LISTING.COLUMNS.CREATED' | translate}}</mat-header-cell>
|
|
<mat-cell *matCellDef="let row">{{row.created}}</mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Column Definition: Submission Time -->
|
|
<ng-container cdkColumnDef="actions">
|
|
<mat-header-cell *matHeaderCellDef>{{'DATASET-LISTING.COLUMNS.ACTIONS' | translate}}</mat-header-cell>
|
|
<mat-cell *matCellDef="let row"></mat-cell>
|
|
</ng-container>
|
|
|
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
|
<mat-row *matRowDef="let row; columns: displayedColumns" (click)="rowClick(row.id)"></mat-row>
|
|
|
|
</mat-table>
|
|
<mat-paginator #paginator [length]="dataSource?.totalCount" [pageSizeOptions]="[10, 25, 100]">
|
|
</mat-paginator>
|
|
</mat-card>
|
|
|
|
<button mat-fab class="mat-fab-bottom-right" color="primary" [routerLink]=" ['/dataset/new'] ">
|
|
<mat-icon class="mat-24">add</mat-icon>
|
|
</button>
|
|
</div> |