lien entre multiple dates et config

This commit is contained in:
tykayn 2019-08-11 17:10:09 +02:00
parent 56a7271325
commit d941d6bed8
5 changed files with 92 additions and 65 deletions

View File

@ -1,7 +1,6 @@
<div class="well debug">
<strong>
<h2 i18n>
infos de debug
</h2>
@ -30,10 +29,10 @@
</span>
<!-- todo: factoriser les boutons-->
<button
(click)="config.set('pollType' , 'classic')"
[class.active]="config.pollType == 'classic'"
[disabled]="!formIsValid"
class="btn btn-primary next"
(click)="config.set('pollType' , 'classic')"
[class.active]="config.pollType == 'classic'"
[disabled]="!formIsValid"
class="btn btn-primary next"
>
<span i18n>
sondage classique
@ -44,10 +43,10 @@
</button>
<button
(click)="selectOption('pollType' ,'dates')"
[class.active]="config.pollType == 'dates'"
[disabled]="!formIsValid"
class="btn btn-primary next"
(click)="selectOption('pollType' ,'dates')"
[class.active]="config.pollType == 'dates'"
[disabled]="!formIsValid"
class="btn btn-primary next"
>
<span i18n>
sondage spécial date
@ -58,6 +57,10 @@
</button>
<button class="btn" i18n (click)="config.sendForm()">
<button
class="btn"
i18n
(click)="config.sendForm()"
>
Envoyer le formulaire
</button>

View File

@ -1,56 +1,69 @@
<div class="description">
<fieldset>
<router-outlet></router-outlet>
<span class="pre-selector" i18n>
<router-outlet></router-outlet>
<span
class="pre-selector"
i18n
>
Je veux créer un sondage
</span>
<select
id="selector"
name="selector"
[(ngModel)]="config.pollType"
>
<option value="dates">
spécial dates
</option>
<option value="classic">
classique
</option>
</select>
<span class="post-selector">
<select
id="selector"
name="selector"
[(ngModel)]="config.pollType"
>
<option value="dates">
spécial dates
</option>
<option value="classic">
classique
</option>
</select>
<span class="post-selector">
</span>
<hr>
<div>
<hr>
<div>
<label for="poll_title" class="title-label" i18n>
Dont le titre sera
</label>
<input
type="text"
id="poll_title"
name="poll_title"
[(ngModel)]="config.title">
<label
for="poll_title"
class="title-label"
i18n
>
Dont le titre sera
</label>
<input
type="text"
id="poll_title"
name="poll_title"
[(ngModel)]="config.title"
>
</div>
<div>
</div>
<div>
<label for="poll_description" class="title-label" i18n>
et la description serait
</label>
<textarea
id="poll_description"
name="poll_description"
[(ngModel)]="config.description"
cols="50" lines="5"></textarea>
<label
for="poll_description"
class="title-label"
i18n
>
et la description serait
</label>
<textarea
id="poll_description"
name="poll_description"
[(ngModel)]="config.description"
cols="50"
lines="5"
></textarea>
</div>
</div>
<a
[routerLink]="'/step/answers'"
class="btn striked"
i18n="start_form">
C'est parti
</a>
<hr>
</fieldset>
<a
[routerLink]="'/step/answers'"
class="btn striked"
i18n="start_form"
>
C'est parti
</a>
<hr>
</div>

View File

@ -1 +1,2 @@
<p>(progression)</p>
<!--TODO-->

View File

@ -2,10 +2,13 @@
Config spécialement pour les dates
</div>
<div>
<select name="multi_hours" id="multi_hours"
[(ngModel)]="config.allowSeveralHours">
<option value="yes">possiblement différents</option>
<option value="no">identiques</option>
<select
name="multi_hours"
id="multi_hours"
[(ngModel)]="config.allowSeveralHours"
>
<option value="true">possiblement différents</option>
<option value="false">identiques</option>
</select>
<label for="multi_hours">
<span i18n>
@ -17,8 +20,10 @@
</label>
</div>
<button
(click)="addDate()"
i18n>
class="btn btn-primary"
(click)="addDate()"
i18n
>
Ajouter une plage de dates
</button>
<div class="dates-list">
@ -27,9 +32,14 @@
choix de Dates
</span>
<div
*ngFor="let choice of config.dateList"
class="date-choice">
*ngFor="let choice of config.dateList"
class="date-choice"
>
{{choice.text}}
</div>
</div>
<a [routerLink]="'/step/end'" class="btn btn-block">C'est parfait!</a>
<a
[routerLink]="'/step/end'"
class="btn btn-block"
>C'est parfait!
</a>

View File

@ -2,7 +2,7 @@
// form inputs
.funky-box {
// background: $light;
//background: $white;
padding: 1em;
border-radius: 0.25em;
border-bottom: 3px solid $primary_color;