Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-27 03:20:27 +01:00
ceef3f4bc9
* Re structure builder logic to allow for step conditionality Concerns - Performance. Look at whether the additional build in the steps controller can be reduced - Does not work if applied to the last step. - Certain conditions will not work with the first step(?) - How should this be scoped to known functionality? * Add indexes and conditions to steps and fields * Complete and add spec * Complete backend * Complete step conditionality and field indexing * Fix failing spec * Update coverage * Apply rubocop * Apply prettier * Apply prettier to wizard js * Fix schema issues created in merge * Remove setting label for force_final * Improve client wizard cache naming * Improve steps controller and spec conditionality * Improve final step attribute naming * Fix failing spec * Linting * Add one more final step test * Linting * Fix eslint issues * Apply prettier * Linting, syntax, merge and copy cleanups * Update wizard-admin.scss * Fix template linting * Rubocop fixes
83 Zeilen
2,1 KiB
Handlebars
83 Zeilen
2,1 KiB
Handlebars
<div class="admin-wizard-controls">
|
|
<h3>{{i18n "admin.wizard.manager.title"}}</h3>
|
|
|
|
<div class="buttons">
|
|
{{#if filename}}
|
|
<div class="filename">
|
|
<a role="button" {{action "clearFile"}}>
|
|
{{d-icon "times"}}
|
|
</a>
|
|
<span>{{filename}}</span>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{input
|
|
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
|
|
component="manager"}}
|
|
|
|
<div class="admin-wizard-container">
|
|
<table class="table grid">
|
|
<thead>
|
|
<tr>
|
|
<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">
|
|
{{input
|
|
type="checkbox"
|
|
class="export"
|
|
change=(action "selectWizard")}}
|
|
</td>
|
|
<td class="control-column">
|
|
{{input
|
|
type="checkbox"
|
|
class="destroy"
|
|
change=(action "selectWizard")}}
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|