From 345b90c2e1897369282a9d587fb923d35d077dbf Mon Sep 17 00:00:00 2001 From: Tykayn Date: Tue, 18 May 2021 12:27:26 +0200 Subject: [PATCH] indiquer le jour de la semaine avec les choix de date --- src/app/core/services/storage.service.ts | 5 +++-- .../form/date/list/day/day-list.component.html | 10 ++++++++-- .../form/date/list/day/day-list.component.scss | 3 +++ .../form/date/list/day/day-list.component.ts | 5 +++++ src/styles/partials/_forms.scss | 8 ++++++++ 5 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/app/core/services/storage.service.ts b/src/app/core/services/storage.service.ts index 1505fde1..d8ddcdd5 100644 --- a/src/app/core/services/storage.service.ts +++ b/src/app/core/services/storage.service.ts @@ -10,6 +10,7 @@ import { environment } from '../../../environments/environment'; import { basicSlicesOfDay, DateChoice, + defaultTimeOfDay, moreTimeOfDay, otherDefaultDates, TimeSlices, @@ -35,13 +36,13 @@ export class StorageService { public dateChoices: DateChoice[] = []; @LocalStorage() - public timeSlices: TimeSlices[]; + public timeSlices: TimeSlices[] = defaultTimeOfDay; @LocalStorage() public vote_stack: Stack = new Stack(); @LocalStorage() - public choices: Choice[]; + public choices: Choice[] = []; constructor(public dateUtilities: DateUtilitiesService) { if (environment.autofill) { diff --git a/src/app/features/administration/form/date/list/day/day-list.component.html b/src/app/features/administration/form/date/list/day/day-list.component.html index 5678d2bc..85272a59 100644 --- a/src/app/features/administration/form/date/list/day/day-list.component.html +++ b/src/app/features/administration/form/date/list/day/day-list.component.html @@ -24,8 +24,14 @@

-
- +
+ + {{ choice.date_object | date: 'E':'Europe/Paris':'fr_FR' }}