wizard-custom-step.hbs 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <div>
  2. <label for="title">{{i18n 'admin.wizard.step.title'}}</label>
  3. {{text-field name="title" value=step.title placeholderKey="admin.wizard.step.title_placeholder"}}
  4. </div>
  5. <div>
  6. <label for="banner">{{i18n 'admin.wizard.step.banner'}}</label>
  7. {{input name="banner" value=step.banner placeholderKey="admin.wizard.step.banner_placeholder"}}
  8. </div>
  9. <div>
  10. <label for="description">{{i18n 'admin.wizard.step.description'}}</label>
  11. {{input name="description" value=step.description placeholderKey="admin.wizard.step.description_placeholder"}}
  12. </div>
  13. {{#each step.fields as |f|}}
  14. {{wizard-custom-field field=f types=fieldTypes}}
  15. {{d-button action='removeField' actionParam=f label="admin.wizard.field.remove"}}
  16. {{/each}}
  17. {{d-button action='addField' label='admin.wizard.field.add'}}
  18. {{#each step.actions as |a|}}
  19. {{wizard-custom-action action=a stepFields=step.fields}}
  20. {{d-button action='removeAction' actionParam=a label="admin.wizard.action.remove"}}
  21. {{/each}}
  22. {{#if allowAddAction}}
  23. {{d-button action='addAction' label='admin.wizard.action.add'}}
  24. {{/if}}