mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 03:56:32 +08:00
c03d25f170
Adds a "Step 0" to the wizard if the site has no admin accounts where the user is prompted to finish setting up their admin account from the list of acceptable email addresses. Once confirmed, the wizard begins.
54 lines
1.5 KiB
Handlebars
54 lines
1.5 KiB
Handlebars
<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'>{{{step.description}}}</p>
|
|
{{/if}}
|
|
|
|
{{#wizard-step-form step=step}}
|
|
{{#each step.fields as |field|}}
|
|
{{wizard-field field=field step=step wizard=wizard}}
|
|
{{/each}}
|
|
{{/wizard-step-form}}
|
|
</div>
|
|
|
|
<div class='wizard-step-footer'>
|
|
|
|
<div class='wizard-progress'>
|
|
<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>
|
|
</div>
|
|
|
|
<div class='wizard-buttons'>
|
|
{{#if showQuitButton}}
|
|
<a href {{action "quit"}} class='action-link quit' tabindex="11">{{i18n "wizard.quit"}}</a>
|
|
{{/if}}
|
|
|
|
{{#if showBackButton}}
|
|
<a href {{action "backStep"}} class='action-link back' tabindex="11">{{i18n "wizard.back"}}</a>
|
|
{{/if}}
|
|
|
|
{{#if showNextButton}}
|
|
<button class='wizard-btn next primary' {{action "nextStep"}} disabled={{saving}} tabindex="10">
|
|
{{i18n "wizard.next"}}
|
|
{{fa-icon "chevron-right"}}
|
|
</button>
|
|
{{/if}}
|
|
|
|
{{#if showDoneButton}}
|
|
<button class='wizard-btn done' {{action "quit"}} disabled={{saving}} tabindex="10">
|
|
{{i18n "wizard.done"}}
|
|
</button>
|
|
{{/if}}
|
|
</div>
|
|
|
|
</div>
|