mirror of
https://github.com/discourse/discourse.git
synced 2025-01-09 02:33:53 +08:00
10f200a5d3
* FEATURE: revamped wizard * UX: Wizard redesign (#17381) * UX: Step 1-2 * swap out images * UX: Finalize all steps * UX: mobile * UX: Fix test * more test * DEV: remove unneeded wizard components * DEV: fix wizard tests * DEV: update rails tests for new wizard * Remove empty hbs files that were created because of rebase * Fixes for rebase * Fix wizard image link * More rebase fixes * Fix rails tests * FIX: Update preview for new color schemes: (#17481) * UX: make layout more responsive, update images * fix typo * DEV: move discourse logo svg to template only component * DEV: formatting improvements * Remove unneeded files * Add tests for privacy step * Fix banner image height for step "ready" Co-authored-by: Jordan Vidrine <30537603+jordanvidrine@users.noreply.github.com> Co-authored-by: awesomerobot <kris.aubuchon@discourse.org>
34 lines
882 B
Handlebars
34 lines
882 B
Handlebars
{{#if this.field.label}}
|
|
<label for={{this.field.id}}>
|
|
<span class="wizard-container__label">
|
|
{{this.field.label}}
|
|
</span>
|
|
|
|
{{#if this.field.required}}
|
|
<span class="wizard-container__label required">*</span>
|
|
{{/if}}
|
|
|
|
{{#if this.field.description}}
|
|
<div class="wizard-container__description">{{html-safe this.field.description}}</div>
|
|
{{/if}}
|
|
</label>
|
|
{{/if}}
|
|
|
|
<div class="wizard-container__input">
|
|
{{component
|
|
this.inputComponentName
|
|
field=this.field
|
|
step=this.step
|
|
fieldClass=this.fieldClass
|
|
wizard=this.wizard
|
|
}}
|
|
</div>
|
|
|
|
{{#if this.field.errorDescription}}
|
|
<div class="wizard-container__description error">{{html-safe this.field.errorDescription}}</div>
|
|
{{/if}}
|
|
|
|
{{#if this.field.extra_description}}
|
|
<div class="wizard-container__description extra">{{html-safe this.field.extra_description}}</div>
|
|
{{/if}}
|