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-11-16 16:35:27 +01:00
|
|
|
<div class="step-info">
|
2021-12-09 10:38:13 +01:00
|
|
|
<div class="columns half-columns">
|
2021-12-02 16:19:08 +01:00
|
|
|
<div class="column">
|
2021-12-09 10:38:13 +01:00
|
|
|
<a
|
|
|
|
class="navbar-item is-block pull-left is-hidden-mobile"
|
|
|
|
[routerLink]="['/']"
|
|
|
|
routerLinkActive="active"
|
|
|
|
>
|
|
|
|
<img src="assets/img/icone_home.png" alt="accueil FramaDate" />
|
|
|
|
</a>
|
2021-12-02 16:19:08 +01:00
|
|
|
<h2 class="step-title-poll" *ngIf="pollService.step_current == 1">
|
|
|
|
{{ 'creation.title' | translate }}
|
|
|
|
</h2>
|
|
|
|
<h2 class="step-title-poll" *ngIf="pollService.step_current >= 2">
|
2021-12-09 10:38:13 +01:00
|
|
|
<span class="poll-title-filled" *ngIf="pollService.form.value.title.length">
|
|
|
|
{{ pollService.form.value.title }}
|
|
|
|
</span>
|
|
|
|
<span class="poll-title-empty" *ngIf="!pollService.form.value.title.length">
|
|
|
|
(Aucun titre)
|
|
|
|
</span>
|
2021-12-02 16:19:08 +01:00
|
|
|
</h2>
|
2021-11-29 13:00:01 +01:00
|
|
|
<h3 class="step-counter-text">Étape {{ step_current }} sur {{ step_max }}</h3>
|
2021-11-17 15:16:47 +01:00
|
|
|
</div>
|
2021-12-09 10:38:13 +01:00
|
|
|
<div class="column has-text-right">
|
2021-12-02 15:52:08 +01:00
|
|
|
<a class="cancel-button" (click)="showCancelDialog()"> Annuler <i class="fa fa-times"></i> </a>
|
2021-11-17 15:16:47 +01:00
|
|
|
</div>
|
|
|
|
</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
|
|
|
|
header="Quitter?"
|
|
|
|
[modal]="true"
|
|
|
|
[(visible)]="display_cancel_dialog"
|
|
|
|
[breakpoints]="{ '960px': '75vw' }"
|
|
|
|
[style]="{ width: '50vw' }"
|
|
|
|
[draggable]="false"
|
|
|
|
[resizable]="false"
|
|
|
|
>
|
|
|
|
<p>Souhaitez-vous vraiment quitter le sondage ? Toutes les informations seront effacées.</p>
|
|
|
|
<ng-template pTemplate="footer">
|
|
|
|
<div class="columns">
|
2021-12-06 12:25:39 +01:00
|
|
|
<div class="column is-half-mobile">
|
2021-12-06 12:13:47 +01:00
|
|
|
<button class="button is-warning is-fullwidth cancel-button-confirm" (click)="goToHome()">
|
|
|
|
Quitter
|
|
|
|
</button>
|
|
|
|
</div>
|
2021-12-06 12:25:39 +01:00
|
|
|
<div class="column is-half-mobile">
|
2021-12-06 12:13:47 +01:00
|
|
|
<button
|
|
|
|
class="button is-primary is-fullwidth cancel-button-reject"
|
|
|
|
(click)="display_cancel_dialog = false"
|
|
|
|
>
|
|
|
|
Rester
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
</p-dialog>
|
2021-11-07 14:52:49 +01:00
|
|
|
</section>
|