2020-05-30 16:33:57 +02:00
|
|
|
<div [ngClass]="{ 'is-success': pollForm.status == 'VALID' }" class="info form-status pull-right debug">
|
2020-05-01 19:10:17 +02:00
|
|
|
<p>Form Status: {{ pollForm.status }}</p>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<form [formGroup]="pollForm" (ngSubmit)="onSubmit()">
|
2020-05-30 16:33:57 +02:00
|
|
|
<div class="control is-expanded">
|
|
|
|
<div class="field">
|
|
|
|
<label for="primeType">Sondage concerne des dates ?</label>
|
|
|
|
<p-inputSwitch id="primeType" formControlName="type"></p-inputSwitch>
|
|
|
|
</div>
|
2020-05-01 19:10:17 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<label class="label" for="title">
|
|
|
|
Intitulé
|
2020-05-30 16:33:57 +02:00
|
|
|
<input class="input" formControlName="title" id="title" placeholder="Intitulé" type="text" />
|
2020-05-01 19:10:17 +02:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<label class="label" for="description">
|
|
|
|
Description
|
2020-05-30 16:33:57 +02:00
|
|
|
<textarea
|
|
|
|
formControlName="description"
|
|
|
|
id="description"
|
|
|
|
pInputTextarea
|
|
|
|
placeholder="Description"
|
|
|
|
></textarea>
|
2020-05-01 19:10:17 +02:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<label class="label" for="slug">
|
|
|
|
Url personnalisée
|
2020-05-30 16:33:57 +02:00
|
|
|
<input class="input" formControlName="slug" id="slug" placeholder="Url" type="text" />
|
2020-05-01 19:10:17 +02:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="button is-fullwidth" type="submit" [disabled]="!pollForm.valid">Créer</button>
|
|
|
|
</form>
|