supplementary-task.component.html 1.34 KB
Newer Older
1 2
<div class="piece" [style.background]="task.supplementaryRole ?
    'linear-gradient(165deg, rgba(154,213,236,1) 0%, rgba(154,213,236,1) 55%,'+task.supplementaryRole.color+' 55%,'+task.supplementaryRole.color+' 100%)'
3
    : 'linear-gradient(165deg, rgba(154,213,236,1) 0%, rgba(154,213,236,1) 55%, rgba(0,0,0,1) 55%, rgba(0,0,0,1) 100%)'"
4
    [matTooltip]="translate.instant('supplementaryRole_tooltip')"
5
    matTooltipPosition="before" [matTooltipDisabled]="!tooltipService.activatedTooltips">
6
    <div class="piece-form">
7
        <div class="piece-title">{{'supplementaryRole_title' | translate}}</div>
8
        <!--
9
        <div class="piece-form-checkbox">
10
            <input type="checkbox" [(ngModel)]="checkbox"/>
11 12
            <label>Oui</label>
        </div>
13 14
        œ-->
        <div class="piece-form-select">
15
            <label>{{'supplementaryRole_label' | translate}}</label>
16
            <select [(ngModel)]="task.supplementaryRole" (change)="editTrace($event,'supplementaryRole')">
17
                <option selected [ngValue]="undefined">{{'supplementaryRole_none' | translate}}</option>
18 19 20
                <ng-container *ngFor="let supplementaryRole of role.supplementaryRoles">
                    <option [ngValue]="supplementaryRole">{{supplementaryRole.name}}</option>
                </ng-container>
21 22
            </select>
        </div>
23 24
    </div>
</div>