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/admin/templates/components/value-list.hbs

32 lines
658 B
Handlebars

{{#if collection}}
<div class="values">
{{#each collection as |value index|}}
<div data-index={{index}} class="value">
{{d-button
action=(action "removeValue")
actionParam=value
icon="times"
class="remove-value-btn btn-small"
}}
{{input
title=value
value=value
class="value-input"
focus-out=(action "changeValue" index)
}}
</div>
{{/each}}
</div>
{{/if}}
{{combo-box
allowAny=true
none=noneKey
valueProperty=null
nameProperty=null
value=newValue
content=filteredChoices
onChange=(action "selectChoice")
}}