2015-06-09 12:19:41 -04:00
|
|
|
{{#if collection}}
|
|
|
|
<div class="values">
|
2015-07-28 15:58:49 -04:00
|
|
|
{{#each collection as |value index|}}
|
2018-08-03 16:41:37 -04:00
|
|
|
<div data-index={{index}} class="value">
|
2020-02-03 08:22:14 -05:00
|
|
|
{{d-button
|
|
|
|
action=(action "removeValue")
|
|
|
|
actionParam=value
|
|
|
|
icon="times"
|
|
|
|
class="remove-value-btn btn-small"
|
|
|
|
}}
|
2018-08-03 16:41:37 -04:00
|
|
|
|
2020-02-03 08:22:14 -05:00
|
|
|
{{input
|
|
|
|
title=value
|
|
|
|
value=value
|
|
|
|
class="value-input"
|
|
|
|
focus-out=(action "changeValue" index)
|
|
|
|
}}
|
2015-06-09 12:19:41 -04:00
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2018-08-03 16:41:37 -04:00
|
|
|
{{combo-box
|
|
|
|
allowAny=true
|
|
|
|
none=noneKey
|
2020-02-03 08:22:14 -05:00
|
|
|
valueProperty=null
|
|
|
|
nameProperty=null
|
|
|
|
value=newValue
|
2018-08-03 16:41:37 -04:00
|
|
|
content=filteredChoices
|
2020-02-03 08:22:14 -05:00
|
|
|
onChange=(action "selectChoice")
|
|
|
|
}}
|