From 82910a9aae0750c80b87a04bd1c6e6634e68f05b Mon Sep 17 00:00:00 2001 From: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net> Date: Fri, 6 Nov 2020 16:15:42 +0100 Subject: [PATCH] :zap: more settings for admin form with time and answers groups --- .../administration/administration.module.ts | 2 + .../administration/form/form.component.html | 124 +++++++++++++++++- .../administration/form/form.component.ts | 100 ++++++++++---- .../old-stuff/config/DateUtilities.ts | 14 +- 4 files changed, 209 insertions(+), 31 deletions(-) diff --git a/src/app/features/administration/administration.module.ts b/src/app/features/administration/administration.module.ts index 7b7d9361..051ead96 100644 --- a/src/app/features/administration/administration.module.ts +++ b/src/app/features/administration/administration.module.ts @@ -9,6 +9,7 @@ import { AdministrationComponent } from './administration.component'; import { StepperComponent } from './stepper/stepper.component'; import { NamingComponent } from './naming/naming.component'; import { FormComponent } from './form/form.component'; +import { DateValueAccessorModule } from 'angular-date-value-accessor'; @NgModule({ declarations: [AdministrationComponent, StepperComponent, NamingComponent, FormComponent], @@ -18,6 +19,7 @@ import { FormComponent } from './form/form.component'; ReactiveFormsModule, SharedModule, TranslateModule.forChild({ extend: true }), + DateValueAccessorModule, ], }) export class AdministrationModule {} diff --git a/src/app/features/administration/form/form.component.html b/src/app/features/administration/form/form.component.html index ed0098b8..6ae4068d 100644 --- a/src/app/features/administration/form/form.component.html +++ b/src/app/features/administration/form/form.component.html @@ -7,6 +7,105 @@ Tout réinitialiser + +
+ le formulaire est invalide +
+
+
+ + {{ timeList.length }} + + + {{ 'dates.count_time' | translate }} + (pour chaque jour) + +
+
+ + + +
+ +
+
+ + + +
+
+
+ + {{ dateList.length }} + + + {{ 'dates.count_dates' | translate }} + + +
+ {{ id }}) + + + +
+
+ + +
+
+
+
+
@@ -77,13 +176,24 @@

{{ 'dates.add_interval' | translate }}

-

- {{ 'dates.interval_propose' | translate }} - - {{ 'dates.interval_span' | translate }} - -
-

+
+
+ {{ 'dates.interval_propose' | translate }} +
+
+ + +
+
+
+
+ {{ 'dates.interval_span' | translate }} +
+
+ + +
+