2017-09-23 04:34:07 +02:00
|
|
|
<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>
|
|
|
|
|
2017-10-05 02:36:46 +02:00
|
|
|
<div>
|
|
|
|
{{input type='checkbox' checked=model.save_submissions}}
|
|
|
|
<span for="save">{{i18n 'admin.wizard.save_submissions'}}</span>
|
|
|
|
</div>
|
|
|
|
|
2017-09-23 04:34:07 +02:00
|
|
|
{{#if model.steps}}
|
|
|
|
{{#each model.steps as |s|}}
|
2017-10-05 02:36:46 +02:00
|
|
|
{{wizard-custom-step step=s fieldTypes=model.fieldTypes}}
|
2017-09-24 05:01:18 +02:00
|
|
|
{{d-button action='removeStep' actionParam=s label='admin.wizard.step.remove'}}
|
2017-09-23 04:34:07 +02:00
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
|
|
|
|
2017-09-24 05:01:18 +02:00
|
|
|
{{d-button action='addStep' label='admin.wizard.step.add'}}
|
2017-09-23 04:34:07 +02:00
|
|
|
|
|
|
|
<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>
|