mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 03:53:38 +08:00
57bd85af31
- Does not force users to type a description or a welcome topic - Adds * marker for required text fields (site title and email)
26 lines
661 B
Handlebars
26 lines
661 B
Handlebars
<label for={{field.id}}>
|
|
<span class="label-value">
|
|
{{field.label}}
|
|
|
|
{{#if field.required}}
|
|
<span class="field-required">*</span>
|
|
{{/if}}
|
|
</span>
|
|
|
|
{{#if field.description}}
|
|
<div class="field-description">{{html-safe field.description}}</div>
|
|
{{/if}}
|
|
</label>
|
|
|
|
<div class="input-area">
|
|
{{component inputComponentName field=field step=step fieldClass=fieldClass wizard=wizard}}
|
|
</div>
|
|
|
|
{{#if field.errorDescription}}
|
|
<div class="field-error-description">{{html-safe field.errorDescription}}</div>
|
|
{{/if}}
|
|
|
|
{{#if field.extra_description}}
|
|
<div class="field-extra-description">{{html-safe field.extra_description}}</div>
|
|
{{/if}}
|