103 lines
2.1 KiB
HTML
103 lines
2.1 KiB
HTML
<form [formGroup]="form">
|
|
<div class="columns">
|
|
<div class="column">
|
|
<p>
|
|
{{ 'creation.choose_title' | translate }}
|
|
</p>
|
|
<h2 class="title is-2">slug: {{ form.value.slug }}</h2>
|
|
<br />
|
|
<label class="hidden" for="title">Titre</label>
|
|
<input
|
|
matInput
|
|
#title
|
|
[placeholder]="'creation.choose_title_placeholder' | translate"
|
|
formControlName="title"
|
|
id="title"
|
|
autofocus="autofocus"
|
|
(change)="updateSlug()"
|
|
required
|
|
/>
|
|
<button
|
|
mat-button
|
|
*ngIf="form.value.title"
|
|
matSuffix
|
|
mat-icon-button
|
|
aria-label="Clear"
|
|
(click)="form.patchValue({ title: '' })"
|
|
>
|
|
<i class="fa fa-close"></i>
|
|
</button>
|
|
</div>
|
|
<div class="column">
|
|
<label for="creatorPseudo">
|
|
<span>
|
|
{{ 'creation.email' | translate }}
|
|
</span>
|
|
</label>
|
|
|
|
<input
|
|
#creatorEmail
|
|
matInput
|
|
placeholder="{{ 'creation.email_placeholder' | translate }}"
|
|
formControlName="creatorEmail"
|
|
id="creatorEmail"
|
|
required
|
|
/>
|
|
<br />
|
|
|
|
<label class="" for="creatorEmail">
|
|
<span>
|
|
{{ 'creation.name' | translate }}
|
|
</span>
|
|
</label>
|
|
<input
|
|
#creatorPseudo
|
|
matInput
|
|
placeholder="pseudo"
|
|
formControlName="creatorPseudo"
|
|
id="creatorPseudo"
|
|
required
|
|
/>
|
|
</div>
|
|
|
|
<hr />
|
|
</div>
|
|
|
|
<hr />
|
|
<div class="columns">
|
|
<div class="column">
|
|
<img src="assets/img/undraw_Moving_twwf.svg" alt="image WIP" />
|
|
<div>
|
|
<h2>
|
|
{{ 'choices.title' | translate }}
|
|
</h2>
|
|
{{ 'dates.add' | translate }}
|
|
<p>
|
|
<i>
|
|
{{ 'choices.helper' | translate }}
|
|
</i>
|
|
</p>
|
|
{{ 'choices.answer_preset_1' | translate }}
|
|
{{ 'choices.add' | translate }}
|
|
{{ 'choices.continue' | translate }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="column">
|
|
<button class="btn btn--warning" (click)="askInitFormDefault()">
|
|
<i class="fa fa-refresh"></i>
|
|
Tout réinitialiser
|
|
</button>
|
|
<br />
|
|
<button class="btn is-success" (click)="createPoll()">
|
|
<i class="fa fa-save"></i>
|
|
Enregistrer le sondage
|
|
</button>
|
|
<br />
|
|
<button class="btn is-default" (click)="automaticSlug()">
|
|
<i class="fa fa-refresh"></i>
|
|
Slug automatique
|
|
</button>
|
|
</div>
|
|
</form>
|