2022-07-26 21:23:01 -04:00
|
|
|
<div class="wizard-container__step-contents">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.step.title}}
|
2022-07-26 21:23:01 -04:00
|
|
|
<h1 class="wizard-container__step-title">{{this.step.title}}</h1>
|
2016-09-16 12:04:40 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2022-07-26 21:23:01 -04:00
|
|
|
<div class="wizard-container__step-container">
|
|
|
|
{{#if this.step.fields}}
|
|
|
|
<WizardStepForm @step={{this.step}}>
|
|
|
|
{{#if this.includeSidebar}}
|
|
|
|
<div class="wizard-container__sidebar">
|
|
|
|
{{#each this.step.fields as |field|}}
|
|
|
|
{{#if field.show_in_sidebar}}
|
|
|
|
<WizardField @field={{field}} @step={{this.step}} @wizard={{this.wizard}} />
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="wizard-container__fields">
|
|
|
|
{{#each this.step.fields as |field|}}
|
|
|
|
{{#unless field.show_in_sidebar}}
|
|
|
|
<WizardField @field={{field}} @step={{this.step}} @wizard={{this.wizard}} />
|
|
|
|
{{/unless}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</WizardStepForm>
|
2020-04-01 09:36:50 -04:00
|
|
|
{{/if}}
|
2022-07-26 21:23:01 -04:00
|
|
|
{{#if (or this.bannerImage this.step.description)}}
|
|
|
|
<div class={{this.bannerAndDescriptionClass}}>
|
|
|
|
{{#if this.step.description}}
|
|
|
|
<p class="wizard-container__step-description">{{html-safe this.step.description}}</p>
|
|
|
|
{{/if}}
|
2016-09-20 13:25:56 -04:00
|
|
|
|
2022-07-26 21:23:01 -04:00
|
|
|
{{#if this.bannerImage}}
|
|
|
|
<img src={{this.bannerImage}} class="wizard-container__step-banner-image">
|
|
|
|
{{/if}}
|
2021-08-25 17:10:12 -04:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2022-07-26 21:23:01 -04:00
|
|
|
</div>
|
2016-09-16 12:04:40 -04:00
|
|
|
</div>
|
2016-08-25 13:14:56 -04:00
|
|
|
|
2022-07-26 21:23:01 -04:00
|
|
|
<div class="wizard-container__step-footer">
|
2016-08-25 13:14:56 -04:00
|
|
|
|
2022-07-26 21:23:01 -04:00
|
|
|
<div class="wizard-container__buttons">
|
2016-09-14 16:36:08 -04:00
|
|
|
|
2022-08-01 05:19:09 -04:00
|
|
|
{{#if this.showJumpInButton}}
|
2022-07-26 21:23:01 -04:00
|
|
|
<button {{action "quit"}} disabled={{this.saving}} type="button" class="wizard-container__button jump-in">
|
2022-08-01 05:19:09 -04:00
|
|
|
{{i18n "wizard.jump_in"}}
|
2019-02-19 07:32:01 -05:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.showNextButton}}
|
2022-07-26 21:23:01 -04:00
|
|
|
<button {{action "nextStep"}} disabled={{this.saving}} type="button" class="wizard-container__button primary {{this.nextButtonClass}}">
|
|
|
|
{{i18n this.nextButtonLabel}}
|
2016-08-31 13:35:49 -04:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-26 21:23:01 -04:00
|
|
|
{{#if this.showFinishButton}}
|
2022-08-01 05:19:09 -04:00
|
|
|
<button {{action "exitEarly"}} disabled={{this.saving}} type="button" class="wizard-container__button {{this.finishButtonClass}}">
|
|
|
|
{{i18n this.finishButtonLabel}}
|
2016-08-31 13:35:49 -04:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
2022-07-26 21:23:01 -04:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="wizard-container__step-progress">
|
|
|
|
<a href {{action "backStep"}} class="wizard-container__link back {{unless this.showBackButton "inactive"}}">{{d-icon "chevron-left"}}</a>
|
|
|
|
|
|
|
|
<span class="wizard-container__step-text">{{bound-i18n "wizard.step-text"}}</span>
|
|
|
|
<span class="wizard-container__step-count">{{bound-i18n "wizard.step" current=this.step.displayIndex total=this.wizard.totalSteps}}</span>
|
|
|
|
|
|
|
|
<a href {{action "nextStep"}} class="wizard-container__link {{unless this.showNextButton "inactive"}}">{{d-icon "chevron-right"}}</a>
|
|
|
|
|
2016-08-31 13:35:49 -04:00
|
|
|
</div>
|
2016-08-25 13:14:56 -04:00
|
|
|
|
|
|
|
</div>
|