2021-02-04 19:04:20 +01:00
|
|
|
<form [formGroup]="form">
|
|
|
|
<fieldset class="complete well">
|
|
|
|
<h2>{{ 'creation.advanced' | translate }}</h2>
|
|
|
|
<label for="descr">Description (optionnel)</label>
|
|
|
|
<textarea
|
|
|
|
#description
|
2021-02-04 16:14:07 +01:00
|
|
|
matInput
|
2021-02-04 19:04:20 +01:00
|
|
|
id="descr"
|
|
|
|
placeholder="Description"
|
|
|
|
formControlName="description"
|
2021-02-04 16:14:07 +01:00
|
|
|
required
|
2021-02-04 19:04:20 +01:00
|
|
|
></textarea>
|
2021-02-04 16:14:07 +01:00
|
|
|
<button
|
|
|
|
mat-button
|
2021-02-04 19:04:20 +01:00
|
|
|
*ngIf="description.value"
|
2021-02-04 16:14:07 +01:00
|
|
|
matSuffix
|
|
|
|
mat-icon-button
|
|
|
|
aria-label="Clear"
|
2021-02-04 19:04:20 +01:00
|
|
|
(click)="description.value = ''"
|
2021-02-04 16:14:07 +01:00
|
|
|
>
|
|
|
|
<i class="fa fa-close"></i>
|
|
|
|
</button>
|
2021-02-04 19:04:20 +01:00
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2021-02-05 17:02:52 +01:00
|
|
|
<label for="slug">
|
|
|
|
Url personnalisée pour les participants
|
2021-02-04 19:04:20 +01:00
|
|
|
<i class="fa fa-close"></i>
|
|
|
|
</label>
|
|
|
|
<br />
|
|
|
|
<span
|
|
|
|
>{{ urlPrefix }}
|
|
|
|
<strong>
|
2021-04-30 11:27:54 +02:00
|
|
|
{{ form.controls.custom_url.value }}
|
2021-02-04 19:04:20 +01:00
|
|
|
</strong>
|
|
|
|
</span>
|
2021-04-30 11:27:54 +02:00
|
|
|
<app-copy-text [textToCopy]="form.controls.custom_url.value"></app-copy-text>
|
2021-02-04 19:04:20 +01:00
|
|
|
|
|
|
|
<button
|
|
|
|
mat-button
|
2021-04-30 11:27:54 +02:00
|
|
|
*ngIf="form.controls.custom_url.value"
|
2021-02-04 19:04:20 +01:00
|
|
|
matSuffix
|
|
|
|
mat-icon-button
|
|
|
|
aria-label="Clear"
|
|
|
|
(click)="slug.value = ''"
|
|
|
|
></button>
|
|
|
|
<input #slug matInput id="slug" placeholder="Url" formControlName="slug" required />
|
|
|
|
<br />
|
|
|
|
<div appearance="outline" class="is-not-flex">
|
2021-02-05 17:02:52 +01:00
|
|
|
<mat-label
|
|
|
|
>Nombre de jours avant expiration de la possibilité de voter, après le sondage reste
|
|
|
|
consultable</mat-label
|
|
|
|
>
|
2021-02-04 19:04:20 +01:00
|
|
|
<input
|
2021-02-05 23:03:49 +01:00
|
|
|
#expiresDaysDelay
|
|
|
|
id="expiresDaysDelay"
|
2021-02-04 19:04:20 +01:00
|
|
|
matInput
|
|
|
|
type="number"
|
2021-02-05 17:02:52 +01:00
|
|
|
placeholder="Nombre de jours avant fin des votes"
|
2021-02-04 19:04:20 +01:00
|
|
|
formControlName="expiracyNumberOfDays"
|
|
|
|
required
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
mat-button
|
2021-02-05 23:03:49 +01:00
|
|
|
*ngIf="expiresDaysDelay.value"
|
2021-02-04 19:04:20 +01:00
|
|
|
matSuffix
|
|
|
|
mat-icon-button
|
|
|
|
aria-label="Clear"
|
2021-02-05 23:03:49 +01:00
|
|
|
(click)="expiresDaysDelay.value = ''"
|
2021-02-04 19:04:20 +01:00
|
|
|
>
|
|
|
|
<i class="fa fa-close"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2021-02-05 17:02:52 +01:00
|
|
|
<div appearance="outline" class="is-not-flex">
|
|
|
|
<mat-label
|
|
|
|
>Nombre de jours avant archivage, après quoi le sondage n'est plus visible par le public</mat-label
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
#archive
|
|
|
|
id="archive"
|
|
|
|
matInput
|
|
|
|
type="number"
|
|
|
|
placeholder="Nombre de jours avant archivage"
|
|
|
|
formControlName="archiveNumberOfDays"
|
|
|
|
required
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
mat-button
|
|
|
|
*ngIf="archive.value"
|
|
|
|
matSuffix
|
|
|
|
mat-icon-button
|
|
|
|
aria-label="Clear"
|
|
|
|
(click)="archive.value = ''"
|
|
|
|
>
|
|
|
|
<i class="fa fa-close"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2021-04-30 12:39:21 +02:00
|
|
|
<mat-checkbox class="is-not-flex" formControlName="areResultsPublic">
|
2021-02-04 19:04:20 +01:00
|
|
|
Les participants pourront consulter les résultats
|
|
|
|
</mat-checkbox>
|
2021-02-05 17:02:52 +01:00
|
|
|
<h3 class="title is-3">
|
|
|
|
<i class="fa fa-lock"></i>
|
|
|
|
Accès sécurisé
|
|
|
|
</h3>
|
|
|
|
|
2021-04-30 12:39:21 +02:00
|
|
|
<mat-checkbox class="is-not-flex" formControlName="isProtectedByPassword">
|
2021-02-04 19:04:20 +01:00
|
|
|
Le sondage sera protégé par un mot de passe
|
|
|
|
</mat-checkbox>
|
2021-02-05 17:02:52 +01:00
|
|
|
|
|
|
|
<input
|
|
|
|
*ngIf="form.value.isProtectedByPassword"
|
|
|
|
#password
|
|
|
|
id="password"
|
|
|
|
matInput
|
|
|
|
type="password"
|
|
|
|
placeholder="password"
|
2021-04-30 12:39:21 +02:00
|
|
|
formControlName="password"
|
2021-02-05 17:02:52 +01:00
|
|
|
required
|
|
|
|
/>
|
|
|
|
|
|
|
|
<h3 class="title is-3">
|
|
|
|
<i class="fa fa-enveloppe"></i>
|
|
|
|
Notifications
|
|
|
|
</h3>
|
2021-04-30 12:39:21 +02:00
|
|
|
<mat-checkbox class="is-not-flex" formControlName="isOwnerNotifiedByEmailOnNewVote">
|
2021-02-04 19:04:20 +01:00
|
|
|
Vous recevrez un mail à chaque nouvelle participation
|
|
|
|
</mat-checkbox>
|
2021-04-30 12:39:21 +02:00
|
|
|
<mat-checkbox class="is-not-flex" formControlName="isOwnerNotifiedByEmailOnNewComment">
|
2021-02-04 19:04:20 +01:00
|
|
|
Vous recevrez un mail à chaque nouveau commentaire
|
|
|
|
</mat-checkbox>
|
2021-04-30 12:39:21 +02:00
|
|
|
<mat-checkbox class="is-not-flex" formControlName="isMaybeAnswerAvailable">
|
2021-02-04 19:04:20 +01:00
|
|
|
La réponse « peut-être » sera disponible
|
|
|
|
</mat-checkbox>
|
|
|
|
</fieldset>
|
2021-02-05 17:02:52 +01:00
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<h2>
|
|
|
|
Fonctionnalités pas encore disponibles:
|
|
|
|
</h2>
|
|
|
|
<app-wip-todo></app-wip-todo>
|
2021-04-30 12:39:21 +02:00
|
|
|
<mat-checkbox class="is-not-flex" formControlName="isProtectedByPassword">
|
2021-02-05 17:02:52 +01:00
|
|
|
Spécifier un lien unique de vote à des participants définis
|
|
|
|
</mat-checkbox>
|
2021-04-30 12:39:21 +02:00
|
|
|
<mat-checkbox class="is-not-flex" formControlName="allowComments">
|
2021-02-05 17:02:52 +01:00
|
|
|
Autoriser les commentaires
|
|
|
|
</mat-checkbox>
|
2021-04-30 12:39:21 +02:00
|
|
|
<mat-checkbox class="is-not-flex" formControlName="hasMaxCountOfAnswers">
|
2021-02-05 17:02:52 +01:00
|
|
|
Nombre de réponses limitées à ce nombre
|
|
|
|
</mat-checkbox>
|
|
|
|
<input
|
2021-04-30 12:37:04 +02:00
|
|
|
*ngIf="form.value.hasMaxCountOfAnswers"
|
2021-02-05 23:03:49 +01:00
|
|
|
#maxCountOfAnswers
|
|
|
|
id="maxCountOfAnswers"
|
2021-02-05 17:02:52 +01:00
|
|
|
matInput
|
|
|
|
type="number"
|
|
|
|
placeholder="Nombre de réponses max"
|
2021-04-30 12:39:21 +02:00
|
|
|
formControlName="maxCountOfAnswers"
|
2021-02-05 17:02:52 +01:00
|
|
|
required
|
|
|
|
/>
|
|
|
|
|
2021-04-30 12:39:21 +02:00
|
|
|
<mat-checkbox class="is-not-flex" formControlName="isZeroKnoledge">
|
2021-02-05 17:02:52 +01:00
|
|
|
Les informations du sondage seront chiffrés en base de données
|
|
|
|
</mat-checkbox>
|
|
|
|
</fieldset>
|
2021-02-04 19:04:20 +01:00
|
|
|
</form>
|