2017-10-17 15:17:53 +02:00
|
|
|
{{#each inputs as |in|}}
|
2017-10-30 07:24:51 +01:00
|
|
|
<div class='custom-input'>
|
2017-10-17 15:17:53 +02:00
|
|
|
{{#if keyContent}}
|
|
|
|
{{combo-box value=in.key content=keyContent nameProperty="label" none=noneKey}}
|
|
|
|
{{else}}
|
2017-10-30 07:24:51 +01:00
|
|
|
{{input type="text" value=in.key placeholder=(i18n inputKey)}}
|
2017-10-17 15:17:53 +02:00
|
|
|
{{/if}}
|
|
|
|
{{#if valueContent}}
|
2017-11-30 03:55:15 +01:00
|
|
|
{{combo-box value=in.value
|
|
|
|
content=valueContent
|
|
|
|
nameProperty="label"
|
|
|
|
none=noneValue
|
|
|
|
isDisabled=(if in.value_custom true false)}}
|
|
|
|
{{#if optionalCustom}}
|
|
|
|
{{input type="text" value=in.value_custom placeholder=(i18n inputValue)}}
|
|
|
|
{{/if}}
|
2017-10-17 15:17:53 +02:00
|
|
|
{{else}}
|
2017-10-30 07:24:51 +01:00
|
|
|
{{input type="text" value=in.value placeholder=(i18n inputValue)}}
|
2017-10-17 15:17:53 +02:00
|
|
|
{{/if}}
|
2017-10-30 07:24:51 +01:00
|
|
|
{{d-button action='remove' actionParam=in icon='times'}}
|
|
|
|
</div>
|
2017-10-17 15:17:53 +02:00
|
|
|
{{/each}}
|
2017-10-30 07:24:51 +01:00
|
|
|
<div class="add-custom-input">
|
|
|
|
{{d-button action='add' label='admin.wizard.add' icon='plus'}}
|
|
|
|
</div>
|