wizard-custom-input.hbs 655 B

123456789101112131415161718
  1. {{#each inputs as |in|}}
  2. <div class='custom-input'>
  3. {{#if keyContent}}
  4. {{combo-box value=in.key content=keyContent nameProperty="label" none=noneKey}}
  5. {{else}}
  6. {{input type="text" value=in.key placeholder=(i18n inputKey)}}
  7. {{/if}}
  8. {{#if valueContent}}
  9. {{combo-box value=in.value content=valueContent nameProperty="label" none=noneValue}}
  10. {{else}}
  11. {{input type="text" value=in.value placeholder=(i18n inputValue)}}
  12. {{/if}}
  13. {{d-button action='remove' actionParam=in icon='times'}}
  14. </div>
  15. {{/each}}
  16. <div class="add-custom-input">
  17. {{d-button action='add' label='admin.wizard.add' icon='plus'}}
  18. </div>