diff --git a/src/app/features/administration/form/form.component.html b/src/app/features/administration/form/form.component.html
index 300d7312..2844b1f8 100644
--- a/src/app/features/administration/form/form.component.html
+++ b/src/app/features/administration/form/form.component.html
@@ -1,8 +1,8 @@
- Nom de sondage
-
-
-
-
-
- mode de saisie avancée
-
-
-
-
- 300 caractères maximum
+
+
diff --git a/src/app/features/administration/form/step-one/step-one.component.ts b/src/app/features/administration/form/step-one/step-one.component.ts
index 37b76009..1189e3ed 100644
--- a/src/app/features/administration/form/step-one/step-one.component.ts
+++ b/src/app/features/administration/form/step-one/step-one.component.ts
@@ -1,4 +1,6 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, Input, OnInit } from '@angular/core';
+import { FormGroup } from '@angular/forms';
+import { PollService } from '../../../../core/services/poll.service';
@Component({
selector: 'app-step-one',
@@ -6,9 +8,17 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./step-one.component.scss'],
})
export class StepOneComponent implements OnInit {
- constructor() {}
+ constructor(private pollService: PollService) {}
+
+ @Input()
+ step_max: any;
+ @Input()
+ form: FormGroup;
ngOnInit(): void {}
- updateSlug() {}
+ public updateSlug(): void {
+ const newValueFormatted = 'TODO';
+ this.form.patchValue({ slug: this.pollService.makeSlug(this.form.value['custom_url']) });
+ }
}
diff --git a/src/app/features/administration/form/step-three/step-three.component.html b/src/app/features/administration/form/step-three/step-three.component.html
index 18ce914d..ccf44df9 100644
--- a/src/app/features/administration/form/step-three/step-three.component.html
+++ b/src/app/features/administration/form/step-three/step-three.component.html
@@ -1 +1,23 @@
-
step-three works!
+
+
+
+
+
+
+
+
diff --git a/src/app/features/administration/form/step-three/step-three.component.ts b/src/app/features/administration/form/step-three/step-three.component.ts
index dd448514..7798f93e 100644
--- a/src/app/features/administration/form/step-three/step-three.component.ts
+++ b/src/app/features/administration/form/step-three/step-three.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-step-three',
@@ -6,6 +6,10 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./step-three.component.scss'],
})
export class StepThreeComponent implements OnInit {
+ @Input()
+ step_max: any;
+ @Input()
+ form: any;
constructor() {}
ngOnInit(): void {}
diff --git a/src/app/features/administration/form/step-two/step-two.component.html b/src/app/features/administration/form/step-two/step-two.component.html
index 5d58c9dc..320a3c6d 100644
--- a/src/app/features/administration/form/step-two/step-two.component.html
+++ b/src/app/features/administration/form/step-two/step-two.component.html
@@ -1 +1,154 @@
-
step-two works!
+
+
+
+
+
+
+
+ {{ timeList.length }}
+
+
+ {{ 'dates.count_time' | translate }}
+ (pour chaque jour)
+
+
+
+
+
+
+
+
+
+
+
+ {{ dateList.length }}
+
+
+ {{ 'dates.count_dates' | translate }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/features/administration/form/step-two/step-two.component.ts b/src/app/features/administration/form/step-two/step-two.component.ts
index c1b8fbdc..ca14d447 100644
--- a/src/app/features/administration/form/step-two/step-two.component.ts
+++ b/src/app/features/administration/form/step-two/step-two.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-step-two',
@@ -9,4 +9,9 @@ export class StepTwoComponent implements OnInit {
constructor() {}
ngOnInit(): void {}
+ @Input()
+ form: any;
+ @Input()
+ step_max: any;
+ addIntervalOfDates() {}
}
diff --git a/src/assets/i18n/FR.json b/src/assets/i18n/FR.json
index df1c8d17..6038a875 100644
--- a/src/assets/i18n/FR.json
+++ b/src/assets/i18n/FR.json
@@ -33,13 +33,13 @@
"classic": "classique",
"date": "spécial dates"
},
- "choose_title": "Dont le titre sera",
- "choose_title_placeholder": "titre",
+ "choose_title": "Renseignez un nom pour votre sondage",
+ "choose_title_placeholder": "Quel resto ce soir?",
"choices_hint": "Utilisez les flèches haut ⬆️ et bas ⬇️ pour passer d'un choix à un autre",
"name": "Je peux aussi préciser mon nom si je le souhaite",
"name_placeholder": "mon nom",
- "description": "et la description serait",
- "description_placeholder": "description"
+ "description": "Description (facultatif)",
+ "description_placeholder": "ma description"
},
"dates": {
"title": "Config spécialement pour les dates",