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/admin-wizards-manager.hbs

84 Zeilen
2,1 KiB
Handlebars

<div class="admin-wizard-controls">
2021-04-12 16:19:53 +02:00
<h3>{{i18n "admin.wizard.manager.title"}}</h3>
<div class="buttons">
{{#if filename}}
<div class="filename">
2021-04-12 16:19:53 +02:00
<a role="button" {{action "clearFile"}}>
{{d-icon "times"}}
</a>
<span>{{filename}}</span>
</div>
{{/if}}
2021-04-12 16:19:53 +02:00
{{input
2021-04-12 16:19:53 +02:00
id="file-upload"
type="file"
accept="application/json"
change=(action "setFile")}}
{{d-button
id="upload-button"
label="admin.wizard.manager.upload"
action=(action "upload")}}
{{d-button
id="import-button"
label="admin.wizard.manager.import"
action=(action "import")
disabled=importDisabled}}
{{d-button
id="export-button"
label="admin.wizard.manager.export"
action=(action "export")
disabled=exportDisabled}}
{{d-button
id="destroy-button"
label="admin.wizard.manager.destroy"
action=(action "destroy")
disabled=destoryDisabled}}
</div>
</div>
{{wizard-message
key=messageKey
url=messageUrl
type=messageType
opts=messageOpts
items=messageItems
loading=loading
2021-04-12 16:19:53 +02:00
component="manager"}}
<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>
</tr>
</thead>
<tbody>
{{#each wizards as |wizard|}}
<tr data-wizard-id={{dasherize wizard.id}}>
<td>
{{#link-to "adminWizardsWizardShow" (dasherize wizard.id)}}
{{wizard.name}}
{{/link-to}}
</td>
<td class="control-column">
2021-04-12 16:19:53 +02:00
{{input
type="checkbox"
class="export"
2021-04-12 16:19:53 +02:00
change=(action "selectWizard")}}
</td>
<td class="control-column">
2021-04-12 16:19:53 +02:00
{{input
type="checkbox"
class="destroy"
2021-04-12 16:19:53 +02:00
change=(action "selectWizard")}}
</td>
</tr>
{{/each}}
</tbody>
</table>
</div>