discourse/app/assets/javascripts/admin/templates/components/value-list.hbs

19 lines
553 B
Handlebars
Raw Normal View History

{{#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}}>
{{d-button action="removeValue"
actionParam=value
icon="times"
class="btn-small no-text"}}
{{value}}
</div>
{{/each}}
</div>
{{/if}}
<div class='input'>
{{text-field value=newValue placeholderKey=addKey}}
{{d-button action="addValue" icon="plus" class="btn-primary btn-small no-text" disabled=inputInvalid}}
</div>