comments.component.html 930 Bytes
Newer Older
1
<div class="piece"
2
[matTooltip]="translate.instant('comments_tooltip')"
3
matTooltipPosition="before" [matTooltipDisabled]="!tooltipService.activatedTooltips">
4
    <div class="piece-form">
5
        <div class="piece-form-title">{{'comments_title' | translate}}</div>
6

7
        <div class="piece-form-comments">
Romain DELEAU's avatar
Romain DELEAU committed
8
            <app-comment *ngFor="let comment of piece.comments, let i = index" [comment]="comment" [comments]="piece.comments" [index]="i" [scenario]="scenario"></app-comment>
9 10 11 12
        </div>

        <div class="piece-form-newcomment">
            <div class="piece-form-newcomment-form">
13
                <label>{{'comments_newComment' | translate}}</label>
Romain DELEAU's avatar
Romain DELEAU committed
14
                <textarea [(ngModel)]="newComment" (change)="editTrace($event,'newComment')"></textarea>
15
            </div>
16
            <button mat-button (click)="addComment()">{{'comments_button_newComment' | translate}}</button>
17 18 19
        </div>

    </div>
20
</div>