2020-11-09 04:32:36 +01:00
|
|
|
<div class="admin-wizard-controls">
|
2021-04-12 16:19:53 +02:00
|
|
|
<h3>{{i18n "admin.wizard.manager.title"}}</h3>
|
|
|
|
|
2020-11-09 04:32:36 +01:00
|
|
|
<div class="buttons">
|
|
|
|
{{#if filename}}
|
|
|
|
<div class="filename">
|
2021-04-12 16:19:53 +02:00
|
|
|
<a role="button" {{action "clearFile"}}>
|
|
|
|
{{d-icon "times"}}
|
2020-11-09 04:32:36 +01:00
|
|
|
</a>
|
|
|
|
<span>{{filename}}</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2023-04-03 04:28:06 +02:00
|
|
|
<Input
|
2022-08-15 14:36:42 +02:00
|
|
|
id="custom-wizard-file-upload"
|
2023-04-03 04:28:06 +02:00
|
|
|
@type="file"
|
2020-11-09 04:32:36 +01:00
|
|
|
accept="application/json"
|
2023-04-03 04:28:06 +02:00
|
|
|
{{on "input" (action "setFile")}}
|
|
|
|
/>
|
2020-11-09 04:32:36 +01:00
|
|
|
{{d-button
|
|
|
|
id="upload-button"
|
|
|
|
label="admin.wizard.manager.upload"
|
2023-07-10 08:55:54 +02:00
|
|
|
action=(action "upload")
|
|
|
|
}}
|
2020-11-09 04:32:36 +01:00
|
|
|
{{d-button
|
|
|
|
id="import-button"
|
|
|
|
label="admin.wizard.manager.import"
|
|
|
|
action=(action "import")
|
2023-07-10 08:55:54 +02:00
|
|
|
disabled=importDisabled
|
|
|
|
}}
|
2020-11-09 04:32:36 +01:00
|
|
|
{{d-button
|
|
|
|
id="export-button"
|
|
|
|
label="admin.wizard.manager.export"
|
|
|
|
action=(action "export")
|
2023-07-10 08:55:54 +02:00
|
|
|
disabled=exportDisabled
|
|
|
|
}}
|
2020-11-09 04:32:36 +01:00
|
|
|
{{d-button
|
|
|
|
id="destroy-button"
|
|
|
|
label="admin.wizard.manager.destroy"
|
|
|
|
action=(action "destroy")
|
2023-07-10 08:55:54 +02:00
|
|
|
disabled=destoryDisabled
|
|
|
|
}}
|
2020-11-09 04:32:36 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{wizard-message
|
|
|
|
key=messageKey
|
|
|
|
url=messageUrl
|
|
|
|
type=messageType
|
|
|
|
opts=messageOpts
|
|
|
|
items=messageItems
|
|
|
|
loading=loading
|
2023-07-10 08:55:54 +02:00
|
|
|
component="manager"
|
|
|
|
}}
|
2020-11-09 04:32:36 +01:00
|
|
|
|
|
|
|
<div class="admin-wizard-container">
|
|
|
|
<table class="table grid">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-04-12 16:19:53 +02:00
|
|
|
<th>{{i18n "admin.wizard.label"}}</th>
|
|
|
|
<th class="control-column">{{i18n "admin.wizard.manager.export"}}</th>
|
|
|
|
<th class="control-column">{{i18n "admin.wizard.manager.destroy"}}</th>
|
2020-11-09 04:32:36 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#each wizards as |wizard|}}
|
|
|
|
<tr data-wizard-id={{dasherize wizard.id}}>
|
|
|
|
<td>
|
2024-01-26 16:18:11 +01:00
|
|
|
<LinkTo @route="adminWizardsWizardShow" @model={{dasherize wizard.id}}>
|
2020-11-09 04:32:36 +01:00
|
|
|
{{wizard.name}}
|
2024-01-26 16:18:11 +01:00
|
|
|
</LinkTo>
|
2020-11-09 04:32:36 +01:00
|
|
|
</td>
|
|
|
|
<td class="control-column">
|
2023-04-03 04:28:06 +02:00
|
|
|
<Input
|
|
|
|
@type="checkbox"
|
2020-11-09 04:32:36 +01:00
|
|
|
class="export"
|
2023-04-03 04:28:06 +02:00
|
|
|
{{on "change" (action "selectWizard")}}
|
|
|
|
/>
|
2020-11-09 04:32:36 +01:00
|
|
|
</td>
|
|
|
|
<td class="control-column">
|
2023-04-03 04:28:06 +02:00
|
|
|
<Input
|
|
|
|
@type="checkbox"
|
2020-11-09 04:32:36 +01:00
|
|
|
class="destroy"
|
2023-04-03 04:28:06 +02:00
|
|
|
{{on "change" (action "selectWizard")}}
|
|
|
|
/>
|
2020-11-09 04:32:36 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-07-10 08:55:54 +02:00
|
|
|
</div>
|