2018-10-15 01:03:53 -04:00
|
|
|
{{#if collection}}
|
|
|
|
<div class="values">
|
|
|
|
{{#each collection as |value index|}}
|
|
|
|
<div class="value" data-index={{index}}>
|
2019-01-10 05:06:01 -05:00
|
|
|
{{d-button action=(action "removeValue")
|
2018-10-15 01:03:53 -04:00
|
|
|
actionParam=value
|
|
|
|
icon="times"
|
|
|
|
class="remove-value-btn btn-small"}}
|
|
|
|
{{input value=value.key class="value-input" focus-out=(action "changeKey" index)}}
|
2018-10-15 06:57:45 -04:00
|
|
|
{{input value=value.secret class="value-input" focus-out=(action "changeSecret" index) type=(if isSecret "password" "text")}}
|
2018-10-15 01:03:53 -04:00
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="value">
|
|
|
|
{{text-field value=newKey class="new-value-input key" placeholder=setting.placeholder.key}}
|
|
|
|
{{input type="password" value=newSecret class="new-value-input secret" placeholder=setting.placeholder.value}}
|
2019-01-10 05:06:01 -05:00
|
|
|
{{d-button action=(action "addValue")
|
2018-10-15 01:03:53 -04:00
|
|
|
icon="plus"
|
|
|
|
class="add-value-btn btn-small"}}
|
|
|
|
</div>
|
2018-11-04 15:18:58 -05:00
|
|
|
|
|
|
|
{{setting-validation-message message=validationMessage}}
|