Fix sur le formulaire d'ajout de DZ

This commit is contained in:
Sébastien André
2019-12-04 10:14:43 +01:00
parent 0373a2d5af
commit 43dda7d31a
3 changed files with 7 additions and 3 deletions

View File

@@ -10,3 +10,7 @@ input[type="text"] {
input[type="email"] {
width: 200px;
}
textarea {
width: 200px;
}

View File

@@ -9,7 +9,7 @@
</div>
<div>
<label for="address">Address</label>
<textarea id="address" type="text" formControlName="address" placeholder="Address of the DZ">
<textarea id="address" formControlName="address" placeholder="Address of the DZ"></textarea>
</div>
<div>
<label for="contactMail">Mail of contact</label>

View File

@@ -14,8 +14,8 @@ export class NewDropZoneComponent implements OnInit {
dzName: new FormControl('', Validators.required),
gps: new FormControl('x.x,y.y', Validators.required),
address: new FormControl('', Validators.required),
contactMail: new FormControl('tot@toto.fr', Validators.required),
type: new FormControl('[dz]', Validators.required)
contactMail: new FormControl('tot@toto.fr', [Validators.required, Validators.pattern('\\w+@\\w+\.\\w+')]),
type: new FormControl('dz, tunel', Validators.required)
});
}