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

Failed to ignore revisions in .git-blame-ignore-revs.

60 lines
1.7 KiB
Handlebars
Raw Normal View History

<div class='wizard-step-contents'>
{{#if step.title}}
<h1 class='wizard-step-title'>{{step.title}}</h1>
{{/if}}
{{#if bannerImage}}
<img src={{bannerImage}} class="wizard-step-banner">
{{/if}}
{{#if step.description}}
<p class='wizard-step-description'>{{html-safe 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'>
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>
<div class='black' style={{barStyle}}></div>
<div class='screen'></div>
<span>{{bound-i18n "wizard.step" current=step.displayIndex total=wizard.totalSteps}}</span>
2016-08-25 13:14:56 -04:00
</div>
<div class='wizard-buttons'>
{{#if showQuitButton}}
<a href {{action "quit"}} class='action-link quit' tabindex="11">{{i18n "wizard.quit"}}</a>
{{/if}}
{{#if showFinishButton}}
<button class='wizard-btn finish' {{action "exitEarly"}} disabled={{saving}} tabindex="10">
{{i18n "wizard.finish"}}
</button>
{{/if}}
{{#if showBackButton}}
<a href {{action "backStep"}} class='action-link back' tabindex="11">{{i18n "wizard.back"}}</a>
{{/if}}
2016-08-25 13:14:56 -04:00
{{#if showNextButton}}
<button class='wizard-btn next primary' {{action "nextStep"}} disabled={{saving}} tabindex="10">
{{i18n "wizard.next"}}
{{d-icon "chevron-right"}}
</button>
{{/if}}
{{#if showDoneButton}}
<button class='wizard-btn done' {{action "quit"}} disabled={{saving}} tabindex="10">
{{i18n "wizard.done"}}
</button>
{{/if}}
</div>
2016-08-25 13:14:56 -04:00
</div>