Fix sur le formulaire d'ajout de DZ
This commit is contained in:
@@ -10,3 +10,7 @@ input[type="text"] {
|
|||||||
input[type="email"] {
|
input[type="email"] {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="address">Address</label>
|
<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>
|
||||||
<div>
|
<div>
|
||||||
<label for="contactMail">Mail of contact</label>
|
<label for="contactMail">Mail of contact</label>
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ export class NewDropZoneComponent implements OnInit {
|
|||||||
dzName: new FormControl('', Validators.required),
|
dzName: new FormControl('', Validators.required),
|
||||||
gps: new FormControl('x.x,y.y', Validators.required),
|
gps: new FormControl('x.x,y.y', Validators.required),
|
||||||
address: new FormControl('', Validators.required),
|
address: new FormControl('', Validators.required),
|
||||||
contactMail: new FormControl('tot@toto.fr', Validators.required),
|
contactMail: new FormControl('tot@toto.fr', [Validators.required, Validators.pattern('\\w+@\\w+\.\\w+')]),
|
||||||
type: new FormControl('[dz]', Validators.required)
|
type: new FormControl('dz, tunel', Validators.required)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user