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 978c5a1b..6ebedc37 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 @@ -41,27 +41,34 @@
+ +
+ + Chaque jour aura ses plages de temps personnalisées + + + Tous les jours auront les mêmes plages de temps + +
-
- -
-
+
+
-
-
- - {{ timeList.length }} - +
+

{{ 'dates.count_time' | translate }} (identique pour chaque jour) +

+
+ + {{ timeList.length }} +
+

Dates

{{ id }}) diff --git a/src/app/features/administration/form/date-select/date-select.component.scss b/src/app/features/administration/form/date-select/date-select.component.scss index 3038c94b..079527fa 100644 --- a/src/app/features/administration/form/date-select/date-select.component.scss +++ b/src/app/features/administration/form/date-select/date-select.component.scss @@ -1,4 +1,16 @@ :host { + .time-choice { + background: rgba(255, 255, 255, 0.8); + border: solid 1px #dedede; + padding: 0.5em; + //padding: 20px 10px; + border-bottom: solid 1px #ccc; + color: rgba(0, 0, 0, 0.87); + box-sizing: border-box; + cursor: move; + background: white; + font-size: 14px; + } .btn i + span { margin-left: 1ch; } @@ -17,13 +29,14 @@ box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12); border: 2px solid #ccc; + background: rgba(255, 255, 255, 0.8); } .cdk-drag-placeholder { * { opacity: 0; } - background: #ccc; + background: #dedede; } .cdk-drag-animating { diff --git a/src/app/features/administration/form/date-select/date-select.component.ts b/src/app/features/administration/form/date-select/date-select.component.ts index e92cd427..4ed63371 100644 --- a/src/app/features/administration/form/date-select/date-select.component.ts +++ b/src/app/features/administration/form/date-select/date-select.component.ts @@ -142,8 +142,6 @@ export class DateSelectComponent implements OnInit { addTimeToDate(config: any, id: number) { this.timeList.push({ literal: '', - timeList: [], - date_object: new Date(), }); const selector = '[ng-reflect-choice_label="dateTime_' + id + '_Choices_' + (this.timeList.length - 1) + '"]'; // this.cd.detectChanges();