mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
144 lines
3.9 KiB
HTML
144 lines
3.9 KiB
HTML
<section class="creation-stepper" id="creation_stepper">
|
|
<div class="shortcuts" *ngIf="environment.showStepperShortcuts">
|
|
<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
|
|
>
|
|
<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
|
|
>
|
|
</div>
|
|
|
|
<div class="step-info">
|
|
<div class="columns half-columns">
|
|
<div class="column">
|
|
<a
|
|
class="logo-home-link navbar-item pull-left is-hidden-mobile"
|
|
[routerLink]="['/']"
|
|
routerLinkActive="active"
|
|
>
|
|
<img
|
|
class="stepper-app-logo logo"
|
|
*ngIf="environment.appLogo"
|
|
src="{{ environment.appLogo }}"
|
|
alt="accueil {{ environment.appTitle }}"
|
|
/>
|
|
</a>
|
|
<h1>
|
|
<span class="step-title-poll" *ngIf="pollService.step_current == 1">
|
|
{{ 'creation.title' | translate }}
|
|
</span>
|
|
|
|
<span *ngIf="pollService.step_current > 1">
|
|
<span class="step-title-poll poll-title-filled" *ngIf="pollService.form.value.title.length">
|
|
{{ pollService.form.value.title }}
|
|
</span>
|
|
<span class="step-title-poll poll-title-empty" *ngIf="!pollService.form.value.title.length">
|
|
{{ 'nav.no_title' | translate }}
|
|
</span>
|
|
</span>
|
|
<span class="step-counter-text"
|
|
>{{ 'nav.step' | translate }} {{ step_current }} {{ 'nav.on' | translate }} {{ step_max }}
|
|
</span>
|
|
</h1>
|
|
</div>
|
|
<div class="column has-text-right">
|
|
<app-language-selector class="nav-button"></app-language-selector>
|
|
<button
|
|
class="has-no-border nav-button cancel-button"
|
|
(click)="showCancelDialog()"
|
|
id="display_cancel_popup_button"
|
|
aria-haspopup="dialog"
|
|
>
|
|
{{ 'nav.leave' | translate }} <i class="fa fa-times"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="step-bar-container"></div>
|
|
<div class="step-bar-progress" [ngStyle]="{ width: (step_current / step_max) * 100 + '%' }"></div>
|
|
|
|
<!-- modale pour quitter la création-->
|
|
<p-dialog
|
|
[modal]="true"
|
|
[(visible)]="display_cancel_dialog"
|
|
[breakpoints]="{ '960px': '75vw' }"
|
|
[style]="{ width: '50vw' }"
|
|
[draggable]="false"
|
|
[showHeader]="false"
|
|
[resizable]="false"
|
|
>
|
|
<ng-template pTemplate="titlebar">
|
|
<div class="top">
|
|
<button
|
|
id="close_dialog"
|
|
class="button is-primary cancel-button-reject pull-right"
|
|
(click)="focusOnCancelButton()"
|
|
>
|
|
{{ 'SENTENCES.Close' | translate }} <i class="fa fa-times"></i>
|
|
</button>
|
|
</div>
|
|
<h1 class="title">
|
|
{{ 'popup.cancel.title' | translate }}
|
|
</h1>
|
|
<p>
|
|
{{ 'popup.cancel.main' | translate }}
|
|
</p>
|
|
</ng-template>
|
|
<ng-template pTemplate="footer">
|
|
<div class="columns">
|
|
<div class="column has-no-padding">
|
|
<button class="button cancel-button-confirm is-outlined" (click)="focusOnCancelButton()">
|
|
{{ 'popup.cancel.reject' | translate }}
|
|
</button>
|
|
<button class="button is-primary cancel-button-reject-bottom" (click)="goToHome()">
|
|
{{ 'popup.cancel.validate' | translate }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</ng-template>
|
|
</p-dialog>
|
|
</section>
|