From c0ca623885d923c873c7d5796f1f687dfa148f8e Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 3 May 2021 15:19:06 +0200 Subject: [PATCH] same time span for every day by default, clean config --- .../date-select/date-select.component.html | 11 ++--- .../administration/form/form.component.html | 48 ++++++++----------- .../administration/form/form.component.ts | 4 +- .../stepper/stepper.component.html | 12 ++--- 4 files changed, 33 insertions(+), 42 deletions(-) diff --git a/src/app/features/administration/form/date-select/date-select.component.html b/src/app/features/administration/form/date-select/date-select.component.html index 48e8753b..f4a2655c 100644 --- a/src/app/features/administration/form/date-select/date-select.component.html +++ b/src/app/features/administration/form/date-select/date-select.component.html @@ -57,15 +57,12 @@
diff --git a/src/app/features/administration/form/form.component.html b/src/app/features/administration/form/form.component.html index 0e9442fc..df8b1ce7 100644 --- a/src/app/features/administration/form/form.component.html +++ b/src/app/features/administration/form/form.component.html @@ -20,34 +20,28 @@

{{ 'creation.want' | translate }}

-
- - -
-
- - + + + + + + + + + + - - -
diff --git a/src/app/features/administration/form/form.component.ts b/src/app/features/administration/form/form.component.ts index c965cb69..05cd56a1 100644 --- a/src/app/features/administration/form/form.component.ts +++ b/src/app/features/administration/form/form.component.ts @@ -89,7 +89,7 @@ export class FormComponent implements OnInit { allowComments: [true, [Validators.required]], password: [this.pollUtilitiesService.makeUuid(), [Validators.required]], dateCreated: [creationDate, [Validators.required]], - hasSeveralHours: [true, [Validators.required]], + hasSeveralHours: [false, [Validators.required]], hasMaxCountOfAnswers: [true, [Validators.required, Validators.min(1)]], startDateInterval: ['', [Validators.required]], endDateInterval: ['', [Validators.required]], @@ -118,7 +118,7 @@ export class FormComponent implements OnInit { creatorPseudo: 'Chuck Norris', creatorEmail: 'chucknorris@example.com', isAboutDate: true, - // hasSeveralHours: true, + hasSeveralHours: false, kind: 'date', password: '', whoCanChangeAnswers: 'everybody', diff --git a/src/app/features/administration/stepper/stepper.component.html b/src/app/features/administration/stepper/stepper.component.html index 7eb0f8c7..00d5d761 100644 --- a/src/app/features/administration/stepper/stepper.component.html +++ b/src/app/features/administration/stepper/stepper.component.html @@ -72,22 +72,22 @@ - + Les participants pourront consulter les résultats - + Les choix possibles concerneront des dates - + Le sondage sera protégé par un mot de passe - + Vous recevrez un mail à chaque nouvelle participation - + Vous recevrez un mail à chaque nouveau commentaire - + La réponse « peut-être » sera disponible