92 lines
2.3 KiB
HTML
92 lines
2.3 KiB
HTML
<section class="creation-stepper" id="creation_stepper">
|
|
<div class="shortcuts">
|
|
<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">
|
|
<h2 classs="title is-2" *ngIf="pollService.step_current == 1">
|
|
{{ 'creation.title' | translate }}
|
|
</h2>
|
|
<h2 class="title is-3" *ngIf="pollService.step_current > 1">
|
|
<span class="poll-title">
|
|
{{ pollService.form.value.title }}
|
|
</span>
|
|
</h2>
|
|
<h3 class="title is-2">Étape {{ step_current }} sur {{ step_max }}</h3>
|
|
</div>
|
|
<div class="step-bar-container" style="width: 100%;">
|
|
<div class="step-bar-progress" [ngStyle]="{ width: (step_current / step_max) * 100 + '%' }"></div>
|
|
</div>
|
|
|
|
<!-- modale de confirmation pour quitter-->
|
|
<p-confirmDialog #cd [style]="{ width: '50vw' }">
|
|
<ng-template pTemplate="header">
|
|
<h3>{{ 'creation.dialog' | translate }}</h3>
|
|
</ng-template>
|
|
<ng-template pTemplate="footer">
|
|
<button
|
|
type="button"
|
|
pButton
|
|
icon="pi pi-times"
|
|
[label]="'dialogs.no' | translate"
|
|
(click)="cd.reject()"
|
|
></button>
|
|
<button
|
|
type="button"
|
|
pButton
|
|
icon="pi pi-check"
|
|
[label]="'dialogs.yes' | translate"
|
|
(click)="cd.accept()"
|
|
></button>
|
|
</ng-template>
|
|
</p-confirmDialog>
|
|
<a href="#creation_stepper" (click)="cancelDialog()"></a>
|
|
</section>
|