2016-09-16 12:04:40 -04:00
|
|
|
<div class="wizard-step-contents">
|
|
|
|
{{#if step.title}}
|
|
|
|
<h1 class="wizard-step-title">{{step.title}}</h1>
|
|
|
|
{{/if}}
|
|
|
|
|
2020-04-01 09:36:50 -04:00
|
|
|
<div class={{bannerAndDescriptionClass}}>
|
|
|
|
{{#if bannerImage}}
|
|
|
|
<img src={{bannerImage}} class="wizard-step-banner">
|
|
|
|
{{/if}}
|
2016-09-20 13:25:56 -04:00
|
|
|
|
2020-04-01 09:36:50 -04:00
|
|
|
{{#if step.description}}
|
|
|
|
<p class="wizard-step-description">{{html-safe step.description}}</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2016-09-16 12:04:40 -04:00
|
|
|
|
|
|
|
{{#wizard-step-form step=step}}
|
|
|
|
{{#each step.fields as |field|}}
|
2016-09-16 16:12:56 -04:00
|
|
|
{{wizard-field field=field step=step wizard=wizard}}
|
2016-09-16 12:04:40 -04:00
|
|
|
{{/each}}
|
|
|
|
{{/wizard-step-form}}
|
|
|
|
</div>
|
2016-08-25 13:14:56 -04:00
|
|
|
|
|
|
|
<div class="wizard-step-footer">
|
2016-09-20 14:04:18 -04:00
|
|
|
|
2016-08-25 13:14:56 -04:00
|
|
|
<div class="wizard-progress">
|
2016-09-20 14:04:18 -04:00
|
|
|
<div class="white"></div>
|
|
|
|
<div style={{barStyle}} class="black"></div>
|
|
|
|
<div class="screen"></div>
|
|
|
|
<span>{{bound-i18n "wizard.step" current=step.displayIndex total=wizard.totalSteps}}</span>
|
2016-08-25 13:14:56 -04:00
|
|
|
</div>
|
|
|
|
|
2016-08-31 13:35:49 -04:00
|
|
|
<div class="wizard-buttons">
|
2016-09-14 16:36:08 -04:00
|
|
|
{{#if showQuitButton}}
|
2016-09-22 13:38:40 -04:00
|
|
|
<a href {{action "quit"}} tabindex="11" class="action-link quit">{{i18n "wizard.quit"}}</a>
|
2016-09-14 16:36:08 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2019-02-19 07:32:01 -05:00
|
|
|
{{#if showFinishButton}}
|
2020-04-13 18:22:35 -04:00
|
|
|
<button {{action "exitEarly"}} disabled={{saving}} tabindex="10" type="button" class="wizard-btn finish">
|
2019-02-19 07:32:01 -05:00
|
|
|
{{i18n "wizard.finish"}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
|
2016-08-31 13:35:49 -04:00
|
|
|
{{#if showBackButton}}
|
2016-09-22 13:38:40 -04:00
|
|
|
<a href {{action "backStep"}} tabindex="11" class="action-link back">{{i18n "wizard.back"}}</a>
|
2016-08-31 13:35:49 -04:00
|
|
|
{{/if}}
|
2016-08-25 13:14:56 -04:00
|
|
|
|
2016-08-31 13:35:49 -04:00
|
|
|
{{#if showNextButton}}
|
2020-04-13 18:22:35 -04:00
|
|
|
<button {{action "nextStep"}} disabled={{saving}} tabindex="10" type="button" class="wizard-btn next primary">
|
2016-08-31 13:35:49 -04:00
|
|
|
{{i18n "wizard.next"}}
|
2017-07-26 16:25:09 -04:00
|
|
|
{{d-icon "chevron-right"}}
|
2016-08-31 13:35:49 -04:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if showDoneButton}}
|
2020-04-13 18:22:35 -04:00
|
|
|
<button {{action "quit"}} disabled={{saving}} tabindex="10" type="button" class="wizard-btn done">
|
2016-08-31 13:35:49 -04:00
|
|
|
{{i18n "wizard.done"}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2016-08-25 13:14:56 -04:00
|
|
|
|
|
|
|
</div>
|