preview of advanced config fields

This commit is contained in:
tykayn 2021-12-21 16:55:02 +01:00 committed by Baptiste Lemoine
parent 087a1ba2de
commit d7c8ceabc4
2 changed files with 44 additions and 5 deletions

View File

@ -1,9 +1,48 @@
<form [formGroup]="form" class="form-advanced-config"> <form [formGroup]="form" class="form-advanced-config">
<div class="box-well">
<h3 class="title is-3">
Saisissez la date de fin de votre sondage
</h3>
<p>
Par défaut votre sondage prendra fin 30 jours après le dernier jour sélectionné dans vos propositions
</p>
<div class="date-expiracy">
<div class="columns">
<div class="column">
<label for="expiracy">Date</label>
</div>
<div class="column">
<span class="date-helper">JJ/MM/AAAA</span>
</div>
</div>
<div class="columns">
<div class="column">
<input formControlName="expiracy" type="text" id="expiracy" />
</div>
<div class="column is-narrow">
<img class="icon" src="assets/icons/calendar.svg" alt="icone calendrier" />
</div>
</div>
</div>
</div>
<div class="columns">
<div class="column is-narrow">
<input type="checkbox" formControlName="limit_votants" id="limit_votants" />
<img class="icon" src="assets/icons/users.svg" alt="icone utilisateurs" />
</div>
<div class="column">
<label for="limit_votants">
<h4 class="title is-4">
Limiter le nombre de votants par proposition
</h4>
<p>
Vous pouvez pour l'ensemble de vos options limiter le nombre de votants
</p>
</label>
</div>
</div>
<hr />
<fieldset> <fieldset>
<label for="descr">Description (optionnel)</label>
<br />
<textarea #description matInput id="descr" formControlName="description" required></textarea>
<br /> <br />
<label for="custom_url"> <label for="custom_url">

View File

@ -5,7 +5,7 @@
<app-errors-list [form]="pollService.form"></app-errors-list> <app-errors-list [form]="pollService.form"></app-errors-list>
<div class="advanced-config"> <div class="advanced-config">
<h2 class="title is-2"> <h2 class="title is-2">
Configuration avancée Paramétrez le sondage
</h2> </h2>
<div class="complete" *ngIf="environment.advanced_options_display"> <div class="complete" *ngIf="environment.advanced_options_display">
<app-advanced-config [form]="pollService.form"></app-advanced-config> <app-advanced-config [form]="pollService.form"></app-advanced-config>