2021-02-04 16:14:07 +01:00
|
|
|
<div class="kind-select form-field">
|
2021-03-27 21:55:05 +01:00
|
|
|
<form [formGroup]="form">
|
2021-04-30 10:59:46 +02:00
|
|
|
<div class="kind-of-poll control">
|
|
|
|
<div class="select" *ngIf="template_questions_answers">
|
2021-03-27 21:55:05 +01:00
|
|
|
<!-- version maquette questions réponses-->
|
|
|
|
<select name="type" id="type" class="input" formControlName="kind">
|
|
|
|
<option [value]="'date'">{{ 'creation.kind.date' | translate }}</option>
|
|
|
|
<option [value]="'classic'">{{ 'creation.kind.classic' | translate }}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<!-- version avec un choix de bouton-->
|
|
|
|
<div class="columns" *ngIf="!template_questions_answers">
|
|
|
|
<div class="column">
|
|
|
|
<button
|
|
|
|
class="btn-block btn"
|
|
|
|
[ngClass]="{ 'is-primary': form.value.configuration.isAboutDate }"
|
|
|
|
(click)="
|
|
|
|
form.patchValue({
|
|
|
|
configuration: {
|
|
|
|
isAboutDate: true
|
|
|
|
}
|
|
|
|
})
|
|
|
|
"
|
|
|
|
>
|
|
|
|
<i class="fa fa-calendar"></i>
|
|
|
|
{{ 'creation.kind.date' | translate }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<button
|
|
|
|
class="btn-block btn btn-default"
|
|
|
|
[ngClass]="{ 'is-primary': !form.value.configuration.isAboutDate }"
|
|
|
|
(click)="
|
|
|
|
form.patchValue({
|
|
|
|
configuration: {
|
|
|
|
isAboutDate: false
|
|
|
|
}
|
|
|
|
})
|
|
|
|
"
|
|
|
|
>
|
|
|
|
<i class="fa fa-stats"></i>
|
|
|
|
{{ 'creation.kind.classic' | translate }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-27 21:29:06 +01:00
|
|
|
</div>
|
2021-03-27 21:55:05 +01:00
|
|
|
</form>
|
2021-02-04 16:14:07 +01:00
|
|
|
</div>
|