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>
|
|
|
|
|
|
|
|
{{#if model.steps}}
|
|
|
|
{{#each model.steps as |s|}}
|
|
|
|
{{wizard-custom-step step=s}}
|
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>
|