mirror of https://github.com/zulip/zulip.git
custom fields: Add default value choice in choice-type-custom-fields.
Add default choice option in choice type of custom profile field.
This commit is contained in:
parent
aa39b1e28e
commit
52b6d0ce9f
|
@ -4,9 +4,7 @@
|
|||
<textarea maxlength="500" class="custom_user_field_value">{{ field_value }}</textarea>
|
||||
{{else if is_choice_field}}
|
||||
<select class="custom_user_field_value">
|
||||
{{#unless field_value}}
|
||||
<option></option>
|
||||
{{/unless}}
|
||||
<option value="">--{{t 'Select' }}--</option>
|
||||
{{#each field_choices}}
|
||||
<option value="{{ this.value }}" {{#if this.selected}}selected{{/if}}>{{ this.text }}</option>
|
||||
{{/each}}
|
||||
|
|
Loading…
Reference in New Issue