2021-11-17 15:06:36 +01:00
|
|
|
<section class="creation-stepper" id="creation_stepper">
|
2021-11-29 13:00:01 +01:00
|
|
|
<div class="shortcuts" *ngIf="environment.showStepperShortcuts">
|
2021-11-16 16:23:32 +01:00
|
|
|
<a
|
|
|
|
class="shortcut"
|
|
|
|
href="#"
|
|
|
|
[routerLink]="['/administration/step/1']"
|
|
|
|
[ngClass]="{ 'is-active': pollService.step_current == 1 }"
|
|
|
|
>1</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
class="shortcut"
|
|
|
|
href="#"
|
|
|
|
[routerLink]="['/administration/step/2']"
|
|
|
|
[ngClass]="{ 'is-active': pollService.step_current == 2 }"
|
|
|
|
>2</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
class="shortcut"
|
|
|
|
href="#"
|
|
|
|
[routerLink]="['/administration/step/3']"
|
|
|
|
[ngClass]="{ 'is-active': pollService.step_current == 3 }"
|
|
|
|
>3</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
class="shortcut"
|
|
|
|
href="#"
|
|
|
|
[routerLink]="['/administration/step/4']"
|
|
|
|
[ngClass]="{ 'is-active': pollService.step_current == 4 }"
|
|
|
|
>4</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
class="shortcut"
|
|
|
|
href="#"
|
|
|
|
[routerLink]="['/administration/step/5']"
|
|
|
|
[ngClass]="{ 'is-active': pollService.step_current == 5 }"
|
|
|
|
>5</a
|
|
|
|
>
|
2021-11-17 15:06:36 +01:00
|
|
|
<a
|
|
|
|
class="shortcut"
|
|
|
|
href="#"
|
|
|
|
[routerLink]="['/administration/step/6']"
|
|
|
|
[ngClass]="{ 'is-active': pollService.step_current == 6 }"
|
|
|
|
>6</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
class="shortcut"
|
|
|
|
href="#"
|
|
|
|
[routerLink]="['/administration/step/7']"
|
|
|
|
[ngClass]="{ 'is-active': pollService.step_current == 7 }"
|
|
|
|
>7</a
|
|
|
|
>
|
2021-11-14 15:26:26 +01:00
|
|
|
</div>
|
2021-12-17 11:42:20 +01:00
|
|
|
|
2021-11-16 16:35:27 +01:00
|
|
|
<div class="step-info">
|
2022-02-15 14:48:50 +01:00
|
|
|
<a class="logo-home-link logo-home-link-img pull-left" routerLink="/" routerLinkActive="active">
|
|
|
|
<img
|
|
|
|
class="stepper-app-logo"
|
|
|
|
*ngIf="environment.appLogo"
|
|
|
|
src="{{ environment.appLogo }}"
|
|
|
|
alt="accueil {{ environment.appTitle }}"
|
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
<h1 class="title-section">
|
|
|
|
<a class="logo-home-link pull-left" routerLink="/" routerLinkActive="active">
|
|
|
|
<span class="step-title-poll" *ngIf="pollService.step_current == 1">
|
|
|
|
{{ 'creation.title' | translate }}
|
|
|
|
</span>
|
|
|
|
</a>
|
2021-12-15 18:37:37 +01:00
|
|
|
|
2022-02-15 14:48:50 +01:00
|
|
|
<div *ngIf="pollService.step_current > 1">
|
|
|
|
<span class="step-title-poll poll-title-filled" *ngIf="pollService.form.value.title.length">
|
|
|
|
{{ pollService.form.value.title }}
|
2022-02-11 10:59:02 +01:00
|
|
|
</span>
|
2022-02-15 14:48:50 +01:00
|
|
|
<span class="step-title-poll poll-title-empty" *ngIf="!pollService.form.value.title.length">
|
|
|
|
{{ 'nav.no_title' | translate }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="step-counter-text">
|
|
|
|
{{ 'nav.step' | translate }} {{ step_current }} {{ 'nav.on' | translate }} {{ step_max }}
|
2021-11-17 15:16:47 +01:00
|
|
|
</div>
|
2022-02-15 14:48:50 +01:00
|
|
|
</h1>
|
|
|
|
<button class="is-visible-smallest-screen pull-right menu-button" (click)="toggle_mobile_menu()">
|
|
|
|
{{ 'nav.menu' | translate }}
|
|
|
|
<img class="icon" aria-hidden="true" src="assets/icons/book.svg" />
|
|
|
|
</button>
|
|
|
|
<div class="is-hidden-smallest-screen has-right-elements pull-right">
|
|
|
|
<app-language-selector class="nav-button"></app-language-selector>
|
|
|
|
<button
|
|
|
|
class="nav-button cancel-button-stepper"
|
|
|
|
(click)="showCancelDialog()"
|
|
|
|
id="display_cancel_popup_button"
|
|
|
|
aria-haspopup="dialog"
|
|
|
|
>
|
|
|
|
{{ 'nav.leave' | translate }}
|
|
|
|
</button>
|
2021-11-17 15:16:47 +01:00
|
|
|
</div>
|
2021-11-16 16:35:27 +01:00
|
|
|
</div>
|
2021-12-09 11:21:41 +01:00
|
|
|
<div class="step-bar-container"></div>
|
|
|
|
<div class="step-bar-progress" [ngStyle]="{ width: (step_current / step_max) * 100 + '%' }"></div>
|
2021-12-06 12:13:47 +01:00
|
|
|
|
|
|
|
<!-- modale pour quitter la création-->
|
|
|
|
<p-dialog
|
2022-02-10 14:50:05 +01:00
|
|
|
id="close_stepper"
|
2021-12-06 12:13:47 +01:00
|
|
|
[modal]="true"
|
|
|
|
[(visible)]="display_cancel_dialog"
|
|
|
|
[breakpoints]="{ '960px': '75vw' }"
|
2022-02-10 14:50:05 +01:00
|
|
|
[style]="{ width: '50vw', 'border-radius': '1rem' }"
|
2022-02-11 09:36:22 +01:00
|
|
|
[styleClass]="'roundToPercentWidth-borders'"
|
2021-12-06 12:13:47 +01:00
|
|
|
[draggable]="false"
|
2021-12-17 11:42:20 +01:00
|
|
|
[showHeader]="false"
|
2021-12-06 12:13:47 +01:00
|
|
|
[resizable]="false"
|
|
|
|
>
|
2021-12-17 11:42:20 +01:00
|
|
|
<ng-template pTemplate="titlebar">
|
2021-12-17 12:13:34 +01:00
|
|
|
<div class="top">
|
|
|
|
<button
|
|
|
|
id="close_dialog"
|
2022-02-15 14:15:40 +01:00
|
|
|
class="button cancel-button-reject pull-right img-marged-left has-no-border"
|
2021-12-17 12:13:34 +01:00
|
|
|
(click)="focusOnCancelButton()"
|
|
|
|
>
|
2022-02-10 14:50:05 +01:00
|
|
|
{{ 'SENTENCES.Close' | translate }}
|
|
|
|
<img class="icon" src="assets/icons/x_blue.svg" />
|
2021-12-17 12:13:34 +01:00
|
|
|
</button>
|
2021-12-17 11:42:20 +01:00
|
|
|
</div>
|
2021-12-17 17:47:57 +01:00
|
|
|
<h1 class="title">
|
2021-12-17 12:13:34 +01:00
|
|
|
{{ 'popup.cancel.title' | translate }}
|
|
|
|
</h1>
|
2022-02-10 14:50:05 +01:00
|
|
|
<p class="description">
|
2021-12-17 11:42:20 +01:00
|
|
|
{{ 'popup.cancel.main' | translate }}
|
|
|
|
</p>
|
|
|
|
</ng-template>
|
|
|
|
<ng-template pTemplate="footer">
|
|
|
|
<div class="columns">
|
2021-12-17 15:04:13 +01:00
|
|
|
<div class="column has-no-padding">
|
2022-02-10 14:50:05 +01:00
|
|
|
<button class="button cancel-button-reject-bottom is-outlined" (click)="focusOnCancelButton()">
|
2022-02-04 18:50:39 +01:00
|
|
|
{{ 'popup.cancel.reject' | translate }}
|
2021-12-17 15:04:13 +01:00
|
|
|
</button>
|
2022-02-10 14:50:05 +01:00
|
|
|
<button class="button cancel-button-confirm" (click)="goToHome()">
|
2022-02-08 13:44:17 +01:00
|
|
|
{{ 'popup.cancel.validate' | translate }}
|
|
|
|
</button>
|
2021-12-06 12:13:47 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
</p-dialog>
|
2022-02-11 10:59:02 +01:00
|
|
|
<div id="mobile_menu" *ngIf="display_mobile_menu">
|
2022-02-11 12:18:20 +01:00
|
|
|
<div class="menu-content">
|
|
|
|
<div class="padded">
|
|
|
|
<button
|
|
|
|
id="close_menu"
|
|
|
|
class="button cancel-button-reject pull-right img-marged-left"
|
2022-02-11 12:23:57 +01:00
|
|
|
(click)="display_mobile_menu = false"
|
2022-02-11 12:18:20 +01:00
|
|
|
>
|
|
|
|
{{ 'SENTENCES.Close' | translate }}
|
|
|
|
<img class="icon" src="assets/icons/x_blue.svg" />
|
|
|
|
</button>
|
|
|
|
<h2 class="title is-2 has-text-primary">Menu</h2>
|
|
|
|
<div class="langs">
|
|
|
|
<app-language-selector class="nav-button" [idSuffix]="'_mobile'"></app-language-selector>
|
|
|
|
</div>
|
|
|
|
<div class="actions">
|
|
|
|
<button
|
|
|
|
class="button cancel-button-stepper is-fullwidth"
|
|
|
|
(click)="showCancelDialog()"
|
|
|
|
id="display_cancel_popup_button_mobile"
|
|
|
|
aria-haspopup="dialog"
|
|
|
|
>
|
|
|
|
{{ 'nav.leave' | translate }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-11 11:43:50 +01:00
|
|
|
</div>
|
2022-02-11 10:59:02 +01:00
|
|
|
</div>
|
2021-11-07 14:52:49 +01:00
|
|
|
</section>
|