diff --git a/src/app/core/services/poll.service.ts b/src/app/core/services/poll.service.ts index 0763ba8a..0d40e11c 100644 --- a/src/app/core/services/poll.service.ts +++ b/src/app/core/services/poll.service.ts @@ -49,7 +49,8 @@ export class PollService implements Resolve { public showDateInterval = false; public allowSeveralHours = false; public richTextMode = false; - public mode_calendar = true; + // public mode_calendar = true; + public mode_calendar = false; public calendar: Date[] = [new Date()]; public disabled_dates: Date[] = []; @@ -731,6 +732,10 @@ export class PollService implements Resolve { * convertir les dates de la propriété Calendar en objets de saisie de texte */ convertCalendarToText() { + console.log('this.dateChoiceList', this.dateChoiceList); + // if(!this.dateChoiceList.length){ + // return []; + // } let converted = []; for (let someDate of this.calendar) { converted.push(this.DateUtilitiesService.convertDateToDateChoiceObject(someDate)); 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 07a6f613..d554aaa6 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 @@ -8,20 +8,11 @@ >
- - - - - -
{{ 'dates.format_helper' | translate }} -
-
- -
+ + + + + + +
diff --git a/src/styles/partials/_datepicker.scss b/src/styles/partials/_datepicker.scss index b0924c07..15df4bb0 100644 --- a/src/styles/partials/_datepicker.scss +++ b/src/styles/partials/_datepicker.scss @@ -89,7 +89,7 @@ p-calendar, .p-datepicker-calendar { td { - width: $cell-size-datepicker-small; + width: $cell-size-datepicker; padding: 0.15rem 0.25rem; } @@ -97,8 +97,8 @@ p-calendar, .p-ripple { margin: 0; padding: 0.25em; - width: $cell-size-datepicker-small; - height: $cell-size-datepicker-small; + width: $cell-size-datepicker; + height: $cell-size-datepicker; transition: all ease 0.5s; background: $white; border: solid 1px $primary_color; diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 60432caf..08b1c3f0 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -85,6 +85,7 @@ $home-nav-height-small: 3.5rem; // datepicker $cell-size-datepicker-small: 30px; $cell-size-datepicker-desktop: 40px; +$cell-size-datepicker: 50px; // css vars :root {