Ajout d'un champs "Commentaires" lors de l'ajoute de sauts
This commit is contained in:
@@ -50,14 +50,6 @@
|
||||
</button>
|
||||
</mat-form-field>
|
||||
|
||||
<!-- <div>
|
||||
<label>Float label: </label>
|
||||
<mat-radio-group [(ngModel)]="toto" name="toto">
|
||||
<mat-radio-button value="dz">DZ</mat-radio-button>
|
||||
<mat-radio-button value="tunel">Tunel</mat-radio-button>
|
||||
</mat-radio-group>
|
||||
</div> -->
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>Choose the used gear</mat-label>
|
||||
<input type="text" matInput [matAutocomplete]="autoGear" [(ngModel)]="selectedGear" name="selectedGear">
|
||||
@@ -109,6 +101,14 @@
|
||||
</button>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
<input matInput placeholder="Comments" [(ngModel)]="comments" name="comments" type="text"/>
|
||||
<button mat-button *ngIf="comments" matSuffix mat-icon-button aria-label="Clear"
|
||||
(click)="comments=undefined">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</mat-form-field>
|
||||
|
||||
<br />
|
||||
<button mat-raised-button color="accent" *ngIf="isValidatedForm()">Submit</button>
|
||||
</form>
|
||||
|
||||
@@ -35,6 +35,7 @@ export class NewJumpComponent implements OnInit {
|
||||
listOfGear: Array<GearResp>;
|
||||
private countDatasLoaded: number;
|
||||
private pendingAddRequest: boolean;
|
||||
comments: string;
|
||||
|
||||
constructor(
|
||||
private serviceComm: ServiceComm,
|
||||
@@ -68,7 +69,8 @@ export class NewJumpComponent implements OnInit {
|
||||
this.endDate,
|
||||
this.exitAltitude,
|
||||
this.deployAltitude,
|
||||
this.countOfJumps
|
||||
this.countOfJumps,
|
||||
this.comments
|
||||
);
|
||||
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user