From f1403fe2a0c45382a471f3ada0ed86162c2dd858 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Tue, 30 Nov 2021 18:01:18 +0100 Subject: [PATCH] hide time slices per day select, colors --- src/app/core/services/poll.service.ts | 2 +- .../steps/step-four/step-four.component.html | 99 +++++++++---------- .../steps/step-four/step-four.component.ts | 5 +- .../steps/step-one/step-one.component.html | 2 +- .../form/steps/step-one/step-one.component.ts | 4 +- .../steps/step-six/step-six.component.html | 6 +- .../step-three/step-three.component.html | 6 +- .../steps/step-two/step-two.component.html | 12 ++- .../form/steps/step-two/step-two.component.ts | 1 + .../feedback/feedback.component.scss | 2 +- src/environments/environment.ts | 1 + src/styles/partials/_responsive.scss | 2 +- 12 files changed, 76 insertions(+), 66 deletions(-) diff --git a/src/app/core/services/poll.service.ts b/src/app/core/services/poll.service.ts index f1788d59..fea84371 100644 --- a/src/app/core/services/poll.service.ts +++ b/src/app/core/services/poll.service.ts @@ -140,7 +140,7 @@ export class PollService implements Resolve { hasMaxCountOfAnswers: [300, [Validators.required]], useVoterUniqueLink: [false, [Validators.required]], voterEmailList: ['', []], - hasSeveralHours: [false, []], + hasSeveralHours: [true, []], hideResults: [false, []], allowNewDateTime: [true, [Validators.required]], }); diff --git a/src/app/features/administration/form/steps/step-four/step-four.component.html b/src/app/features/administration/form/steps/step-four/step-four.component.html index 28b55e53..d7bdc4c0 100644 --- a/src/app/features/administration/form/steps/step-four/step-four.component.html +++ b/src/app/features/administration/form/steps/step-four/step-four.component.html @@ -2,61 +2,55 @@
-

- Choisissez les horaires -

-
-
- {{ dayChoice.date_object | date }} + +
+

+ Choisissez les horaires +

+
+
+ {{ dayChoice.date_object | date }} +
+ +
+
+ + + +
+
+ +
+
- -
-
- - - -
-
- -
-
-
- -
+ + + +

Choisissez les horaires ou options à appliquer à toutes les dates

- -
+

Propositions de créneaux horaires

+
+ @@ -124,11 +127,7 @@
-
diff --git a/src/app/features/administration/form/steps/step-four/step-four.component.ts b/src/app/features/administration/form/steps/step-four/step-four.component.ts index df08b879..01aae011 100644 --- a/src/app/features/administration/form/steps/step-four/step-four.component.ts +++ b/src/app/features/administration/form/steps/step-four/step-four.component.ts @@ -14,8 +14,9 @@ import { ToastService } from '../../../../../core/services/toast.service'; styleUrls: ['./step-four.component.scss'], }) export class StepFourComponent implements OnInit { - urlPrefix: any; - advancedDisplayEnabled: boolean = environment.advanced_options_display; + public urlPrefix: any; + public environment = environment; + public advancedDisplayEnabled: boolean = environment.advanced_options_display; @Input() step_max: any; @Input() diff --git a/src/app/features/administration/form/steps/step-one/step-one.component.html b/src/app/features/administration/form/steps/step-one/step-one.component.html index 837753d4..e7a5e19e 100644 --- a/src/app/features/administration/form/steps/step-one/step-one.component.html +++ b/src/app/features/administration/form/steps/step-one/step-one.component.html @@ -1,6 +1,6 @@
- +

{{ 'creation.choose_title' | translate }} diff --git a/src/app/features/administration/form/steps/step-one/step-one.component.ts b/src/app/features/administration/form/steps/step-one/step-one.component.ts index 731cc56d..8b295c71 100644 --- a/src/app/features/administration/form/steps/step-one/step-one.component.ts +++ b/src/app/features/administration/form/steps/step-one/step-one.component.ts @@ -21,7 +21,9 @@ export class StepOneComponent implements OnInit { @Inject(DOCUMENT) private document: any, private router: Router, private confirmationService: ConfirmationService - ) {} + ) { + this.step_max = this.pollService.step_max; + } ngOnInit(): void { this.pollService.step_current = 1; diff --git a/src/app/features/administration/form/steps/step-six/step-six.component.html b/src/app/features/administration/form/steps/step-six/step-six.component.html index 204fc56a..024b7531 100644 --- a/src/app/features/administration/form/steps/step-six/step-six.component.html +++ b/src/app/features/administration/form/steps/step-six/step-six.component.html @@ -22,11 +22,7 @@

-
diff --git a/src/app/features/administration/form/steps/step-three/step-three.component.html b/src/app/features/administration/form/steps/step-three/step-three.component.html index 12a69701..a1140307 100644 --- a/src/app/features/administration/form/steps/step-three/step-three.component.html +++ b/src/app/features/administration/form/steps/step-three/step-three.component.html @@ -2,7 +2,11 @@ -