forked from tykayn/funky-framadate-front
place on steps, success button on creation button
Signed-off-by: tykayn <15d65f2f-0b14-4f70-bf34-e130180ed62b@users.tedomum.net>
This commit is contained in:
parent
83b66d9899
commit
a1d58a2812
@ -1,9 +1,14 @@
|
||||
<app-stepper [step_current]="5" [step_max]="pollService.step_max"></app-stepper>
|
||||
<app-errors-list [form]="pollService.form"></app-errors-list>
|
||||
<!--<app-success [poll]="pollService.form.value"></app-success>-->
|
||||
|
||||
<section class="supplement container">
|
||||
<div class="step">
|
||||
<div class="min-height">
|
||||
<section class="supplement">
|
||||
<app-stepper [step_current]="5" [step_max]="pollService.step_max"></app-stepper>
|
||||
<app-errors-list [form]="pollService.form"></app-errors-list>
|
||||
<fieldset class="advanced-config">
|
||||
<div class="has-background-danger" *ngIf="!pollService.form.valid">
|
||||
le formulaire est invalide
|
||||
<pre> {{ pollService.form.errors | json }}</pre>
|
||||
</div>
|
||||
|
||||
<button
|
||||
class="button is-unchecked-info"
|
||||
[ngClass]="{ 'is-info': !advancedDisplayEnabled, 'is-primary': advancedDisplayEnabled }"
|
||||
@ -29,16 +34,10 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn--warning" (click)="askInitFormDefault()">
|
||||
<i class="fa fa-refresh"></i>
|
||||
Tout réinitialiser
|
||||
</button>
|
||||
|
||||
<div class="well">
|
||||
{{ pollService.form.value.custom_url }}
|
||||
<!-- <button class="btn btn--warning" (click)="askInitFormDefault()">-->
|
||||
<!-- <i class="fa fa-refresh"></i>-->
|
||||
<!-- Tout réinitialiser-->
|
||||
<!-- </button>-->
|
||||
</section>
|
||||
</div>
|
||||
<div class="has-background-danger" *ngIf="!pollService.form.valid">
|
||||
le formulaire est invalide
|
||||
<pre> {{ pollService.form.errors | json }}</pre>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
@ -0,0 +1,3 @@
|
||||
.advanced-config {
|
||||
margin-bottom: 2em;
|
||||
}
|
@ -38,7 +38,9 @@
|
||||
<div class="list-datechoices" *ngIf="pollService.form.value.isAboutDate">
|
||||
<ul *ngFor="let choice of pollService.dateChoiceList">
|
||||
<li>
|
||||
{{ choice.date_object | date: 'E d M yyy':'Europe/Paris':'fr_FR' }}
|
||||
<span class="date">
|
||||
{{ choice.date_object | date: 'E d/M/yyy':'Europe/Paris':'fr_FR' }}
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -78,17 +80,23 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<button class="button is-secondary is-fullwidth" [routerLink]="['/administration/step/6']">
|
||||
précédent
|
||||
</button>
|
||||
</div>
|
||||
<div class="column">
|
||||
<button class="btn is-primary is-fullwidth" (click)="createPoll()" [disabled]="!pollService.form.valid">
|
||||
<button
|
||||
class="button is-finish is-fullwidth"
|
||||
(click)="createPoll()"
|
||||
[disabled]="!pollService.form.valid"
|
||||
>
|
||||
<i class="fa fa-save"></i>
|
||||
Enregistrer le sondage
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="step-container min-height">
|
||||
<app-stepper [step_current]="6" [step_max]="pollService.step_max"></app-stepper>
|
||||
<div class="">
|
||||
<div class="min-height">
|
||||
<form action="#" [formGroup]="pollService.form">
|
||||
<h2 class="title is-2">
|
||||
Dites à vos participants qui vous êtes !
|
||||
|
Loading…
Reference in New Issue
Block a user