From dba514dd4620973b6a9df8b74f3eb25570ffa31c Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 22 Nov 2021 15:56:43 +0100 Subject: [PATCH] retake of hour selections from step 3 to step 4 --- .../components/footer/footer.component.scss | 5 ++ .../core/services/date.utilities.service.ts | 3 +- .../steps/step-four/step-four.component.html | 43 +++++++++++- .../step-three/step-three.component.html | 69 ------------------- .../step-three/step-three.component.scss | 4 +- src/environments/environment.ts | 1 + 6 files changed, 52 insertions(+), 73 deletions(-) diff --git a/src/app/core/components/footer/footer.component.scss b/src/app/core/components/footer/footer.component.scss index d67d5c66..f09a6cfd 100644 --- a/src/app/core/components/footer/footer.component.scss +++ b/src/app/core/components/footer/footer.component.scss @@ -2,3 +2,8 @@ max-width: 5em; max-height: 5em; } +.main-footer { + a { + color: #fff; + } +} diff --git a/src/app/core/services/date.utilities.service.ts b/src/app/core/services/date.utilities.service.ts index 35866766..9f8c9ea5 100644 --- a/src/app/core/services/date.utilities.service.ts +++ b/src/app/core/services/date.utilities.service.ts @@ -1,6 +1,7 @@ import { Injectable } from '@angular/core'; import { defaultTimeOfDay } from '../../../../mocks/old-stuff/config/defaultConfigs'; import { DateChoice } from '../models/dateChoice.model'; +import { environment } from '../../../environments/environment'; @Injectable({ providedIn: 'root', @@ -126,7 +127,7 @@ export class DateUtilitiesService { let input = `${date.getFullYear()}-${date.getMonth() + 1}-${day}`; return { literal: this.formateDateToInputStringNg(date), - timeSlices: Object.create(defaultTimeOfDay), + timeSlices: environment.autofill_default_timeslices ? Object.create(defaultTimeOfDay) : [], date_object: date, date_input: input, }; 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 cb230207..0bc99802 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 @@ -5,7 +5,6 @@

Choisissez les horaires

-
Choisissez les horaires ou options à appliquer à toutes les dates + +
supprimer
+
+ + {{ pollService.timeList.length }} + + + {{ 'dates.count_time' | translate }} + (pour chaque jour) + +
+ +
+
+ + +
+
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 27b4a9f6..12a69701 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 @@ -31,75 +31,6 @@ >
-
-
-
-
- - - - - -
-
- - {{ pollService.timeList.length }} - - - {{ 'dates.count_time' | translate }} - (pour chaque jour) - -
-
-
-
- - - -
-
-
-
-
-