2017-11-03 14:24:09 +01:00
|
|
|
<div class='wizard-step-contents'>
|
|
|
|
{{#if step.title}}
|
2019-06-19 06:32:03 +02:00
|
|
|
<h1 class='wizard-step-title'>{{cookedTitle}}</h1>
|
2017-11-03 14:24:09 +01:00
|
|
|
{{/if}}
|
2020-03-30 01:53:28 +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">
|
|
|
|
<img src={{bannerImage}}>
|
|
|
|
</div>
|
2018-01-30 14:19:32 +01:00
|
|
|
{{/if}}
|
|
|
|
|
2020-03-30 01:53:28 +02:00
|
|
|
{{#if step.description}}
|
|
|
|
<div class='wizard-step-description'>{{cookedDescription}}</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2017-11-03 14:24:09 +01:00
|
|
|
{{#wizard-step-form step=step}}
|
|
|
|
{{#each step.fields as |field|}}
|
|
|
|
{{wizard-field field=field step=step wizard=wizard}}
|
|
|
|
{{/each}}
|
|
|
|
{{/wizard-step-form}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='wizard-step-footer'>
|
|
|
|
|
|
|
|
<div class='wizard-progress'>
|
|
|
|
<div class='white'></div>
|
|
|
|
<div class='black' style={{barStyle}}></div>
|
|
|
|
<div class='screen'></div>
|
2020-11-26 06:45:30 +01:00
|
|
|
<span>{{wizard-i18n "wizard.step" current=step.displayIndex total=wizard.totalSteps}}</span>
|
2017-11-03 14:24:09 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='wizard-buttons'>
|
2017-12-25 14:29:06 +01:00
|
|
|
{{#if saving}}
|
|
|
|
{{loading-spinner size='small'}}
|
|
|
|
{{else}}
|
2017-12-25 14:49:25 +01:00
|
|
|
{{#if showQuitButton}}
|
2020-11-26 06:45:30 +01:00
|
|
|
<a href {{action "quit"}} class='action-link quit' tabindex="11">{{wizard-i18n "wizard.quit"}}</a>
|
2017-12-25 14:49:25 +01:00
|
|
|
{{/if}}
|
2017-12-25 14:29:06 +01:00
|
|
|
{{#if showBackButton}}
|
2020-11-26 06:45:30 +01:00
|
|
|
<a href {{action "backStep"}} class='action-link back' tabindex="11">{{wizard-i18n "wizard.back"}}</a>
|
2017-12-25 14:29:06 +01:00
|
|
|
{{/if}}
|
2017-11-03 14:24:09 +01:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if showNextButton}}
|
|
|
|
<button class='wizard-btn next primary' {{action "nextStep"}} disabled={{saving}} tabindex="10">
|
2020-11-26 06:45:30 +01:00
|
|
|
{{wizard-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}}
|
|
|
|
<button class='wizard-btn done' {{action "done"}} disabled={{saving}} tabindex="10">
|
2020-11-26 06:45:30 +01:00
|
|
|
{{wizard-i18n "wizard.done"}}
|
2017-11-03 14:24:09 +01:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|