57 lines
1.6 KiB
HTML
57 lines
1.6 KiB
HTML
<form (ngSubmit)="updateJump()">
|
|
<p>
|
|
<span>Gear : {{ jump.gear.name }} ({{ jump.gear.mainCanopy }})</span>
|
|
</p>
|
|
<p>
|
|
<mat-checkbox
|
|
[(ngModel)]="jump.isSpecial"
|
|
name="isSpecial"
|
|
labelPosition="before"
|
|
>Special jump</mat-checkbox
|
|
>
|
|
</p>
|
|
<p>
|
|
<mat-checkbox
|
|
[(ngModel)]="jump.withCutaway"
|
|
name="withCutaway"
|
|
labelPosition="before"
|
|
>Cutaway</mat-checkbox
|
|
>
|
|
</p>
|
|
<mat-form-field>
|
|
<textarea
|
|
matInput
|
|
placeholder="Comments"
|
|
name="comments"
|
|
[(ngModel)]="jump.notes"
|
|
name="comments"
|
|
type="text"
|
|
></textarea>
|
|
</mat-form-field>
|
|
<p>
|
|
<mat-form-field>
|
|
<mat-label>{{ "NewJump_Equipment" | translate }}</mat-label>
|
|
<mat-select [(value)]="selectedEquipment">
|
|
@for (equipment of listOfEquipment; track equipment) {
|
|
<mat-option [value]="equipment.value">{{
|
|
equipment.viewValue
|
|
}}</mat-option>
|
|
}
|
|
</mat-select>
|
|
<!-- <input
|
|
type="text"
|
|
matInput
|
|
placeholder="equipment"
|
|
name="equipment"
|
|
[(ngModel)]="jump.equipment"
|
|
name="equipment"
|
|
type="text"
|
|
/> -->
|
|
</mat-form-field>
|
|
</p>
|
|
<br />
|
|
@if (editMode) {
|
|
<button mat-raised-button color="accent">Update</button>
|
|
}
|
|
</form>
|