wizard-custom-input.hbs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <div class="key">
  2. {{#if keyContent}}
  3. {{combo-box value=input.key content=keyContent nameProperty="label" none=noneKey}}
  4. {{else}}
  5. {{input type="text" value=input.key placeholder=(i18n inputKey)}}
  6. {{/if}}
  7. </div>
  8. {{d-icon 'arrow-right'}}
  9. <div class="value">
  10. {{#if valueContent}}
  11. {{combo-box value=input.value
  12. content=valueContent
  13. nameProperty="label"
  14. none=noneValue
  15. isDisabled=valueDisabled}}
  16. {{else}}
  17. {{input type="text" value=input.value placeholder=(i18n valuePlaceholder)}}
  18. {{/if}}
  19. {{#if allowCustomField}}
  20. <div class="text-divider">
  21. <span>{{i18n 'admin.wizard.or'}}</span>
  22. </div>
  23. {{input type="text"
  24. value=input.value_custom
  25. placeholder=(i18n 'admin.wizard.custom_field_placeholder')
  26. disabled=customDisabled}}
  27. {{/if}}
  28. {{#if allowUserField}}
  29. <div class="text-divider">
  30. <span>{{i18n 'admin.wizard.or'}}</span>
  31. </div>
  32. {{combo-box value=input.user_field
  33. content=userFields
  34. none='admin.wizard.user_field_placeholder'}}
  35. {{/if}}
  36. </div>
  37. {{d-button action=remove actionParam=input icon='times' class='remove'}}