parent
3c4f4df19d
commit
5b4ded0939
@ -0,0 +1,12 @@ |
|||||||
|
<h3 *ngIf="nouveauCommentaire">Ajouter un commentaire</h3> |
||||||
|
<h3 *ngIf="!nouveauCommentaire">Modifier un commentaire</h3> |
||||||
|
|
||||||
|
<div> |
||||||
|
<mat-form-field appearance="fill"> |
||||||
|
<mat-label>Commentaire</mat-label> |
||||||
|
<textarea matInput [(ngModel)]="commentaire"></textarea> |
||||||
|
</mat-form-field> |
||||||
|
</div> |
||||||
|
|
||||||
|
<button mat-raised-button color="primary" (click)="enregistrer()">Enregister les modifications</button> |
||||||
|
<button mat-raised-button color="warn" (click)="annuler()">Annuler</button> |
@ -0,0 +1,3 @@ |
|||||||
|
<p> Êtes-vous certain de vouloir supprimer votre commentaire ?</p> |
||||||
|
<button mat-raised-button color="warn" (click)="valider(true)">Supprimer</button> |
||||||
|
<button mat-raised-button color="primary" (click)="valider(false)">Annuler</button> |
@ -1,14 +1,31 @@ |
|||||||
<ng-container *ngIf="ep.commentairesAssistant == undefined || ep.commentairesAssistant == []"> |
<ng-container *ngIf="ep.commentairesAssistant == undefined || ep.commentairesAssistant.length == 0"> |
||||||
Aucun commentaire assistant |
Aucun commentaire assistant |
||||||
</ng-container> |
</ng-container> |
||||||
|
|
||||||
|
<button mat-raised-button *ngIf="!aDejaCommente()" (click)="nouveauCommentaire()">Ajouter un commentaire</button> |
||||||
|
|
||||||
<ng-container *ngIf="ep.commentairesAssistant != undefined && ep.commentairesAssistant != []"> |
<ng-container *ngIf="ep.commentairesAssistant != undefined && ep.commentairesAssistant.length != 0"> |
||||||
Liste des commentaires assistants : |
Liste des commentaires assistants : |
||||||
|
<mat-card *ngFor="let commentaire of ep.commentairesAssistant"> |
||||||
|
<p> |
||||||
|
{{commentaire.assistant}} |
||||||
|
<ng-container *ngIf="commentaire.idAssistant == collaborateurConnecte.id"> |
||||||
|
<mat-icon (click)="modifierCommentaire(commentaire)">edit</mat-icon> |
||||||
|
<mat-icon (click)="supprimerCommentaire(commentaire.id)">delete</mat-icon> |
||||||
|
</ng-container> |
||||||
|
</p> |
||||||
|
<p>{{commentaire.commentaire}}</p> |
||||||
|
|
||||||
|
</mat-card> |
||||||
|
<!-- |
||||||
<ul> |
<ul> |
||||||
<li *ngFor="let commentaire of ep.commentairesAssistant"> |
<li *ngFor="let commentaire of ep.commentairesAssistant"> |
||||||
<p>Assistant : {{commentaire.assistant}}</p> |
<p>Assistant : {{commentaire.assistant}}</p> |
||||||
<p>{{commentaire.commentaire}}</p> |
<p>{{commentaire.commentaire}}</p> |
||||||
</li> |
</li> |
||||||
</ul> |
</ul> |
||||||
|
--> |
||||||
</ng-container> |
</ng-container> |
||||||
|
<mat-card> |
||||||
|
|
||||||
|
</mat-card> |
Loading…
Reference in new issue