2021-12-09 15:43:44 +01:00
|
|
|
<app-stepper [step_current]="3" [step_max]="pollService.step_max"></app-stepper>
|
2021-11-16 16:16:30 +01:00
|
|
|
<div class="step min-height">
|
2021-11-12 17:31:47 +01:00
|
|
|
<app-errors-list [form]="pollService.form"></app-errors-list>
|
2022-02-09 12:25:08 +01:00
|
|
|
<div class="text-options" *ngIf="!pollService.form.value.isAboutDate">
|
2022-02-16 12:37:30 +01:00
|
|
|
<!-- version text choices-->
|
2022-02-09 12:25:08 +01:00
|
|
|
<app-option-link></app-option-link>
|
2021-11-14 15:26:26 +01:00
|
|
|
</div>
|
2022-02-09 12:25:08 +01:00
|
|
|
<div class="date-options" *ngIf="pollService.form.value.isAboutDate">
|
2022-02-09 15:56:34 +01:00
|
|
|
<h2 class="title is-1">
|
2022-02-09 12:25:08 +01:00
|
|
|
{{ 'dates.title' | translate }}
|
|
|
|
</h2>
|
|
|
|
<!-- sélecteur d'interface-->
|
|
|
|
<button class="button is-fullwidth date-input-selector is-secondary" (click)="changeDateInputMode()">
|
|
|
|
<span *ngIf="pollService.mode_calendar">
|
|
|
|
{{ 'dates.manual_input' | translate }}
|
|
|
|
</span>
|
|
|
|
<span *ngIf="!pollService.mode_calendar">
|
|
|
|
{{ 'dates.datepicker_input' | translate }}
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<!-- choix spécialement pour les dates-->
|
2022-02-15 12:11:21 +01:00
|
|
|
<div class="calendar" *ngIf="pollService.mode_calendar" [ngClass]="{ 'hide-back-button': hideBackButton }">
|
2022-02-16 13:05:32 +01:00
|
|
|
<!-- [minDate]="minDate"-->
|
2022-02-09 12:25:08 +01:00
|
|
|
<p-calendar
|
|
|
|
[(ngModel)]="pollService.calendar"
|
|
|
|
firstDayOfWeek="1"
|
|
|
|
selectionMode="multiple"
|
|
|
|
inputId="multiple"
|
2022-02-15 12:11:21 +01:00
|
|
|
[showButtonBar]="true"
|
2022-02-09 12:25:08 +01:00
|
|
|
[locale]="'calendar_widget' | translate"
|
|
|
|
[inline]="true"
|
|
|
|
[showWeek]="false"
|
2022-02-15 12:11:21 +01:00
|
|
|
(onMonthChange)="(onMonthChangeCustom)"
|
|
|
|
>
|
|
|
|
</p-calendar>
|
2022-02-09 12:25:08 +01:00
|
|
|
</div>
|
2021-11-17 16:25:24 +01:00
|
|
|
|
2022-02-09 12:25:08 +01:00
|
|
|
<div class="text-date-list" *ngIf="!pollService.mode_calendar">
|
|
|
|
<app-day-list
|
|
|
|
[form]="pollService.form"
|
|
|
|
[hasSeveralHours]="environment.creation_display_hour_per_day && pollService.form.value.hasSeveralHours"
|
|
|
|
></app-day-list>
|
|
|
|
</div>
|
2021-11-17 16:25:24 +01:00
|
|
|
</div>
|
2021-11-14 15:26:26 +01:00
|
|
|
</div>
|
2021-12-09 15:43:44 +01:00
|
|
|
<app-nav-steps
|
2021-12-14 11:22:23 +01:00
|
|
|
[actionBeforeNextStep]="convertDateInputs"
|
2022-02-09 12:26:47 +01:00
|
|
|
[next_step_number]="
|
|
|
|
pollService.form.value.isAboutDate ? pollService.step_current + 1 : pollService.step_current + 2
|
|
|
|
"
|
2021-12-09 15:43:44 +01:00
|
|
|
[previous_step_number]="pollService.step_current - 1"
|
|
|
|
></app-nav-steps>
|