wizard-custom-input.hbs 646 B

12345678910111213141516
  1. {{#each inputs as |in|}}
  2. <span 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 'admin.wizard.key')}}
  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 'admin.wizard.value')}}
  12. {{/if}}
  13. </span>
  14. {{d-button action='remove' actionParam=in icon='times'}}
  15. {{/each}}
  16. <div>{{d-button action='add' label='admin.wizard.add' icon='plus'}}</div>