mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: New "Dropdown" user field type
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<div class='form-element-desc'>
|
||||
<div class='form-element label-area'>
|
||||
{{#if label}}
|
||||
<label>{{i18n label}}</label>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class='form-element'>
|
||||
<div class='form-element input-area'>
|
||||
{{#if wrapLabel}}
|
||||
<label>{{yield}}</label>
|
||||
{{else}}
|
||||
|
||||
@@ -11,6 +11,12 @@
|
||||
{{input value=buffered.description class="user-field-desc"}}
|
||||
{{/admin-form-row}}
|
||||
|
||||
{{#if bufferedFieldType.hasOptions}}
|
||||
{{#admin-form-row label="admin.user_fields.options"}}
|
||||
{{value-list values=buffered.options inputType="array"}}
|
||||
{{/admin-form-row}}
|
||||
{{/if}}
|
||||
|
||||
{{#admin-form-row wrapLabel="true"}}
|
||||
{{input type="checkbox" checked=buffered.editable}} {{i18n 'admin.user_fields.editable.title'}}
|
||||
{{/admin-form-row}}
|
||||
|
||||
Reference in New Issue
Block a user