This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/components/user-fields/dropdown.hbs

20 lines
505 B
Handlebars

<label class="control-label" for={{concat "user-" this.elementId}}>
{{html-safe this.field.name}}
{{#if this.field.required}}
<span class="required">*</span>
{{/if}}
</label>
<div class="controls">
{{combo-box
id=(concat "user-" this.elementId)
content=this.field.options
valueProperty=null
nameProperty=null
value=this.value
none=this.noneLabel
onChange=(action (mut this.value))
}}
<div class="instructions">{{html-safe this.field.description}}</div>
</div>