1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/templates/components/wizard-custom-input.hbs

19 Zeilen
655 B
Handlebars

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}}
{{combo-box value=in.value content=valueContent nameProperty="label" none=noneValue}}
{{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>