0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 12:22:54 +01:00
discourse-custom-wizard/assets/javascripts/discourse/templates/components/wizard-custom-step.hbs

31 Zeilen
1,1 KiB
Handlebars

2017-09-23 04:34:07 +02:00
<div>
<label for="title">{{i18n 'admin.wizard.step.title'}}</label>
{{text-field name="title" value=step.title placeholderKey="admin.wizard.step.title_placeholder"}}
</div>
<div>
<label for="banner">{{i18n 'admin.wizard.step.banner'}}</label>
{{input name="banner" value=step.banner placeholderKey="admin.wizard.step.banner_placeholder"}}
</div>
<div>
<label for="description">{{i18n 'admin.wizard.step.description'}}</label>
{{input name="description" value=step.description placeholderKey="admin.wizard.step.description_placeholder"}}
</div>
{{#each step.fields as |f|}}
2017-10-05 02:36:46 +02:00
{{wizard-custom-field field=f types=fieldTypes}}
2017-09-24 05:01:18 +02:00
{{d-button action='removeField' actionParam=f label="admin.wizard.field.remove"}}
2017-09-23 04:34:07 +02:00
{{/each}}
2017-10-05 02:36:46 +02:00
{{d-button action='addField' label='admin.wizard.field.add'}}
2017-09-23 04:34:07 +02:00
{{#each step.actions as |a|}}
{{wizard-custom-action action=a stepFields=step.fields}}
2017-10-05 02:36:46 +02:00
{{d-button action='removeAction' actionParam=a label="admin.wizard.action.remove"}}
2017-09-23 04:34:07 +02:00
{{/each}}
{{#if allowAddAction}}
2017-10-05 02:36:46 +02:00
{{d-button action='addAction' label='admin.wizard.action.add'}}
2017-09-23 04:34:07 +02:00
{{/if}}