forked from tykayn/funky-framadate-front
add all config controls
This commit is contained in:
parent
8c119739a7
commit
e5b8d5b65e
@ -11,14 +11,14 @@
|
|||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<h2>Choix de réponse</h2>
|
<h2>Choix de réponse</h2>
|
||||||
<span formArrayName="choices">
|
<span formArrayName="choices">
|
||||||
<h3>Aliases</h3>
|
<h3>Choix proposés</h3>
|
||||||
<button (click)="addChoice()">
|
<button (click)="addChoice()">
|
||||||
<i class="fa fa-plus"></i>
|
<i class="fa fa-plus"></i>
|
||||||
Add choice
|
Ajouter un choix
|
||||||
</button>
|
</button>
|
||||||
<button (click)="reinitChoices()">
|
<button (click)="reinitChoices()">
|
||||||
<i class="fa fa-recycle"></i>
|
<i class="fa fa-recycle"></i>
|
||||||
réinitialiser
|
Réinitialiser
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div *ngFor="let choice of choices.controls; let i = index">
|
<div *ngFor="let choice of choices.controls; let i = index">
|
||||||
@ -32,7 +32,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class='simple' >-->
|
|
||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<label class="hidden" for="title">Titre</label>
|
<label class="hidden" for="title">Titre</label>
|
||||||
<input
|
<input
|
||||||
@ -102,113 +101,87 @@
|
|||||||
<i class="fa fa-close"></i>
|
<i class="fa fa-close"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- <label-->
|
<label for="slug"
|
||||||
<!-- for='slug'-->
|
>Url pour les participants
|
||||||
<!-- >Url pour les participants-->
|
|
||||||
|
|
||||||
<!-- <button-->
|
<button
|
||||||
<!-- mat-button-->
|
mat-button
|
||||||
<!-- *ngIf='slug.value'-->
|
*ngIf="slug.value"
|
||||||
<!-- matSuffix-->
|
matSuffix
|
||||||
<!-- mat-icon-button-->
|
mat-icon-button
|
||||||
<!-- aria-label='Clear'-->
|
aria-label="Clear"
|
||||||
<!-- (click)="slug.value = ''"-->
|
(click)="slug.value = ''"
|
||||||
<!-- >-->
|
>
|
||||||
<!-- <i class='fa fa-close' ></i >-->
|
<i class="fa fa-close"></i>
|
||||||
<!-- </button >-->
|
</button>
|
||||||
<!-- </label >-->
|
</label>
|
||||||
<!-- <br />-->
|
<br />
|
||||||
<!-- <span-->
|
<span
|
||||||
<!-- >{{ urlPrefix }}-->
|
>{{ urlPrefix }}
|
||||||
<!-- <strong >-->
|
<strong>
|
||||||
<!-- {{ slug.value }}-->
|
{{ slug.value }}
|
||||||
<!-- </strong >-->
|
</strong>
|
||||||
<!-- </span >-->
|
</span>
|
||||||
<!-- <input-->
|
<input #slug matInput id="slug" placeholder="Url" formControlName="slug" required />
|
||||||
<!-- #slug-->
|
<br />
|
||||||
<!-- matInput-->
|
<h2>
|
||||||
<!-- id='slug'-->
|
Type de sondage
|
||||||
<!-- placeholder='Url'-->
|
</h2>
|
||||||
<!-- formControlName='slug'-->
|
<h1 class="title is-1"><i class="fa fa-calendar" aria-hidden="true"></i> {{ 'dates.title' | translate }}</h1>
|
||||||
<!-- required />-->
|
<button class="btn" (click)="form.setValue({ isAboutDate: true })">
|
||||||
<!-- <br />-->
|
Spécial date
|
||||||
<!-- </div >-->
|
</button>
|
||||||
<!-- <h2 >-->
|
<button class="btn" (click)="form.controls.isAboutDate.setValue(false)">
|
||||||
<!-- Type de sondage-->
|
Classique - textes
|
||||||
<!-- </h2 >-->
|
</button>
|
||||||
<!-- <h1 class="title is-1"><i class="fa fa-calendar" aria-hidden="true"></i> {{ 'dates.title' | translate }}</h1>-->
|
<button
|
||||||
<!-- <button-->
|
[ngClass]="{ 'is-primary': !form.controls.isAboutDate.value }"
|
||||||
<!-- class='btn'-->
|
(click)="form.controls.isAboutDate.setValue(false)"
|
||||||
<!-- (click)='form.setValue({isAboutDate: true})' >-->
|
>
|
||||||
<!-- Spécial date-->
|
Classique - textes
|
||||||
<!-- </button >-->
|
</button>
|
||||||
<!-- <button-->
|
|
||||||
<!-- class='btn'-->
|
|
||||||
<!-- (click)='form.setValue({isAboutDate: false})' >-->
|
|
||||||
<!-- Classique - textes-->
|
|
||||||
<!-- </button >-->
|
|
||||||
<!-- <button-->
|
|
||||||
<!-- [ngClass]="{ 'is-primary': !isAboutDate.value }"-->
|
|
||||||
<!-- (click)='isAboutDate = false' >-->
|
|
||||||
<!-- Classique - textes-->
|
|
||||||
<!-- </button >-->
|
|
||||||
|
|
||||||
<!-- </div >-->
|
<h2>Version complète du formulaire</h2>
|
||||||
<!-- <h2 >Version complète du formulaire</h2 >-->
|
<div appearance="outline" class="is-flex">
|
||||||
<!-- <div-->
|
<mat-label>Nombre de jours avant expiration</mat-label>
|
||||||
<!-- appearance='outline'-->
|
<input
|
||||||
<!-- class='is-flex' >-->
|
#expiracy
|
||||||
<!-- <mat-label >Nombre de jours avant expiration</mat-label >-->
|
id="expiracy"
|
||||||
<!-- <input-->
|
matInput
|
||||||
<!-- #expiracy-->
|
type="number"
|
||||||
<!-- id='expiracy'-->
|
placeholder="Nombre de jours avant expiration"
|
||||||
<!-- matInput-->
|
formControlName="expiracyNumberOfDays"
|
||||||
<!-- type='number'-->
|
required
|
||||||
<!-- placeholder='Nombre de jours avant expiration'-->
|
/>
|
||||||
<!-- formControlName='expiracyNumberOfDays'-->
|
<button
|
||||||
<!-- required-->
|
mat-button
|
||||||
<!-- />-->
|
*ngIf="expiracy.value"
|
||||||
<!-- <button-->
|
matSuffix
|
||||||
<!-- mat-button-->
|
mat-icon-button
|
||||||
<!-- *ngIf='expiracy.value'-->
|
aria-label="Clear"
|
||||||
<!-- matSuffix-->
|
(click)="expiracy.value = ''"
|
||||||
<!-- mat-icon-button-->
|
>
|
||||||
<!-- aria-label='Clear'-->
|
<i class="fa fa-close"></i>
|
||||||
<!-- (click)="expiracy.value = ''"-->
|
</button>
|
||||||
<!-- >-->
|
</div>
|
||||||
<!-- <i class='fa fa-close' ></i >-->
|
<mat-checkbox class="is-flex" formControlName="areResultsPublic">
|
||||||
<!-- </button >-->
|
Les participants pourront consulter les résultats
|
||||||
<!-- </div >-->
|
</mat-checkbox>
|
||||||
<!-- <mat-checkbox-->
|
<mat-checkbox class="is-flex" formControlName="isAboutDate">
|
||||||
<!-- class='is-flex'-->
|
Les choix possibles concerneront des dates
|
||||||
<!-- formControlName='areResultsPublic' >-->
|
</mat-checkbox>
|
||||||
<!-- Les participants pourront consulter les résultats-->
|
<mat-checkbox class="is-flex" formControlName="isProtectedByPassword">
|
||||||
<!-- </mat-checkbox >-->
|
Le sondage sera protégé par un mot de passe
|
||||||
<!-- <mat-checkbox-->
|
</mat-checkbox>
|
||||||
<!-- class='is-flex'-->
|
<mat-checkbox class="is-flex" formControlName="isOwnerNotifiedByEmailOnNewVote">
|
||||||
<!-- formControlName='isAboutDate' >-->
|
Vous recevrez un mail à chaque nouvelle participation
|
||||||
<!-- Les choix possibles concerneront des dates-->
|
</mat-checkbox>
|
||||||
<!-- </mat-checkbox >-->
|
<mat-checkbox class="is-flex" formControlName="isOwnerNotifiedByEmailOnNewComment">
|
||||||
<!-- <mat-checkbox-->
|
Vous recevrez un mail à chaque nouveau commentaire
|
||||||
<!-- class='is-flex'-->
|
</mat-checkbox>
|
||||||
<!-- formControlName='isProtectedByPassword' >-->
|
<mat-checkbox class="is-flex" formControlName="isMaybeAnswerAvailable">
|
||||||
<!-- Le sondage sera protégé par un mot de passe-->
|
La réponse « peut-être » sera disponible
|
||||||
<!-- </mat-checkbox >-->
|
</mat-checkbox>
|
||||||
<!-- <mat-checkbox-->
|
|
||||||
<!-- class='is-flex'-->
|
|
||||||
<!-- formControlName='isOwnerNotifiedByEmailOnNewVote' >-->
|
|
||||||
<!-- Vous recevrez un mail à chaque nouvelle participation-->
|
|
||||||
<!-- </mat-checkbox >-->
|
|
||||||
<!-- <mat-checkbox-->
|
|
||||||
<!-- class='is-flex'-->
|
|
||||||
<!-- formControlName='isOwnerNotifiedByEmailOnNewComment' >-->
|
|
||||||
<!-- Vous recevrez un mail à chaque nouveau commentaire-->
|
|
||||||
<!-- </mat-checkbox >-->
|
|
||||||
<!-- <mat-checkbox-->
|
|
||||||
<!-- class='is-flex'-->
|
|
||||||
<!-- formControlName='isMaybeAnswerAvailable' >-->
|
|
||||||
<!-- La réponse « peut-être » sera disponible-->
|
|
||||||
<!-- </mat-checkbox >-->
|
|
||||||
|
|
||||||
<button mat-button (click)="createPoll()" [disabled]="!form.valid || !form.valid">
|
<button mat-button (click)="createPoll()" [disabled]="!form.valid || !form.valid">
|
||||||
<i class="fa fa-save"></i>
|
<i class="fa fa-save"></i>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user