parent
011bfd8814
commit
f33056fd28
@ -1,67 +1,3 @@ |
||||
<!-- Barre de recher --> |
||||
<mat-form-field> |
||||
<mat-label>Rechercher un collaborateur</mat-label> |
||||
<input matInput type="text" [(ngModel)]="search" (keyup)="updateDataSource()"> |
||||
<mat-button *ngIf="search" matSuffix mat-icon-button aria-label="Clear" (click)="search=''"> |
||||
<mat-icon>close</mat-icon> |
||||
</mat-button> |
||||
</mat-form-field> |
||||
<h2> Liste des EP en cours</h2> |
||||
|
||||
<!-- Affichage de la liste des EP disponibles--> |
||||
<mat-table [dataSource]="this.dataSource" matSort> |
||||
|
||||
<ng-container matColumnDef="agence"> |
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Agence </mat-header-cell> |
||||
<mat-cell *matCellDef="let row"> {{row.collaborateur.businessUnit.nom}} </mat-cell> |
||||
</ng-container> |
||||
|
||||
<ng-container matColumnDef="collaborateur"> |
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Collaborateur </mat-header-cell> |
||||
<!-- Lien vers les détails du collaborateur --> |
||||
<mat-cell *matCellDef="let row" [routerLink]="['/collaborateurs', row.collaborateur.id]">{{row.collaborateur.prenom}} {{row.collaborateur.nom}}</mat-cell> |
||||
</ng-container> |
||||
|
||||
<ng-container matColumnDef="anciennete"> |
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Ancienneté </mat-header-cell> |
||||
<!--<mat-cell *matCellDef="let row"> {{row.collaborateur.dateArrivee | date: 'yyyy/MM/dd'}} ({{row.annee}}an(s) {{row.mois | number: '2.0-0'}}mois) </mat-cell>--> |
||||
<mat-cell *matCellDef="let row"> {{row.collaborateur.dateArrivee | date: 'yyyy/MM/dd'}} </mat-cell> |
||||
</ng-container> |
||||
|
||||
<ng-container matColumnDef="referent"> |
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Referent </mat-header-cell> |
||||
<!-- Lien vers les détails du référent --> |
||||
<mat-cell *matCellDef="let row" [routerLink]="['/referents', row.referent.id]"> {{row.referent.nom}} {{row.referent.prenom}} </mat-cell> |
||||
</ng-container> |
||||
|
||||
<ng-container matColumnDef="type"> |
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Type </mat-header-cell> |
||||
<mat-cell *matCellDef="let row"> {{getType(row.type)}} </mat-cell> |
||||
</ng-container> |
||||
|
||||
<ng-container matColumnDef="etat"> |
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Etat </mat-header-cell> |
||||
<mat-cell *matCellDef="let row"> {{getEtat(row.statut)}} </mat-cell> |
||||
</ng-container> |
||||
|
||||
<ng-container matColumnDef="datemail"> |
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Date envoie mail </mat-header-cell> |
||||
<mat-cell *matCellDef="let row"> {{row.dateDisponibilite}} </mat-cell> |
||||
</ng-container> |
||||
|
||||
<ng-container matColumnDef="dateentretien"> |
||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Date entretient </mat-header-cell> |
||||
<mat-cell *matCellDef="let row" background="#FFFF00"> {{row.datePrevisionnelle}} </mat-cell> |
||||
</ng-container> |
||||
|
||||
|
||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row> |
||||
<mat-row [ngClass]="{'obligatoire': row.obligatoire}" *matRowDef="let row; columns: displayedColumns;"></mat-row> |
||||
</mat-table> |
||||
<mat-paginator #paginator |
||||
[length] = "taille" |
||||
[pageIndex]="numPage-1" |
||||
[pageSize]="parPage" |
||||
[pageSizeOptions]="pageOption" |
||||
(page)="pageEvent = updatePageInfo($event)" |
||||
> |
||||
</mat-paginator> |
||||
<ep-table [typeRechercheEP]="typeRechercheEP" [displayedColumns]="displayedColumns" (eventEmitter)="eventEmitter($event)"></ep-table> |
Loading…
Reference in new issue