2021-04-12 16:19:53 +02:00
|
|
|
<div class="wizard-step-contents">
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.step.title}}
|
|
|
|
<h1 class="wizard-step-title">{{this.cookedTitle}}</h1>
|
2017-11-03 14:24:09 +01:00
|
|
|
{{/if}}
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.bannerImage}}
|
2018-02-10 08:04:31 +01:00
|
|
|
<div class="wizard-step-banner">
|
2024-11-22 16:45:50 +01:00
|
|
|
<img src={{this.bannerImage}} />
|
2018-02-10 08:04:31 +01:00
|
|
|
</div>
|
2018-01-30 14:19:32 +01:00
|
|
|
{{/if}}
|
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.step.description}}
|
|
|
|
<div class="wizard-step-description">{{this.cookedDescription}}</div>
|
2020-03-30 01:53:28 +02:00
|
|
|
{{/if}}
|
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#custom-wizard-step-form step=this.step}}
|
|
|
|
{{#each this.step.fields as |field|}}
|
|
|
|
{{custom-wizard-field field=field step=this.step wizard=this.wizard}}
|
2017-11-03 14:24:09 +01:00
|
|
|
{{/each}}
|
2022-07-28 21:12:36 +02:00
|
|
|
{{/custom-wizard-step-form}}
|
2017-11-03 14:24:09 +01:00
|
|
|
</div>
|
|
|
|
|
2021-04-12 16:19:53 +02:00
|
|
|
<div class="wizard-step-footer">
|
2017-11-03 14:24:09 +01:00
|
|
|
|
2021-04-12 16:19:53 +02:00
|
|
|
<div class="wizard-progress">
|
|
|
|
<div class="white"></div>
|
2024-11-22 16:45:50 +01:00
|
|
|
<div class="black" style={{this.barStyle}}></div>
|
2021-04-12 16:19:53 +02:00
|
|
|
<div class="screen"></div>
|
2023-07-10 08:55:54 +02:00
|
|
|
<span>{{i18n
|
|
|
|
"wizard.step"
|
2024-11-22 16:45:50 +01:00
|
|
|
current=this.step.displayIndex
|
|
|
|
total=this.wizard.totalSteps
|
2023-07-10 08:55:54 +02:00
|
|
|
}}</span>
|
2017-11-03 14:24:09 +01:00
|
|
|
</div>
|
|
|
|
|
2021-04-12 16:19:53 +02:00
|
|
|
<div class="wizard-buttons">
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.saving}}
|
2021-04-12 16:19:53 +02:00
|
|
|
{{loading-spinner size="small"}}
|
2017-12-25 14:29:06 +01:00
|
|
|
{{else}}
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.showQuitButton}}
|
2023-07-10 08:55:54 +02:00
|
|
|
<a
|
|
|
|
href
|
|
|
|
{{action "quit"}}
|
|
|
|
class="action-link quit"
|
2024-11-22 16:45:50 +01:00
|
|
|
tabindex={{this.secondaryButtonIndex}}
|
2023-07-10 08:55:54 +02:00
|
|
|
>{{i18n "wizard.quit"}}</a>
|
2017-12-25 14:49:25 +01:00
|
|
|
{{/if}}
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.showBackButton}}
|
2023-07-10 08:55:54 +02:00
|
|
|
<a
|
|
|
|
href
|
|
|
|
{{action "backStep"}}
|
|
|
|
class="action-link back"
|
2024-11-22 16:45:50 +01:00
|
|
|
tabindex={{this.secondaryButtonIndex}}
|
2023-07-10 08:55:54 +02:00
|
|
|
>{{i18n "wizard.back"}}</a>
|
2017-12-25 14:29:06 +01:00
|
|
|
{{/if}}
|
2017-11-03 14:24:09 +01:00
|
|
|
{{/if}}
|
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.showNextButton}}
|
2023-07-10 08:55:54 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="wizard-btn next primary"
|
|
|
|
{{action "nextStep"}}
|
2024-11-22 16:45:50 +01:00
|
|
|
disabled={{this.btnsDisabled}}
|
|
|
|
tabindex={{this.primaryButtonIndex}}
|
2023-07-10 08:55:54 +02:00
|
|
|
>
|
2022-07-26 16:18:09 +02:00
|
|
|
{{i18n "wizard.next"}}
|
2017-12-25 14:29:06 +01:00
|
|
|
{{d-icon "chevron-right"}}
|
2017-11-03 14:24:09 +01:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.showDoneButton}}
|
2023-07-10 08:55:54 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="wizard-btn done"
|
|
|
|
{{action "done"}}
|
2024-11-22 16:45:50 +01:00
|
|
|
disabled={{this.btnsDisabled}}
|
|
|
|
tabindex={{this.primaryButtonIndex}}
|
2023-07-10 08:55:54 +02:00
|
|
|
>
|
2022-07-28 21:26:35 +02:00
|
|
|
{{i18n "wizard.done_custom"}}
|
2017-11-03 14:24:09 +01:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
2023-07-10 08:55:54 +02:00
|
|
|
</div>
|