Browse Source

choice template questions

creation-form
Tykayn 1 year ago committed by tykayn
parent
commit
21040df287
  1. 1
      CHANGELOG.md
  2. 3
      src/app/features/administration/form/form.component.html
  3. 13
      src/app/features/administration/form/kind-select/kind-select.component.html
  4. 1
      src/app/features/administration/form/kind-select/kind-select.component.ts

1
CHANGELOG.md

@ -0,0 +1 @@
# Changelog

3
src/app/features/administration/form/form.component.html

@ -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"-->

13
src/app/features/administration/form/kind-select/kind-select.component.html

@ -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 }"

1
src/app/features/administration/form/kind-select/kind-select.component.ts

@ -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()

Loading…
Cancel
Save