2016-08-26 01:14:56 +08:00
|
|
|
{{#if step.title}}
|
|
|
|
<h1 class='wizard-step-title'>{{step.title}}</h1>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if step.description}}
|
2016-09-01 01:35:49 +08:00
|
|
|
<p class='wizard-step-description'>{{{step.description}}}</p>
|
2016-08-26 01:14:56 +08:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#wizard-step-form step=step}}
|
|
|
|
{{#each step.fields as |field|}}
|
2016-09-02 23:42:14 +08:00
|
|
|
{{wizard-field field=field step=step}}
|
2016-08-26 01:14:56 +08:00
|
|
|
{{/each}}
|
|
|
|
{{/wizard-step-form}}
|
|
|
|
|
|
|
|
<div class='wizard-step-footer'>
|
|
|
|
<div class='wizard-progress'>
|
2016-09-01 01:35:49 +08:00
|
|
|
<div class='text'>{{bound-i18n "wizard.step" current=step.displayIndex total=wizard.totalSteps}}</div>
|
2016-08-26 01:14:56 +08:00
|
|
|
<div class='bar-container'>
|
|
|
|
<div class='bar-contents' style={{barStyle}}></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-09-01 01:35:49 +08:00
|
|
|
<div class='wizard-buttons'>
|
|
|
|
{{#if showBackButton}}
|
|
|
|
<button class='wizard-btn back' {{action "backStep"}} disabled={{saving}}>
|
|
|
|
{{fa-icon "chevron-left"}}
|
|
|
|
{{i18n "wizard.back"}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
2016-08-26 01:14:56 +08:00
|
|
|
|
2016-09-01 01:35:49 +08:00
|
|
|
{{#if showNextButton}}
|
|
|
|
<button class='wizard-btn next' {{action "nextStep"}} disabled={{saving}}>
|
|
|
|
{{i18n "wizard.next"}}
|
|
|
|
{{fa-icon "chevron-right"}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if showDoneButton}}
|
|
|
|
<button class='wizard-btn done' {{action "finished"}} disabled={{saving}}>
|
|
|
|
{{fa-icon "check"}}
|
|
|
|
{{i18n "wizard.done"}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2016-08-26 01:14:56 +08:00
|
|
|
|
|
|
|
</div>
|