forked from tykayn/funky-framadate-front
same time span for every day by default, clean config
This commit is contained in:
parent
6fdb56786a
commit
c0ca623885
@ -57,15 +57,12 @@
|
|||||||
<button
|
<button
|
||||||
class="btn"
|
class="btn"
|
||||||
[class.is-primary]="form.value.hasSeveralHours"
|
[class.is-primary]="form.value.hasSeveralHours"
|
||||||
(click)="
|
(click)="form.patchValue({ hasSeveralHours: !form.value.hasSeveralHours })"
|
||||||
form.patchValue({
|
|
||||||
configuration: { hasSeveralHours: !form.value.hasSeveralHours }
|
|
||||||
})
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<i class="fa fa-clock-o"></i>
|
<i class="fa fa-check-square-o" *ngIf="form.value.hasSeveralHours"></i>
|
||||||
|
<i class="fa fa-square-o" *ngIf="!form.value.hasSeveralHours"></i>
|
||||||
<span> horaires avancées</span>
|
<span> horaires avancées</span>
|
||||||
|
<i class="fa fa-clock-o"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="is-info notification">
|
<div class="is-info notification">
|
||||||
<span *ngIf="form.value.hasSeveralHours">
|
<span *ngIf="form.value.hasSeveralHours">
|
||||||
|
@ -20,34 +20,28 @@
|
|||||||
<p class="label is-medium">
|
<p class="label is-medium">
|
||||||
{{ 'creation.want' | translate }}
|
{{ 'creation.want' | translate }}
|
||||||
</p>
|
</p>
|
||||||
<div class="step-choices" *ngIf="currentStep === 'base'">
|
<!-- <div class="step-choices" *ngIf="currentStep === 'base'">-->
|
||||||
<app-kind-select [form]="form"></app-kind-select>
|
<!-- <app-kind-select [form]="form"></app-kind-select>-->
|
||||||
<app-base-config [form]="form"></app-base-config>
|
<!-- <app-base-config [form]="form"></app-base-config>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="step-choices" *ngIf="currentStep === 'choices'">
|
<!-- <div class="step-choices" *ngIf="currentStep === 'choices'"> </div>-->
|
||||||
<app-date-select
|
<app-date-select *ngIf="form.value && form.value.kind == 'date'" [form]="form"></app-date-select>
|
||||||
*ngIf="form.value && form.value.kind == 'date'"
|
<app-text-select *ngIf="form.value && form.value.kind == 'text'" [form]="form"></app-text-select>
|
||||||
[form]="form"
|
|
||||||
></app-date-select>
|
<button
|
||||||
<app-text-select
|
class="btn"
|
||||||
*ngIf="form.value && form.value.kind == 'date'"
|
[class]="{ 'is-primary': advancedDisplayEnabled, 'is-info': !advancedDisplayEnabled }"
|
||||||
[form]="form"
|
(click)="advancedDisplayEnabled = !advancedDisplayEnabled"
|
||||||
></app-text-select>
|
>
|
||||||
|
<i class="fa fa-save"></i>
|
||||||
|
{{ 'creation.advanced' | translate }}
|
||||||
|
</button>
|
||||||
|
<app-advanced-config
|
||||||
|
[poll]="poll"
|
||||||
|
[form]="form"
|
||||||
|
*ngIf="advancedDisplayEnabled"
|
||||||
|
></app-advanced-config>
|
||||||
|
|
||||||
<button
|
|
||||||
class="btn"
|
|
||||||
[class]="{ 'is-primary': advancedDisplayEnabled, 'is-info': !advancedDisplayEnabled }"
|
|
||||||
(click)="advancedDisplayEnabled = !advancedDisplayEnabled"
|
|
||||||
>
|
|
||||||
<i class="fa fa-save"></i>
|
|
||||||
{{ 'creation.advanced' | translate }}
|
|
||||||
</button>
|
|
||||||
<app-advanced-config
|
|
||||||
[poll]="poll"
|
|
||||||
[form]="form"
|
|
||||||
*ngIf="advancedDisplayEnabled"
|
|
||||||
></app-advanced-config>
|
|
||||||
</div>
|
|
||||||
<div class="bar-nav-admin">
|
<div class="bar-nav-admin">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
@ -89,7 +89,7 @@ export class FormComponent implements OnInit {
|
|||||||
allowComments: [true, [Validators.required]],
|
allowComments: [true, [Validators.required]],
|
||||||
password: [this.pollUtilitiesService.makeUuid(), [Validators.required]],
|
password: [this.pollUtilitiesService.makeUuid(), [Validators.required]],
|
||||||
dateCreated: [creationDate, [Validators.required]],
|
dateCreated: [creationDate, [Validators.required]],
|
||||||
hasSeveralHours: [true, [Validators.required]],
|
hasSeveralHours: [false, [Validators.required]],
|
||||||
hasMaxCountOfAnswers: [true, [Validators.required, Validators.min(1)]],
|
hasMaxCountOfAnswers: [true, [Validators.required, Validators.min(1)]],
|
||||||
startDateInterval: ['', [Validators.required]],
|
startDateInterval: ['', [Validators.required]],
|
||||||
endDateInterval: ['', [Validators.required]],
|
endDateInterval: ['', [Validators.required]],
|
||||||
@ -118,7 +118,7 @@ export class FormComponent implements OnInit {
|
|||||||
creatorPseudo: 'Chuck Norris',
|
creatorPseudo: 'Chuck Norris',
|
||||||
creatorEmail: 'chucknorris@example.com',
|
creatorEmail: 'chucknorris@example.com',
|
||||||
isAboutDate: true,
|
isAboutDate: true,
|
||||||
// hasSeveralHours: true,
|
hasSeveralHours: false,
|
||||||
kind: 'date',
|
kind: 'date',
|
||||||
password: '',
|
password: '',
|
||||||
whoCanChangeAnswers: 'everybody',
|
whoCanChangeAnswers: 'everybody',
|
||||||
|
@ -72,22 +72,22 @@
|
|||||||
<i class="fa fa-close"></i>
|
<i class="fa fa-close"></i>
|
||||||
</button>
|
</button>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-checkbox class="is-flex" formControlName="configuration.areResultsPublic">
|
<mat-checkbox class="is-flex" formControlName="areResultsPublic">
|
||||||
Les participants pourront consulter les résultats
|
Les participants pourront consulter les résultats
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
<mat-checkbox class="is-flex" formControlName="configuration.isAboutDate">
|
<mat-checkbox class="is-flex" formControlName="isAboutDate">
|
||||||
Les choix possibles concerneront des dates
|
Les choix possibles concerneront des dates
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
<mat-checkbox class="is-flex" formControlName="configuration.isProtectedByPassword">
|
<mat-checkbox class="is-flex" formControlName="isProtectedByPassword">
|
||||||
Le sondage sera protégé par un mot de passe
|
Le sondage sera protégé par un mot de passe
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
<mat-checkbox class="is-flex" formControlName="configuration.isOwnerNotifiedByEmailOnNewVote">
|
<mat-checkbox class="is-flex" formControlName="isOwnerNotifiedByEmailOnNewVote">
|
||||||
Vous recevrez un mail à chaque nouvelle participation
|
Vous recevrez un mail à chaque nouvelle participation
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
<mat-checkbox class="is-flex" formControlName="configuration.isOwnerNotifiedByEmailOnNewComment">
|
<mat-checkbox class="is-flex" formControlName="isOwnerNotifiedByEmailOnNewComment">
|
||||||
Vous recevrez un mail à chaque nouveau commentaire
|
Vous recevrez un mail à chaque nouveau commentaire
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
<mat-checkbox class="is-flex" formControlName="configuration.isMaybeAnswerAvailable">
|
<mat-checkbox class="is-flex" formControlName="isMaybeAnswerAvailable">
|
||||||
La réponse « peut-être » sera disponible
|
La réponse « peut-être » sera disponible
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user