diff --git a/src/app/core/services/poll.service.ts b/src/app/core/services/poll.service.ts index de4173b8..e9ab0e1e 100644 --- a/src/app/core/services/poll.service.ts +++ b/src/app/core/services/poll.service.ts @@ -64,8 +64,9 @@ export class PollService implements Resolve { private fb: FormBuilder ) { this.createFormGroup(); - if (environment.autofill) { + if (environment.autofill_creation) { this.setDemoValues(); + this.toastService.display('auto fill de création fait'); } else { this.calendar = [new Date()]; } @@ -381,7 +382,7 @@ export class PollService implements Resolve { } askInitFormDefault(): void { - this.initFormDefault(false); + this.initFormDefault(environment.autofill_creation); this.toastService.display('formulaire réinitialisé'); } diff --git a/src/app/core/services/storage.service.ts b/src/app/core/services/storage.service.ts index c173c8f0..d19c83db 100644 --- a/src/app/core/services/storage.service.ts +++ b/src/app/core/services/storage.service.ts @@ -46,7 +46,7 @@ export class StorageService { public choices: Choice[] = []; constructor(public dateUtilities: DateUtilitiesService, private toastService: ToastService) { - if (environment.autofill) { + if (environment.autofill_participation) { this.toastService.display('autofill des sondages utilisateur'); this.userPolls.push(new Poll(new Owner(), 'Démo: Anniversaire de tonton Patrick', 'aujourdhui-ou-demain')); this.userPolls.push(new Poll(new Owner(), 'Démo: Atelier cuisine du quartier', 'aujourdhui-ou-demain')); @@ -71,7 +71,7 @@ export class StorageService { this.vote_stack = new Stack(); for (const choice of choices_list) { - if (environment.autofill) { + if (environment.autofill_participation) { console.log('autofill au hasard des votes à ce sondage'); this.toastService.display('autofill au hasard des votes à ce sondage'); const defaultvalue = Math.random() > 0.75 ? 'yes' : ''; diff --git a/src/app/features/administration/form/steps/step-four/step-four.component.html b/src/app/features/administration/form/steps/step-four/step-four.component.html index f6ed9b70..a6f649f3 100644 --- a/src/app/features/administration/form/steps/step-four/step-four.component.html +++ b/src/app/features/administration/form/steps/step-four/step-four.component.html @@ -54,12 +54,15 @@
- - +
+ diff --git a/src/app/features/administration/form/steps/step-one/step-one.component.html b/src/app/features/administration/form/steps/step-one/step-one.component.html index 550913b3..a6eb4c74 100644 --- a/src/app/features/administration/form/steps/step-one/step-one.component.html +++ b/src/app/features/administration/form/steps/step-one/step-one.component.html @@ -7,44 +7,32 @@
- +
+ +
- - -
- -
-
- + + - -
+ +
richTextMode activé
@@ -77,7 +65,6 @@
- slug: {{ pollService.form.value.custom_url }}
diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 3f69bd0f..06cc98cd 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -16,7 +16,8 @@ export const environment = { production: true, display_routes: true, showDemoWarning: true, - autofill: false, + autofill_creation: true, + autofill_participation: true, autoSendNewPoll: false, interval_days_default: 7, expiresDaysDelay: 60, diff --git a/src/environments/environment.ts b/src/environments/environment.ts index a8e3fe2a..c52cbea7 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -10,10 +10,11 @@ endpoints.baseHref = apiV1.baseHref; export const environment = { frontDomain: 'http://127.0.0.1:4200', production: false, - display_routes: true, - autofill: true, + display_routes: false, // demo paths to test polls + autofill_creation: true, + autofill_participation: true, // autofill: false, - showDemoWarning: true, + showDemoWarning: false, autoSendNewPoll: false, interval_days_default: 7, expiresDaysDelay: 60, diff --git a/src/styles/partials/_forms.scss b/src/styles/partials/_forms.scss index db1b021a..291955de 100644 --- a/src/styles/partials/_forms.scss +++ b/src/styles/partials/_forms.scss @@ -1,5 +1,14 @@ @charset "UTF-8"; +app-step-one, +app-step-two, +app-step-three, +app-step-four, +app-step-five { + padding: 2em 1em; + display: block; +} + input, select, textarea { @@ -244,15 +253,19 @@ mat-checkbox { .pi-chevron-left:after { content: '<'; } + .pi-chevron-right:after { content: '>'; } + .p-datepicker-month { margin-right: 1em; } + .p-datepicker-weeknumber span { border-right: 1px solid $legend_color; } + .p-datepicker-today span { font-weight: bold; border: solid 1px $legend_color; @@ -262,6 +275,7 @@ mat-checkbox { padding: 1em; width: 3.5em; transition: all ease 0.5s; + &:hover { background: mix($white, $legend_color); color: $white;