mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 08:11:15 -05:00
47 lines
1.3 KiB
Handlebars
47 lines
1.3 KiB
Handlebars
{{#if step.title}}
|
|
<h1 class='wizard-step-title'>{{step.title}}</h1>
|
|
{{/if}}
|
|
|
|
{{#if step.description}}
|
|
<p class='wizard-step-description'>{{{step.description}}}</p>
|
|
{{/if}}
|
|
|
|
{{#wizard-step-form step=step}}
|
|
{{#each step.fields as |field|}}
|
|
{{wizard-field field=field step=step}}
|
|
{{/each}}
|
|
{{/wizard-step-form}}
|
|
|
|
<div class='wizard-step-footer'>
|
|
<div class='wizard-progress'>
|
|
<div class='text'>{{bound-i18n "wizard.step" current=step.displayIndex total=wizard.totalSteps}}</div>
|
|
<div class='bar-container'>
|
|
<div class='bar-contents' style={{barStyle}}></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class='wizard-buttons'>
|
|
{{#if showQuitButton}}
|
|
<a href {{action "quit"}} class='action-link quit'>{{i18n "wizard.quit"}}</a>
|
|
{{/if}}
|
|
|
|
{{#if showBackButton}}
|
|
<a href {{action "backStep"}} class='action-link back'>{{i18n "wizard.back"}}</a>
|
|
{{/if}}
|
|
|
|
{{#if showNextButton}}
|
|
<button class='wizard-btn next primary' {{action "nextStep"}} disabled={{saving}}>
|
|
{{i18n "wizard.next"}}
|
|
{{fa-icon "chevron-right"}}
|
|
</button>
|
|
{{/if}}
|
|
|
|
{{#if showDoneButton}}
|
|
<button class='wizard-btn done' {{action "quit"}} disabled={{saving}}>
|
|
{{fa-icon "check"}}
|
|
{{i18n "wizard.done"}}
|
|
</button>
|
|
{{/if}}
|
|
</div>
|
|
|
|
</div>
|