funky-framadate-front/src/app/features/administration/form/steps/step-three/step-three.component.html

60 lines
1.9 KiB
HTML
Raw Normal View History

<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">
<h1 class="title is-1" id="step_title">
2022-02-09 12:25:08 +01:00
{{ 'dates.title' | translate }}
2022-02-28 13:41:33 +01:00
</h1>
2022-02-09 12:25:08 +01:00
<!-- sélecteur d'interface-->
2022-03-10 11:06:18 +01:00
<button
*ngIf="pollService.mode_calendar"
class="button is-fullwidth date-input-selector is-secondary is-thin text-center"
(click)="changeDateInputMode()"
>
{{ 'dates.manual_input' | translate }}
</button>
<button
*ngIf="!pollService.mode_calendar"
class="button is-fullwidth date-input-selector is-secondary is-thin"
(click)="changeDateInputMode()"
>
{{ 'dates.datepicker_input' | translate }}
2022-02-09 12:25:08 +01:00
</button>
<!-- choix spécialement pour les dates-->
<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"
2022-02-09 12:25:08 +01:00
selectionMode="multiple"
inputId="multiple"
[showButtonBar]="true"
2022-02-09 12:25:08 +01:00
[locale]="'calendar_widget' | translate"
[inline]="true"
[showWeek]="false"
(onMonthChange)="(onMonthChangeCustom)"
>
</p-calendar>
2022-02-09 12:25:08 +01:00
</div>
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"
2022-02-09 12:25:08 +01:00
></app-day-list>
</div>
</div>
2021-11-14 15:26:26 +01:00
</div>
<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
"
[previous_step_number]="pollService.step_current - 1"
></app-nav-steps>