add default content to poll config

This commit is contained in:
Baptiste Lemoine 2019-11-23 15:46:07 +01:00
parent 93f3aa76bd
commit e179be812e
2 changed files with 30 additions and 9 deletions

View File

@ -48,9 +48,9 @@ export class PollConfig {
step = 0; step = 0;
stepMax = 3; stepMax = 3;
pollType = 'classic';// classic or date pollType = 'classic';// classic or date
title = ''; title = 'titre';
description = ''; description = 'ma description';
myName = ''; myName = 'mon pseudo';
// date specific poll, we have the choice to setup different hours (timeList) for all possible dates (dateList), or use the same hours for all dates // date specific poll, we have the choice to setup different hours (timeList) for all possible dates (dateList), or use the same hours for all dates
allowSeveralHours = 'false'; allowSeveralHours = 'false';

View File

@ -1,10 +1,31 @@
<h1 i18n> <h1>
Résumé avant validation Récapitulatif
</h1> </h1>
<section> <h2 class="hero-title">
<div markdown *ngFor="let questions of config.answers"> {{config.title}}
{{questions.id+1}}. {{questions.text}} </h2>
<div class="creation">
créé par
{{config.myName}}
</div> </div>
<div class="description">
<p>
{{config.description}}
</p>
</div>
<section>
<ul>
<li markdown *ngFor="let questions of config.answers">
{{questions.id + 1}}. {{questions.text}}
</li>
</ul>
<button [routerLink]="'/step/answers'" class="btn btn-info">Retour</button> <button [routerLink]="'/step/answers'" class="btn btn-info">Retour</button>
</section> </section>
<button [routerLink]="'/step/end'" class="btn btn--primary" i18n="@@confirm">C'est parfait!</button> <button [routerLink]="'/step/end'" class="btn btn--primary" i18n="@@confirm">C'est parfait!</button>
<div class="back">
<a [routerLink]="'/step/visibility'"
class="btn btn--back">
Retour
</a>
</div>