2016-09-16 12:04:40 -04:00
|
|
|
<div class="wizard-step-contents">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.step.title}}
|
|
|
|
<h1 class="wizard-step-title">{{this.step.title}}</h1>
|
2016-09-16 12:04:40 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<div class={{this.bannerAndDescriptionClass}}>
|
|
|
|
{{#if this.bannerImage}}
|
|
|
|
<img src={{this.bannerImage}} class="wizard-step-banner">
|
2020-04-01 09:36:50 -04:00
|
|
|
{{/if}}
|
2016-09-20 13:25:56 -04:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.step.description}}
|
|
|
|
<p class="wizard-step-description">{{html-safe this.step.description}}</p>
|
2020-04-01 09:36:50 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2016-09-16 12:04:40 -04:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
<WizardStepForm @step={{this.step}}>
|
|
|
|
{{#if this.includeSidebar}}
|
2021-08-25 17:10:12 -04:00
|
|
|
<div class="wizard-fields-sidebar">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.step.fields as |field|}}
|
2021-08-25 17:10:12 -04:00
|
|
|
{{#if field.show_in_sidebar}}
|
2022-07-05 13:41:31 -04:00
|
|
|
<WizardField @field={{field}} @step={{this.step}} @wizard={{this.wizard}} />
|
2021-08-25 17:10:12 -04:00
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="wizard-fields-main">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.step.fields as |field|}}
|
2021-08-25 17:10:12 -04:00
|
|
|
{{#unless field.show_in_sidebar}}
|
2022-07-05 13:41:31 -04:00
|
|
|
<WizardField @field={{field}} @step={{this.step}} @wizard={{this.wizard}} />
|
2021-08-25 17:10:12 -04:00
|
|
|
{{/unless}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
2022-06-30 06:30:50 -04:00
|
|
|
</WizardStepForm>
|
2016-09-16 12:04:40 -04:00
|
|
|
</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>
|
2022-07-05 13:41:31 -04:00
|
|
|
<div style={{this.barStyle}} class="black"></div>
|
2016-09-20 14:04:18 -04:00
|
|
|
<div class="screen"></div>
|
2022-07-05 13:41:31 -04:00
|
|
|
<span>{{bound-i18n "wizard.step" current=this.step.displayIndex total=this.wizard.totalSteps}}</span>
|
2016-08-25 13:14:56 -04:00
|
|
|
</div>
|
|
|
|
|
2016-08-31 13:35:49 -04:00
|
|
|
<div class="wizard-buttons">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.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}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.showFinishButton}}
|
|
|
|
<button {{action "exitEarly"}} disabled={{this.saving}} tabindex="10" type="button" class="wizard-btn finish">
|
2019-02-19 07:32:01 -05:00
|
|
|
{{i18n "wizard.finish"}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.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
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.showNextButton}}
|
|
|
|
<button {{action "nextStep"}} disabled={{this.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}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.showDoneButton}}
|
|
|
|
<button {{action "quit"}} disabled={{this.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>
|