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
2017-09-24 11:01:18 +08:00

29 Zeilen
987 B
Handlebars

<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|}}
{{wizard-custom-field field=f}}
{{d-button action='removeField' actionParam=f label="admin.wizard.field.remove"}}
{{/each}}
{{d-button action='addField' label='admin.wizard.step.add_field'}}
{{#each step.actions as |a|}}
{{wizard-custom-action action=a stepFields=step.fields}}
{{/each}}
{{#if allowAddAction}}
{{d-button action='addAction' label='admin.wizard.step.add_action'}}
{{/if}}