Files
SkydiveLogs/Front/skydivelogs-app/src/app/jump-infos/jump-infos.component.html
T

50 lines
1.4 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"
[disabled]="!editMode"
>Special jump</mat-checkbox
>
</p>
<p>
<mat-checkbox
[(ngModel)]="jump.withCutaway"
name="withCutaway"
labelPosition="before"
[disabled]="!editMode"
>Cutaway</mat-checkbox
>
</p>
<mat-form-field>
<textarea
matInput
placeholder="Comments"
name="comments"
[(ngModel)]="jump.notes"
name="comments"
type="text"
[disabled]="!editMode"
></textarea>
</mat-form-field>
<p>
<mat-form-field>
<mat-label>{{ "NewJump_Equipment" | translate }}</mat-label>
<mat-select [(value)]="jump.equipment" [disabled]="!editMode">
@for (equipment of listOfEquipment; track equipment) {
<mat-option [value]="equipment.value">{{
equipment.viewValue
}}</mat-option>
}
</mat-select>
</mat-form-field>
@if (editMode) {
<button mat-raised-button color="accent">Update</button>
}
</p>
</form>