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