From f4be6ed39db709b369a1d8bf01ef668bcf138b27 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 8 Nov 2021 10:56:03 +0100 Subject: [PATCH] add text in footer --- .../components/footer/footer.component.html | 28 +++++++++++++++++++ .../components/footer/footer.component.ts | 4 +++ src/app/core/services/poll.service.ts | 11 ++++++++ .../steps/step-four/step-four.component.html | 4 +-- .../steps/step-four/step-four.component.ts | 2 +- 5 files changed, 46 insertions(+), 3 deletions(-) diff --git a/src/app/core/components/footer/footer.component.html b/src/app/core/components/footer/footer.component.html index f99f13ca..f14363f7 100644 --- a/src/app/core/components/footer/footer.component.html +++ b/src/app/core/components/footer/footer.component.html @@ -26,5 +26,33 @@ canal Matrix

+
+
+
+

Framasoft

+ L’association,Notre charte,Contacter Framasoft,Statistiques,État des services +
+
+

Communauté

+ Framacolibri,Participer,Bénévolat valorisé,Partenaires,Charte de modération +
+
+

Framadate

+ Entraide,Guides et astuces,Mentions légales,CGU,Crédits +
+
+
+ + + +
+
+
+
diff --git a/src/app/core/components/footer/footer.component.ts b/src/app/core/components/footer/footer.component.ts index 363b479c..ff7db39f 100644 --- a/src/app/core/components/footer/footer.component.ts +++ b/src/app/core/components/footer/footer.component.ts @@ -11,4 +11,8 @@ export class FooterComponent implements OnInit { constructor() {} ngOnInit(): void {} + + subscribeToNewsletter() { + alert('TODO'); + } } diff --git a/src/app/core/services/poll.service.ts b/src/app/core/services/poll.service.ts index faa691e0..333dcca7 100644 --- a/src/app/core/services/poll.service.ts +++ b/src/app/core/services/poll.service.ts @@ -491,6 +491,17 @@ export class PollService implements Resolve { return list; } + getParticipationUrl() { + let poll = this._poll.getValue(); + + // http://localhost:4200/#/poll/dessin-anime/consultation + + // TODO handle secure access + // http://localhost:4200/#/poll/citron/consultation/secure/1c01ed9c94fc640a1be864f197ff808c + + return window.location.host + '/#/poll/' + poll.custom_url + '/consultation'; + } + convertCalendarDatesToChoices(array_dates) { return array_dates; } 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 849c5996..89bd173a 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 @@ -53,13 +53,13 @@ - +
Nombre de jours avant expiration diff --git a/src/app/features/administration/form/steps/step-four/step-four.component.ts b/src/app/features/administration/form/steps/step-four/step-four.component.ts index 423e67b4..0d29cf10 100644 --- a/src/app/features/administration/form/steps/step-four/step-four.component.ts +++ b/src/app/features/administration/form/steps/step-four/step-four.component.ts @@ -8,7 +8,7 @@ import { PollService } from '../../../../../core/services/poll.service'; }) export class StepFourComponent implements OnInit { urlPrefix: any; - advancedDisplayEnabled: any; + advancedDisplayEnabled: boolean = true; @Input() step_max: any; @Input()