Ajout d'un champs "Commentaires" lors de l'ajoute de sauts

This commit is contained in:
Sébastien André
2021-02-26 15:06:26 +01:00
parent 6166551927
commit 426dcec7d9
4 changed files with 30 additions and 25 deletions

View File

@@ -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>