discourse/app/assets/javascripts/wizard/templates/components/wizard-step.hbs

49 lines
1.3 KiB
Handlebars
Raw Normal View History

<div class='wizard-step-contents'>
{{#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|}}
2016-09-16 16:12:56 -04:00
{{wizard-field field=field step=step wizard=wizard}}
{{/each}}
{{/wizard-step-form}}
</div>
2016-08-25 13:14:56 -04:00
<div class='wizard-step-footer'>
<div class='wizard-progress'>
<div class='text'>{{bound-i18n "wizard.step" current=step.displayIndex total=wizard.totalSteps}}</div>
2016-08-25 13:14:56 -04:00
<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}}
2016-08-25 13:14:56 -04:00
{{#if showNextButton}}
2016-09-13 15:14:17 -04:00
<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}}>
{{i18n "wizard.done"}}
</button>
{{/if}}
</div>
2016-08-25 13:14:56 -04:00
</div>