choice template questions

This commit is contained in:
Tykayn 2021-03-27 21:29:06 +01:00 committed by tykayn
parent f3f2d6623b
commit 21040df287
4 changed files with 16 additions and 2 deletions

1
CHANGELOG.md Normal file
View File

@ -0,0 +1 @@
# Changelog

View File

@ -22,7 +22,8 @@
<p class="subtitle">
{{ 'creation.want' | translate }}
</p>
<!-- <app-kind-select [form]="form"></app-kind-select>-->
<app-kind-select [form]="form"></app-kind-select>
<!-- <app-base-config [form]="form"></app-base-config>-->
<!-- <app-date-select-->
<!-- *ngIf="form.value.configuration && form.value.configuration.isAboutDate"-->

View File

@ -1,6 +1,17 @@
<div class="kind-select form-field">
<div class="kind-of-poll columns">
<div class="column">
<div class="column" *ngIf="template_questions_answers">
<!-- version maquette questions réponses-->
{{ 'creation.want' | translate }}
<select name="type" id="type" class="input">
<option value="classic">{{ 'creation.kind.classic' | translate }}</option>
<option value="date">{{ 'creation.kind.date' | translate }}</option>
</select>
{{ 'creation.choose_title' | translate }}
<input type="text" name="title" class="input" />
</div>
<!-- version avec un choix de bouton-->
<div class="column" *ngIf="!template_questions_answers">
<button
class="btn-block btn"
[ngClass]="{ 'is-primary': form.value.configuration.isAboutDate }"

View File

@ -8,6 +8,7 @@ import { FormGroup } from '@angular/forms';
styleUrls: ['./kind-select.component.scss'],
})
export class KindSelectComponent implements OnInit {
public template_questions_answers = true;
@Input()
public poll?: Poll;
@Input()