add text in footer

This commit is contained in:
Tykayn 2021-11-08 10:56:03 +01:00 committed by tykayn
parent 77cc54f2fc
commit f4be6ed39d
5 changed files with 46 additions and 3 deletions

View File

@ -26,5 +26,33 @@
canal Matrix
</a>
</p>
<div>
<div class="columns">
<div class="column">
<h3 class="title is-3">Framasoft</h3>
Lassociation,Notre charte,Contacter Framasoft,Statistiques,État des services
</div>
<div class="column">
<h3 class="title is-3">Communauté</h3>
Framacolibri,Participer,Bénévolat valorisé,Partenaires,Charte de modération
</div>
<div class="column">
<h3 class="title is-3">Framadate</h3>
Entraide,Guides et astuces,Mentions légales,CGU,Crédits
</div>
<div class="column">
<form action="#">
<label for="subscribe_newsletter">
<i class="fa fa-enveloppe"></i>
Inscrivez-vous à la newsletter
</label>
<input type="text" class="input" id="subscribe_newsletter" />
<button class="button is-outlined is-primary" (click)="subscribeToNewsletter()">
S'inscrire
</button>
</form>
</div>
</div>
</div>
</div>
</footer>

View File

@ -11,4 +11,8 @@ export class FooterComponent implements OnInit {
constructor() {}
ngOnInit(): void {}
subscribeToNewsletter() {
alert('TODO');
}
}

View File

@ -491,6 +491,17 @@ export class PollService implements Resolve<Poll> {
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;
}

View File

@ -53,13 +53,13 @@
<button
mat-button
*ngIf="form.controls.custom_url.value"
*ngIf="pollService.form.controls.custom_url.value"
matSuffix
mat-icon-button
aria-label="Clear"
(click)="slug.value = ''"
></button>
<input #slug matInput id="slug" placeholder="Url" formControlName="slug" required />
<input #slug matInput id="custom_url" placeholder="Url" formControlName="custom_url" required />
<br />
<div appearance="outline" class="is-not-flex">
<mat-label>Nombre de jours avant expiration</mat-label>

View File

@ -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()