wizard-custom-input.hbs 895 B

12345678910111213141516171819202122232425
  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
  10. content=valueContent
  11. nameProperty="label"
  12. none=noneValue
  13. isDisabled=(if in.value_custom true false)}}
  14. {{#if optionalCustom}}
  15. {{input type="text" value=in.value_custom placeholder=(i18n inputValue)}}
  16. {{/if}}
  17. {{else}}
  18. {{input type="text" value=in.value placeholder=(i18n inputValue)}}
  19. {{/if}}
  20. {{d-button action='remove' actionParam=in icon='times'}}
  21. </div>
  22. {{/each}}
  23. <div class="add-custom-input">
  24. {{d-button action='add' label='admin.wizard.add' icon='plus'}}
  25. </div>