From 43dda7d31a61d4c788a62c70205eae254bd47cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Andr=C3=A9?= Date: Wed, 4 Dec 2019 10:14:43 +0100 Subject: [PATCH] Fix sur le formulaire d'ajout de DZ --- .../src/app/new-drop-zone/new-drop-zone.component.css | 4 ++++ .../src/app/new-drop-zone/new-drop-zone.component.html | 2 +- .../src/app/new-drop-zone/new-drop-zone.component.ts | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.css b/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.css index e347887..2a612fa 100644 --- a/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.css +++ b/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.css @@ -10,3 +10,7 @@ input[type="text"] { input[type="email"] { width: 200px; } + +textarea { + width: 200px; +} diff --git a/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.html b/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.html index e22536f..b876990 100644 --- a/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.html +++ b/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.html @@ -9,7 +9,7 @@
-
diff --git a/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.ts b/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.ts index 601c311..0f6d067 100644 --- a/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.ts +++ b/Front/skydivelogs-app/src/app/new-drop-zone/new-drop-zone.component.ts @@ -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) }); }