34 lines
987 B
HTML
34 lines
987 B
HTML
<div>
|
|
<p>Form Status: {{ pollForm.status }}</p>
|
|
</div>
|
|
<br />
|
|
<form [formGroup]="pollForm" (ngSubmit)="onSubmit()">
|
|
<div class="field">
|
|
<label for="primeType">Sondage concerne des dates ?</label>
|
|
<p-inputSwitch id="primeType" formControlName="type"></p-inputSwitch>
|
|
</div>
|
|
|
|
<div class="control is-expanded">
|
|
<label class="label" for="title">
|
|
Intitulé
|
|
<input class="input" type="text" formControlName="title" placeholder="Intitulé" />
|
|
</label>
|
|
</div>
|
|
|
|
<div class="control is-expanded">
|
|
<label class="label" for="description">
|
|
Description
|
|
<textarea pInputTextarea formControlName="description" placeholder="Description"></textarea>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="control is-expanded">
|
|
<label class="label" for="slug">
|
|
Url personnalisée
|
|
<input class="input" type="text" formControlName="slug" placeholder="Url" />
|
|
</label>
|
|
</div>
|
|
|
|
<button class="button is-fullwidth is-primary" type="submit" [disabled]="!pollForm.valid">Créer</button>
|
|
</form>
|