Possibilité d'éditer un saut (sur 3 infos)
Indication d'un saut est spécial.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="content">
|
||||
<div>
|
||||
<button mat-raised-button color="accent" [routerLink]="['/jumps']" [routerLinkActive]="['active']" skipLocationChange>View the jumps</button>
|
||||
<p><mat-checkbox [(ngModel)]="resetForm" labelPosition="before">Reset form after adding : </mat-checkbox></p>
|
||||
<p><mat-checkbox [(ngModel)]="resetForm" labelPosition="before">Reset form after adding</mat-checkbox></p>
|
||||
</div>
|
||||
<form class="formNewJumps" (ngSubmit)="onFormSubmit()" *ngIf="notLoadingToDisplay() else loading">
|
||||
<mat-form-field>
|
||||
@@ -66,6 +66,7 @@
|
||||
</mat-form-field>
|
||||
|
||||
<mat-checkbox [(ngModel)]="withCutaway" name="withCutaway">With a cutaway ?</mat-checkbox>
|
||||
<mat-checkbox [(ngModel)]="isSpecial" name="isSpecial">Is a special jump ?</mat-checkbox>
|
||||
|
||||
<mat-form-field>
|
||||
<input matInput [matDatepicker]="beginDateDp" [(ngModel)]="beginDate" name="beginDate" disabled (ngModelChange)="onChangeBeginDate($event)">
|
||||
|
||||
@@ -27,6 +27,7 @@ export class NewJumpComponent implements OnInit {
|
||||
public selectedAircraft: AircraftResp;
|
||||
public selectedJumpType: JumpTypeResp;
|
||||
public withCutaway: boolean;
|
||||
public isSpecial: boolean;
|
||||
public listOfJumpType: Array<JumpTypeResp>;
|
||||
public listOfAircraft: Array<AircraftResp>;
|
||||
public listOfFilteredDropZone: Array<DropZoneResp>;
|
||||
@@ -67,7 +68,8 @@ export class NewJumpComponent implements OnInit {
|
||||
this.exitAltitude,
|
||||
this.deployAltitude,
|
||||
this.countOfJumps,
|
||||
this.comments);
|
||||
this.comments,
|
||||
this.isSpecial === undefined ? false : this.isSpecial);
|
||||
|
||||
setTimeout(() => {
|
||||
if (this.resetForm === true) {
|
||||
@@ -143,6 +145,9 @@ export class NewJumpComponent implements OnInit {
|
||||
|
||||
this.listOfFilteredDropZone = this.listOfDropZone;
|
||||
this.comments = undefined;
|
||||
|
||||
this.withCutaway = false;
|
||||
this.isSpecial = false;
|
||||
}
|
||||
|
||||
public displayFn(data?: JumpTypeResp): string | undefined {
|
||||
|
||||
Reference in New Issue
Block a user