Évolution des formulaires d'ajout

This commit is contained in:
Sébastien André
2019-12-03 16:44:44 +01:00
parent b1613ab15b
commit 0373a2d5af
13 changed files with 138 additions and 9 deletions

View File

@@ -1 +1,23 @@
<p>new-drop-zone works!</p>
<form [formGroup]="addForm" (ngSubmit)="onSubmit(addForm.value)">
<div>
<label for="dzName">Dropzone name</label>
<input id="dzName" type="text" formControlName="dzName">
</div>
<div>
<label for="gps">GPS</label>
<input id="gps" type="text" formControlName="gps">
</div>
<div>
<label for="address">Address</label>
<textarea id="address" type="text" formControlName="address" placeholder="Address of the DZ">
</div>
<div>
<label for="contactMail">Mail of contact</label>
<input id="contactMail" type="email" formControlName="contactMail">
</div>
<div>
<label for="type">DZ or/and tunnel</label>
<input id="type" type="text" formControlName="type">
</div>
<button class="button" type="submit">Add</button>
</form>