0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 04:12:53 +01:00
discourse-custom-wizard/assets/javascripts/discourse/templates/admin-wizard.hbs
Angus McLeod 7b09410a26 various
2017-10-05 08:36:46 +08:00

28 Zeilen
1 KiB
Handlebars

<div class="form-horizontal">
<div>
<label for="name">{{i18n 'admin.wizard.name'}}</label>
{{text-field name="name" value=model.name placeholderKey="admin.wizard.name_placeholder"}}
</div>
<div>
{{input type='checkbox' checked=model.save_submissions}}
<span for="save">{{i18n 'admin.wizard.save_submissions'}}</span>
</div>
{{#if model.steps}}
{{#each model.steps as |s|}}
{{wizard-custom-step step=s fieldTypes=model.fieldTypes}}
{{d-button action='removeStep' actionParam=s label='admin.wizard.step.remove'}}
{{/each}}
{{/if}}
{{d-button action='addStep' label='admin.wizard.step.add'}}
<div class='buttons'>
<button {{action "save"}} disabled={{disableSave}} class='btn btn-primary'>{{i18n 'admin.wizard.save'}}</button>
{{#unless new}}
<button {{action "remove"}} class='btn btn-danger'>{{d-icon "trash-o"}}{{i18n 'admin.wizard.remove'}}</button>
{{/unless}}
<span class="saving {{unless savingStatus 'hidden'}}">{{savingStatus}}</span>
</div>
</div>