parent
6406c624c3
commit
7427957e9c
@ -1,2 +1,57 @@ |
||||
<app-nav-menu></app-nav-menu> |
||||
<h2>Liste de vos notes</h2> |
||||
<h2>Liste de vos notes</h2> |
||||
|
||||
<ng-container *ngIf="chargement"> |
||||
<mat-spinner></mat-spinner> |
||||
</ng-container> |
||||
|
||||
<ng-container *ngIf="!chargement"> |
||||
<!-- Barre de recherche --> |
||||
<mat-form-field> |
||||
<mat-label>Rechercher un collaborateur</mat-label> |
||||
<input matInput type="text" [(ngModel)]="search" (keyup)="setSearch()"> |
||||
<mat-button *ngIf="search" matSuffix mat-icon-button aria-label="Clear" (click)="resetSearch()"> |
||||
<mat-icon>close</mat-icon> |
||||
</mat-button> |
||||
</mat-form-field> |
||||
|
||||
<ng-container *ngIf="taille == 0"> |
||||
<p>Vous n'avez aucune note à afficher</p> |
||||
</ng-container> |
||||
|
||||
<ng-container *ngIf="taille != 0"> |
||||
|
||||
<mat-table [dataSource]="dataSource"> |
||||
|
||||
<ng-container matColumnDef="collaborateur"> |
||||
<mat-header-cell *matHeaderCellDef>Collaborateur</mat-header-cell> |
||||
<mat-cell *matCellDef="let row">{{ row.collaborateur }}</mat-cell> |
||||
</ng-container> |
||||
|
||||
<ng-container matColumnDef="titre"> |
||||
<mat-header-cell *matHeaderCellDef>Titre</mat-header-cell> |
||||
<mat-cell *matCellDef="let row">{{ row.titre }}</mat-cell> |
||||
</ng-container> |
||||
|
||||
<ng-container matColumnDef="datemiseajour"> |
||||
<mat-header-cell *matHeaderCellDef>Dernière mise à jour</mat-header-cell> |
||||
<mat-cell *matCellDef="let row">{{ row.dateMiseAJour | date : 'dd/MM/yyyy'}}</mat-cell> |
||||
</ng-container> |
||||
|
||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row> |
||||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row> |
||||
|
||||
</mat-table> |
||||
|
||||
|
||||
<mat-paginator #paginator |
||||
[length] = "taille" |
||||
[pageIndex]="numPage-1" |
||||
[pageSize]="parPage" |
||||
[pageSizeOptions]="pageOption" |
||||
(page)="updatePageInfo($event)"> |
||||
</mat-paginator> |
||||
|
||||
</ng-container> |
||||
|
||||
</ng-container> |
Loading…
Reference in new issue