funky-framadate-front/src/app/debugger/debugger.component.html

69 lines
1.2 KiB
HTML
Raw Normal View History

2019-08-10 16:21:12 +02:00
<div class="well debug">
2019-10-24 16:08:56 +02:00
<strong>
<h2 i18n>
infos de debug
</h2>
<span class="demo">
{{"config.demo"|translate}}
</span>
</strong>
<ul>
<li>
étape actuelle {{config.step}} / {{config.stepMax}}
</li>
<li>
formulaire valide : {{formIsValid}}
</li>
<li>
type de formulaire: {{config.pollType}}
</li>
<li>
config:
<pre>
{{config|json}}
</pre>
</li>
</ul>
2019-08-10 16:21:12 +02:00
</div>
<span i18n>
Choix cornélien syncronisé:
</span>
<!-- todo: factoriser les boutons-->
<button
(click)="config.set('pollType' , 'classic')"
[class.active]="config.pollType == 'classic'"
[disabled]="!formIsValid"
2019-10-16 21:33:49 +02:00
class="btn btn--primary next"
2019-08-10 16:21:12 +02:00
>
<span i18n>
sondage classique
</span>
<span *ngIf="config.pollType == 'classic'">
2019-08-10 16:21:12 +02:00
[x]
</span>
</button>
<button
(click)="selectOption('pollType' ,'dates')"
[class.active]="config.pollType == 'dates'"
[disabled]="!formIsValid"
2019-10-16 21:33:49 +02:00
class="btn btn--primary next"
2019-08-10 16:21:12 +02:00
>
<span i18n>
sondage spécial date
</span>
<span *ngIf="config.pollType == 'dates'">
2019-08-10 16:21:12 +02:00
[x]
</span>
</button>
<button
2019-10-16 21:33:49 +02:00
class="btn btn--primary"
i18n
(click)="config.sendForm()"
>
2019-10-24 16:08:56 +02:00
Envoyer le formulaire
2019-08-10 16:21:12 +02:00
</button>