funky-framadate-front/src/app/features/administration/stepper/stepper.component.html

183 lines
5.3 KiB
HTML
Raw Normal View History

2022-02-16 15:41:09 +01:00
<header class="creation-stepper" id="creation_stepper" role="header">
<app-skip-links [optionnal_step]="optionnal_step"></app-skip-links>
<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>
2022-03-01 16:59:28 +01:00
<p class="title-section">
<span class="logo-home-link pull-left">
2022-02-15 14:48:50 +01:00
<span class="step-title-poll" *ngIf="pollService.step_current == 1">
{{ 'creation.title' | translate }}
</span>
</span>
2021-12-15 18:37:37 +01:00
2022-02-16 11:53:53 +01:00
<span *ngIf="pollService.step_current > 1">
2022-02-15 14:48:50 +01:00
<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>
2022-02-16 11:53:53 +01:00
</span>
<span class="step-counter-text">
2022-02-15 14:48:50 +01:00
{{ 'nav.step' | translate }} {{ step_current }} {{ 'nav.on' | translate }} {{ step_max }}
2022-02-16 11:53:53 +01:00
</span>
2022-03-01 16:59:28 +01:00
</p>
<button
class="is-visible-smallest-screen pull-right menu-button is-filtered-icon-primary has-background-menu"
(click)="toggle_mobile_menu()"
>
<!-- {{ 'nav.menu' | translate }}-->
2022-02-15 14:48:50 +01:00
</button>
<div class="is-hidden-smallest-screen has-right-elements pull-right">
<app-language-selector class="nav-button"></app-language-selector>
<button
2022-03-10 09:52:35 +01:00
class="is-secondary is-thin cancel-button-stepper"
2022-02-15 14:48:50 +01:00
(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-->
<dialog>
<p-dialog
id="close_stepper"
[modal]="true"
[(visible)]="display_cancel_dialog"
[breakpoints]="{ '600px': '75vw', '400px': '95vw' }"
[style]="{ width: '486px', 'border-radius': '1rem' }"
[styleClass]="'roundToPercentWidth-borders'"
[draggable]="false"
[showHeader]="false"
[resizable]="false"
>
<ng-template pTemplate="titlebar">
<button
id="close_dialog"
class="button cancel-button-reject pull-right img-marged-left has-no-border is-closing-popup"
(click)="focusOnCancelButton()"
>
{{ 'SENTENCES.Close' | translate }}
<img class="icon" src="assets/icons/x_blue.svg" />
</button>
<h1 class="title is-1">
{{ 'popup.cancel.title' | translate }}
</h1>
<p class="description">
{{ 'popup.cancel.main' | translate }}
</p>
</ng-template>
<ng-template pTemplate="footer">
<div class="">
<div class="has-no-padding">
<button class="button cancel-button-reject-bottom is-secondary" (click)="focusOnCancelButton()">
{{ 'popup.cancel.reject' | translate }}
</button>
<button class="button cancel-button-confirm is-primary" (click)="goToHome()">
{{ 'popup.cancel.validate' | translate }}
</button>
</div>
2021-12-06 12:13:47 +01:00
</div>
</ng-template>
</p-dialog>
</dialog>
2022-03-15 11:38:23 +01:00
<!-- menu mobile-->
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 has-text-right has-no-border is-closing-popup"
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 fa" src="assets/icons/x_blue.svg" />
2022-02-11 12:18:20 +01:00
</button>
2022-03-15 11:38:23 +01:00
<div class="mobile-menu-content min-height">
<h2 class="title is-2 has-text-primary">
{{ 'nav.menu' | translate }}
</h2>
<div class="marged-v">
<div class="langs">
<app-language-selector class="nav-button" [idSuffix]="'_mobile'"></app-language-selector>
</div>
</div>
2022-02-11 12:18:20 +01:00
</div>
<div class="actions">
<button
2022-03-15 11:38:23 +01:00
class="marged-v button is-fullwidth is-secondary"
(click)="display_mobile_menu = false"
2022-02-11 12:18:20 +01:00
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>
2022-02-16 15:41:09 +01:00
</header>