role-occurence.component.html 1.23 KB
Newer Older
1 2 3
<div class="piece"
matTooltip="Ceci permet de choisir combien de joueurs représenteront chaque rôle si le nombre de joueurs est amené à varier"
matTooltipPosition="before" [matTooltipDisabled]="!tooltipService.activatedTooltips">
4 5
    <div class="piece-form">
        <div class="piece-title">Occurrence du rôle</div>
6
        <div class="piece-form-occurrence" *ngFor="let occurence of role.occurences, let i = index">
Romain DELEAU's avatar
Romain DELEAU committed
7
            <div class="piece-form-occurrence-text">
Romain DELEAU's avatar
Romain DELEAU committed
8
                <input type="number" [(ngModel)]="occurence.iteration" (change)="editTrace($event,'Occurrence_['+i+']_nbRole')"/>
Romain DELEAU's avatar
Romain DELEAU committed
9
                <label> entre </label>
Romain DELEAU's avatar
Romain DELEAU committed
10
                <input type="number" [(ngModel)]="occurence.min" (change)="editTrace($event,'Occurrence_['+i+']_playersMin')"/>
Romain DELEAU's avatar
Romain DELEAU committed
11
                <label> et </label>
Romain DELEAU's avatar
Romain DELEAU committed
12
                <input type="number" [(ngModel)]="occurence.max" (change)="editTrace($event,'Occurrence_['+i+']_playersMax')"/>
Romain DELEAU's avatar
Romain DELEAU committed
13 14
                <label> joueurs</label>  
            </div>
15
            <button mat-button (click)="removeOccurrence(i)"><mat-icon fontIcon="remove"></mat-icon></button>
16
        </div>
17
        <button mat-button class="piece-form-add" (click)="addOccurrence()"><mat-icon fontIcon="add"></mat-icon></button>
18 19
    </div>
</div>