|
|
|
@@ -1,12 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
<div class="content">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<button mat-raised-button color="accent" [routerLink]="['/jumps']" [routerLinkActive]="['active']" skipLocationChange>View the jumps</button>
|
|
|
|
<button mat-raised-button color="accent" [routerLink]="['/jumps']" [routerLinkActive]="['active']" skipLocationChange>{{ 'NewJump_GoToJump' | translate }}</button>
|
|
|
|
<p><mat-checkbox [(ngModel)]="resetForm" labelPosition="before">Reset form after adding</mat-checkbox></p>
|
|
|
|
<p><mat-checkbox [(ngModel)]="resetForm" labelPosition="before">{{ 'NewJump_ResetForm' | translate }}</mat-checkbox></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<form class="formNewJumps" (ngSubmit)="onFormSubmit()" *ngIf="notLoadingToDisplay() else loading">
|
|
|
|
<form class="formNewJumps" (ngSubmit)="onFormSubmit()" *ngIf="notLoadingToDisplay() else loading">
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-label>Choose the jump type</mat-label>
|
|
|
|
<mat-label>{{ 'NewJump_ChooseJumpType' | translate }}</mat-label>
|
|
|
|
<input type="text" matInput [matAutocomplete]="autoJumpType" [(ngModel)]="selectedJumpType"
|
|
|
|
<input type="text" matInput [matAutocomplete]="autoJumpType" [(ngModel)]="selectedJumpType"
|
|
|
|
name="selectedJumpType">
|
|
|
|
name="selectedJumpType">
|
|
|
|
<mat-autocomplete #autoJumpType="matAutocomplete" [displayWith]="displayNameFn">
|
|
|
|
<mat-autocomplete #autoJumpType="matAutocomplete" [displayWith]="displayNameFn">
|
|
|
|
@@ -21,7 +21,7 @@
|
|
|
|
</mat-form-field>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-label>Choose the aircraft</mat-label>
|
|
|
|
<mat-label>{{ 'NewJump_ChooseAircraft' | translate }}</mat-label>
|
|
|
|
<input type="text" matInput [matAutocomplete]="autoAircraft" [(ngModel)]="selectedAircraft"
|
|
|
|
<input type="text" matInput [matAutocomplete]="autoAircraft" [(ngModel)]="selectedAircraft"
|
|
|
|
name="selectedAircraft">
|
|
|
|
name="selectedAircraft">
|
|
|
|
<mat-autocomplete #autoAircraft="matAutocomplete" [displayWith]="displayNameFn">
|
|
|
|
<mat-autocomplete #autoAircraft="matAutocomplete" [displayWith]="displayNameFn">
|
|
|
|
@@ -36,7 +36,7 @@
|
|
|
|
</mat-form-field>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-label>Choose the DZ</mat-label>
|
|
|
|
<mat-label>{{ 'NewJump_ChooseDz' | translate }}</mat-label>
|
|
|
|
<input type="text" matInput [matAutocomplete]="autoDropZone" [(ngModel)]="selectedDz"
|
|
|
|
<input type="text" matInput [matAutocomplete]="autoDropZone" [(ngModel)]="selectedDz"
|
|
|
|
(ngModelChange)="onChangeDz($event)" name="selectedDz">
|
|
|
|
(ngModelChange)="onChangeDz($event)" name="selectedDz">
|
|
|
|
<mat-autocomplete #autoDropZone="matAutocomplete" [displayWith]="displayNameFn">
|
|
|
|
<mat-autocomplete #autoDropZone="matAutocomplete" [displayWith]="displayNameFn">
|
|
|
|
@@ -52,7 +52,7 @@
|
|
|
|
</mat-form-field>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-label>Choose the used gear</mat-label>
|
|
|
|
<mat-label>{{ 'NewJump_ChooseGear' | translate }}</mat-label>
|
|
|
|
<input type="text" matInput [matAutocomplete]="autoGear" [(ngModel)]="selectedGear" name="selectedGear">
|
|
|
|
<input type="text" matInput [matAutocomplete]="autoGear" [(ngModel)]="selectedGear" name="selectedGear">
|
|
|
|
<mat-autocomplete #autoGear="matAutocomplete" [displayWith]="displayGearFn">
|
|
|
|
<mat-autocomplete #autoGear="matAutocomplete" [displayWith]="displayGearFn">
|
|
|
|
<mat-option *ngFor="let gear of listOfGear" [value]="gear">
|
|
|
|
<mat-option *ngFor="let gear of listOfGear" [value]="gear">
|
|
|
|
@@ -65,8 +65,8 @@
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</mat-form-field>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
|
|
<mat-checkbox [(ngModel)]="withCutaway" name="withCutaway">With a cutaway ?</mat-checkbox>
|
|
|
|
<mat-checkbox [(ngModel)]="withCutaway" name="withCutaway">{{ 'NewJump_Cutaway' | translate }}</mat-checkbox>
|
|
|
|
<mat-checkbox [(ngModel)]="isSpecial" name="isSpecial">Is a special jump ?</mat-checkbox>
|
|
|
|
<mat-checkbox [(ngModel)]="isSpecial" name="isSpecial">{{ 'NewJump_Special' | translate }}</mat-checkbox>
|
|
|
|
|
|
|
|
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<input matInput [matDatepicker]="beginDateDp" [(ngModel)]="beginDate"
|
|
|
|
<input matInput [matDatepicker]="beginDateDp" [(ngModel)]="beginDate"
|
|
|
|
@@ -82,14 +82,14 @@
|
|
|
|
</mat-form-field>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<input matInput placeholder="Exit altitude" [(ngModel)]="exitAltitude" name="exitAltitude" type="number">
|
|
|
|
<input matInput placeholder="{{ 'NewJump_ExitAlt' | translate }}" [(ngModel)]="exitAltitude" name="exitAltitude" type="number">
|
|
|
|
<button mat-button *ngIf="exitAltitude" matSuffix mat-icon-button aria-label="Clear"
|
|
|
|
<button mat-button *ngIf="exitAltitude" matSuffix mat-icon-button aria-label="Clear"
|
|
|
|
(click)="exitAltitude=undefined">
|
|
|
|
(click)="exitAltitude=undefined">
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</mat-form-field>
|
|
|
|
</mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<input matInput placeholder="Deploy altitude" [(ngModel)]="deployAltitude" name="deployAltitude" type="number">
|
|
|
|
<input matInput placeholder="{{ 'NewJump_DeployAlt' | translate }}" [(ngModel)]="deployAltitude" name="deployAltitude" type="number">
|
|
|
|
<button mat-button *ngIf="deployAltitude" matSuffix mat-icon-button aria-label="Clear"
|
|
|
|
<button mat-button *ngIf="deployAltitude" matSuffix mat-icon-button aria-label="Clear"
|
|
|
|
(click)="deployAltitude=undefined">
|
|
|
|
(click)="deployAltitude=undefined">
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
@@ -97,7 +97,7 @@
|
|
|
|
</mat-form-field>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<input matInput placeholder="Count of jumps" [(ngModel)]="countOfJumps" name="countOfJumps" type="number">
|
|
|
|
<input matInput placeholder="{{ 'NewJump_Count' | translate }}" [(ngModel)]="countOfJumps" name="countOfJumps" type="number">
|
|
|
|
<button mat-button *ngIf="countOfJumps" matSuffix mat-icon-button aria-label="Clear"
|
|
|
|
<button mat-button *ngIf="countOfJumps" matSuffix mat-icon-button aria-label="Clear"
|
|
|
|
(click)="countOfJumps=undefined">
|
|
|
|
(click)="countOfJumps=undefined">
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
@@ -105,7 +105,7 @@
|
|
|
|
</mat-form-field>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-form-field>
|
|
|
|
<textarea matInput placeholder="Comments" [(ngModel)]="comments" name="comments" type="text"></textarea>
|
|
|
|
<textarea matInput placeholder="{{ 'NewJump_Comments' | translate }}" [(ngModel)]="comments" name="comments" type="text"></textarea>
|
|
|
|
<button mat-button *ngIf="comments" matSuffix mat-icon-button aria-label="Clear"
|
|
|
|
<button mat-button *ngIf="comments" matSuffix mat-icon-button aria-label="Clear"
|
|
|
|
(click)="comments=undefined">
|
|
|
|
(click)="comments=undefined">
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
@@ -113,7 +113,7 @@
|
|
|
|
</mat-form-field>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<button mat-raised-button color="accent" *ngIf="isValidatedForm()">Submit</button>
|
|
|
|
<button mat-raised-button color="accent" *ngIf="isValidatedForm()">{{ 'NewJump_Submit' | translate }}</button>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<ng-template #loading>
|
|
|
|
<ng-template #loading>
|
|
|
|
|