real example of config
This commit is contained in:
parent
d5f71504dc
commit
c048c35b9d
|
@ -4,27 +4,34 @@
|
||||||
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>
|
||||||
Choix cornélien:
|
Choix cornélien:
|
||||||
</span>
|
</span>
|
||||||
<!-- todo: factoriser les boutons-->
|
<!-- todo: factoriser les boutons-->
|
||||||
<button
|
<button
|
||||||
(click)="selectOption('poll_type' , 'classic')"
|
(click)="selectOption('poll_type' , 'classic')"
|
||||||
[class.active]="pollConfig.type_classic"
|
[class.active]="pollConfig.type_classic"
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue