166 lines
4.7 KiB
HTML
166 lines
4.7 KiB
HTML
<form [formGroup]="form" class="box">
|
|
<fieldset class="complete well">
|
|
<h2>{{ 'creation.advanced' | translate }}</h2>
|
|
<label for="descr">Description (optionnel)</label>
|
|
<br />
|
|
<textarea
|
|
#description
|
|
matInput
|
|
id="descr"
|
|
placeholder="Description"
|
|
formControlName="description"
|
|
required
|
|
></textarea>
|
|
<button
|
|
mat-button
|
|
*ngIf="description.value"
|
|
matSuffix
|
|
mat-icon-button
|
|
aria-label="Clear"
|
|
(click)="description.value = ''"
|
|
>
|
|
<i class="fa fa-close"></i>
|
|
</button>
|
|
|
|
<br />
|
|
|
|
<label for="custom_url">
|
|
Url personnalisée pour les participants
|
|
<i class="fa fa-close"></i>
|
|
</label>
|
|
<br />
|
|
<button
|
|
mat-button
|
|
*ngIf="form.controls.custom_url.value"
|
|
matSuffix
|
|
mat-icon-button
|
|
aria-label="Clear"
|
|
(click)="form.patchValue({ custom_url: '' })"
|
|
></button>
|
|
<input #custom_url matInput id="custom_url" placeholder="Url" formControlName="custom_url" required />
|
|
<br />
|
|
<div appearance="outline" class="is-not-flex">
|
|
<mat-label
|
|
>Nombre de jours avant expiration de la possibilité de voter, après le sondage reste consultable
|
|
</mat-label>
|
|
<input
|
|
#expiresDaysDelay
|
|
id="expiresDaysDelay"
|
|
matInput
|
|
type="number"
|
|
placeholder="Nombre de jours avant fin des votes"
|
|
formControlName="expiresDaysDelay"
|
|
required
|
|
/>
|
|
<button
|
|
mat-button
|
|
*ngIf="expiresDaysDelay.value"
|
|
matSuffix
|
|
mat-icon-button
|
|
aria-label="Clear"
|
|
(click)="expiresDaysDelay.value = ''"
|
|
>
|
|
<i class="fa fa-close"></i>
|
|
</button>
|
|
</div>
|
|
<mat-checkbox class="is-not-flex" formControlName="areResultsPublic">
|
|
Les participants pourront consulter les résultats
|
|
</mat-checkbox>
|
|
<h3 class="title is-3">
|
|
<i class="fa fa-lock"></i>
|
|
Accès sécurisé
|
|
</h3>
|
|
|
|
<mat-checkbox class="is-not-flex" formControlName="isProtectedByPassword">
|
|
Le sondage sera protégé par un mot de passe
|
|
</mat-checkbox>
|
|
|
|
<input
|
|
*ngIf="form.value.isProtectedByPassword"
|
|
#password
|
|
id="password"
|
|
matInput
|
|
type="password"
|
|
placeholder="password"
|
|
formControlName="password"
|
|
required
|
|
/>
|
|
|
|
<h3 class="title is-3">
|
|
<i class="fa fa-envelope-open"></i>
|
|
Notifications
|
|
</h3>
|
|
<mat-checkbox class="is-not-flex" formControlName="isOwnerNotifiedByEmailOnNewVote">
|
|
Vous recevrez un mail à chaque nouvelle participation
|
|
</mat-checkbox>
|
|
<mat-checkbox class="is-not-flex" formControlName="isOwnerNotifiedByEmailOnNewComment">
|
|
Vous recevrez un mail à chaque nouveau commentaire
|
|
</mat-checkbox>
|
|
<h3 class="title is-3">
|
|
<i class="fa fa-check-square"></i>
|
|
Réponses proposées
|
|
</h3>
|
|
|
|
<img class="image is-24x24 pull-right" src="assets/img/icon_voter_YES.svg" />
|
|
<img class="image is-24x24 pull-right" src="assets/img/icon_voter_MAYBE.svg" />
|
|
<img class="image is-24x24 pull-right" src="assets/img/icon_voter_NO.svg" />
|
|
|
|
<mat-checkbox class="is-not-flex" formControlName="isYesAnswerAvailable">
|
|
La réponse « oui » sera disponible
|
|
</mat-checkbox>
|
|
<mat-checkbox class="is-not-flex" formControlName="isMaybeAnswerAvailable">
|
|
La réponse « peut-être » sera disponible
|
|
</mat-checkbox>
|
|
<mat-checkbox class="is-not-flex" formControlName="isNoAnswerAvailable">
|
|
La réponse « non » sera disponible
|
|
</mat-checkbox>
|
|
|
|
<h3 class="title is-3">
|
|
<i class="fa fa-user-secret"></i>
|
|
Restrictions visiteurs
|
|
</h3>
|
|
<mat-checkbox class="is-not-flex" formControlName="allowComments">
|
|
Autoriser les commentaires
|
|
</mat-checkbox>
|
|
<mat-checkbox class="is-not-flex" formControlName="hasMaxCountOfAnswers">
|
|
Nombre de réponses limitées à ce nombre
|
|
</mat-checkbox>
|
|
<input
|
|
*ngIf="form.value.hasMaxCountOfAnswers"
|
|
#maxCountOfAnswers
|
|
id="maxCountOfAnswers"
|
|
matInput
|
|
type="number"
|
|
placeholder="Nombre de réponses max"
|
|
formControlName="maxCountOfAnswers"
|
|
required
|
|
/>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<h2 class="title is-2">
|
|
<i class="fa fa-wikidata"></i>
|
|
Fonctionnalités pas encore disponibles:
|
|
</h2>
|
|
<app-wip-todo></app-wip-todo>
|
|
|
|
<div>
|
|
<mat-checkbox class="is-not-flex" formControlName="isProtectedByPassword">
|
|
Spécifier un lien unique de vote à des participants définis
|
|
</mat-checkbox>
|
|
<p>
|
|
lister les email des participants et leur fournir un lien unique pour voter à chacun, au lieu d'un lien
|
|
avec une clé permettant de voter pour n'importe qui ayant le lien. Nécessite: évolution de la BDD et de
|
|
l'API
|
|
</p>
|
|
</div>
|
|
|
|
<mat-checkbox class="is-not-flex" formControlName="allowNewDateTime">
|
|
Permettre au public de proposer un créneau de vote supplémentaire
|
|
</mat-checkbox>
|
|
<mat-checkbox class="is-not-flex" formControlName="isZeroKnoledge">
|
|
Les informations du sondage seront chiffrés en base de données
|
|
</mat-checkbox>
|
|
</fieldset>
|
|
</form>
|