92 lines
2.4 KiB
HTML
92 lines
2.4 KiB
HTML
<form [formGroup]="form">
|
|
<fieldset class="complete well">
|
|
<h2>{{ 'creation.advanced' | translate }}</h2>
|
|
<label for="descr">Description (optionnel)</label>
|
|
<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="slug"
|
|
>Url pour les participants
|
|
|
|
<i class="fa fa-close"></i>
|
|
</label>
|
|
<br />
|
|
<span
|
|
>{{ urlPrefix }}
|
|
<strong>
|
|
{{ form.controls.slug.value }}
|
|
</strong>
|
|
</span>
|
|
<app-copy-text [textToCopy]="form.controls.slug.value"></app-copy-text>
|
|
|
|
<button
|
|
mat-button
|
|
*ngIf="form.controls.slug.value"
|
|
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">
|
|
<mat-label>Nombre de jours avant expiration</mat-label>
|
|
<input
|
|
#expiracy
|
|
id="expiracy"
|
|
matInput
|
|
type="number"
|
|
placeholder="Nombre de jours avant expiration"
|
|
formControlName="expiracyNumberOfDays"
|
|
required
|
|
/>
|
|
<button
|
|
mat-button
|
|
*ngIf="expiracy.value"
|
|
matSuffix
|
|
mat-icon-button
|
|
aria-label="Clear"
|
|
(click)="expiracy.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>
|
|
<mat-checkbox class="is-not-flex" formControlName="isAboutDate">
|
|
Les choix possibles concerneront des dates
|
|
</mat-checkbox>
|
|
<mat-checkbox class="is-not-flex" formControlName="isProtectedByPassword">
|
|
Le sondage sera protégé par un mot de passe
|
|
</mat-checkbox>
|
|
<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>
|
|
<mat-checkbox class="is-not-flex" formControlName="isMaybeAnswerAvailable">
|
|
La réponse « peut-être » sera disponible
|
|
</mat-checkbox>
|
|
</fieldset>
|
|
</form>
|