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