Ajout des infos dans les listes déroulantes

du formulaire d'ajout
This commit is contained in:
Sébastien André
2019-11-13 14:18:17 +01:00
parent 35bfdc2183
commit 78b204a3ee
2 changed files with 50 additions and 14 deletions

View File

@@ -2,25 +2,27 @@
<mat-form-field>
<mat-label>Choose the jump type</mat-label>
<mat-select [(ngModel)]="selectedJumpType" name="selectedJumpType">
<mat-option value="1">Option 1</mat-option>
<mat-option value="2" disabled>Option 2 (disabled)</mat-option>
<mat-option value="3">Option 3</mat-option>
<mat-option *ngFor="let jumpType of listOfJumpType" [value]="jumpType.id">
{{jumpType.name}}
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-label>Choose the aircraft</mat-label>
<mat-select [(ngModel)]="selectedAircraft" name="selectedAircraft">
<mat-option value="4">Option 1</mat-option>
<mat-option value="5">Option 2</mat-option>
<mat-option *ngFor="let aircraft of listOfAircraft" [value]="aircraft.id">
{{aircraft.name}}
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-label>Choose the DZ</mat-label>
<mat-select [(ngModel)]="selectedDz" name="selectedDz">
<mat-option value="6">Option 1</mat-option>
<mat-option value="7">Option 2</mat-option>
<mat-option *ngFor="let dropZone of listOfDropZone" [value]="dropZone.id">
{{dropZone.name}}
</mat-option>
</mat-select>
</mat-form-field>
@@ -34,12 +36,6 @@
<mat-checkbox [(ngModel)]="withCutaway" name="withCutaway">With a cutaway ?</mat-checkbox>
<!-- <mat-form-field>
<input matInput [matDatepicker]="beginDateDp" [(ngModel)]="beginDate2" name="beginDate2" disabled>
<mat-datepicker-toggle matSuffix [for]="beginDateDp"></mat-datepicker-toggle>
<mat-datepicker #beginDateDp disabled="false"></mat-datepicker>
</mat-form-field> -->
<mat-form-field>
<input matInput [matDatepicker]="beginDateDp" [(ngModel)]="beginDate" name="beginDate" disabled>
<mat-datepicker-toggle matSuffix [for]="beginDateDp"></mat-datepicker-toggle>
@@ -67,7 +63,6 @@
</button>
</mat-form-field>
<mat-form-field>
<input matInput placeholder="Count of jumps" [(ngModel)]="countOfJumps" name="countOfJumps">
<button mat-button *ngIf="countOfJumps" matSuffix mat-icon-button aria-label="Clear" (click)="countOfJumps=''">