real example of config

This commit is contained in:
tykayn 2019-08-10 11:06:13 +02:00
parent d5f71504dc
commit c048c35b9d
2 changed files with 98 additions and 88 deletions

View File

@ -4,21 +4,28 @@
titre de question titre de question
</h2> </h2>
<span class="pre-selector" i18n> <span class="pre-selector" i18n>
Je veux créer un sondage
blah blah
</span> </span>
<select id="selector" name="selector"> <select id="selector" name="selector" [(ngModel)]="pollConfig.poll_type">
<option value="yes"> <option value="dates">
oui spécial dates
</option> </option>
<option value="no"> <option value="classic">
non classique
</option> </option>
</select> </select>
<span class="post-selector"> <span class="post-selector">
blah blah blah.
</span> </span>
<hr>
<label for="poll_title" class="title-label" i18n>
Dont le titre sera
</label>
<input type="text" id="poll_title" name="poll_title" [(ngModel)]="pollConfig.title">
<label for="poll_description" class="title-label" i18n>
et la description serait
</label>
<input type="text" id="poll_description" name="poll_description" [(ngModel)]="pollConfig.description" max="1000">
<hr> <hr>
<span i18n> <span i18n>

View File

@ -14,8 +14,11 @@ import {ProgressionService} from '../progression.service';
*/ */
export class FormContainerComponent implements OnInit { export class FormContainerComponent implements OnInit {
// todo make a class in the config folder of this
private pollConfig: any = { private pollConfig: any = {
poll_type: 'classic', poll_type: 'classic',
title: '',
description: '',
allow_stuff: true, allow_stuff: true,
}; };
private progressionStep = 0; private progressionStep = 0;