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|}}
|
|
|
|
<div class='value' draggable='true' data-index={{index}}>
|
2015-06-09 12:19:41 -04:00
|
|
|
{{d-button action="removeValue"
|
|
|
|
actionParam=value
|
|
|
|
icon="times"
|
2015-07-30 12:31:14 -04:00
|
|
|
class="btn-small"}}
|
2015-06-09 12:19:41 -04:00
|
|
|
{{value}}
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class='input'>
|
|
|
|
{{text-field value=newValue placeholderKey=addKey}}
|
2015-07-30 12:31:14 -04:00
|
|
|
{{d-button action="addValue" icon="plus" class="btn-primary btn-small" disabled=inputInvalid}}
|
2015-06-09 12:19:41 -04:00
|
|
|
</div>
|