diff --git a/src/app/features/administration/administration.module.ts b/src/app/features/administration/administration.module.ts index c83035d6..5a3b196b 100644 --- a/src/app/features/administration/administration.module.ts +++ b/src/app/features/administration/administration.module.ts @@ -17,6 +17,7 @@ import { KindSelectComponent } from './form/kind-select/kind-select.component'; import { BaseConfigComponent } from './form/base-config/base-config.component'; import { AdvancedConfigComponent } from './form/advanced-config/advanced-config.component'; import { CalendarModule } from 'primeng'; +import { DragDropModule } from '@angular/cdk/drag-drop'; @NgModule({ declarations: [ @@ -40,6 +41,7 @@ import { CalendarModule } from 'primeng'; FormsModule, TranslateModule.forChild({ extend: true }), DateValueAccessorModule, + DragDropModule, ], }) export class AdministrationModule {} 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 09e87034..1b4716bf 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 @@ -1,199 +1,215 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
+

{{ 'dates.add_interval' | translate }}

+
+
+ {{ 'dates.interval_propose' | translate }} +
+
+ + +
+
+
+
+ {{ 'dates.interval_span' | translate }} +
+
+ + +
+
+ +
-
- - {{ timeList.length }} - - - {{ 'dates.count_time' | translate }} - (pour chaque jour) - -
-
- - - - -
- - - - - - - - - - - - - - - - - - - -
-
-
- - -
-
- - {{ dateList.length }} - - - {{ 'dates.count_dates' | translate }} - -
-
- -
-
-
- {{ id }}) - - +
+
+ -
-
+ +
+
+
+
+ + {{ timeList.length }} + + + {{ 'dates.count_time' | translate }} + (pour chaque jour) + +
+
+
+
+ -
-
- +
- - -
-
- +
+
+
+
+ + +
+
+ + {{ dateList.length }} + + + {{ 'dates.count_dates' | translate }} + +
+
+ +
+
+

Dates

+
+ {{ id }}) + + + +
+ plage horaire distincte +
+
+ + +
+
+
+
+
+ + + + +
+
+ +
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 29f803f3..9dc786a0 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 @@ -5,4 +5,9 @@ .btn + .btn { margin-left: 1em; } + .is-boxed { + border: 1px solid #ddd; + padding: 1em; + margin: 1em 0; + } } diff --git a/src/app/features/administration/form/form.component.ts b/src/app/features/administration/form/form.component.ts index c8ffb356..93255f31 100644 --- a/src/app/features/administration/form/form.component.ts +++ b/src/app/features/administration/form/form.component.ts @@ -83,7 +83,7 @@ export class FormComponent implements OnInit { allowComments: [true, [Validators.required]], password: [this.uuidService.getUUID(), [Validators.required]], dateCreated: [creationDate, [Validators.required]], - hasSeveralHours: [false, [Validators.required]], + hasSeveralHours: [true, [Validators.required]], hasMaxCountOfAnswers: [true, [Validators.required, Validators.min(1)]], }), startDateInterval: ['', [Validators.required]],