Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
61 Zeilen
1,6 KiB
Handlebars
61 Zeilen
1,6 KiB
Handlebars
{{#if submissions}}
|
|
<div class="wizard-header large">
|
|
<label>
|
|
{{i18n "admin.wizard.submissions.title" name=wizard.name}}
|
|
</label>
|
|
|
|
<div class="controls">
|
|
{{d-button
|
|
icon="sliders-h"
|
|
label="admin.wizard.edit_columns"
|
|
action=(action "showEditColumnsModal")
|
|
class="btn-default open-edit-columns-btn download-link"
|
|
}}
|
|
</div>
|
|
|
|
<a
|
|
class="btn btn-default download-link"
|
|
href={{downloadUrl}}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
{{d-icon "download"}}
|
|
<span class="d-button-label">
|
|
{{i18n "admin.wizard.submissions.download"}}
|
|
</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="wizard-table">
|
|
{{#load-more selector=".wizard-table tr" action=(action "loadMore")}}
|
|
{{#if noResults}}
|
|
<p>{{i18n "search.no_results"}}</p>
|
|
{{else}}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
{{#each fields as |field|}}
|
|
{{#if field.enabled}}
|
|
<th>
|
|
{{field.label}}
|
|
</th>
|
|
{{/if}}
|
|
{{/each}}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each displaySubmissions as |submission|}}
|
|
<tr>
|
|
{{#each-in submission as |field value|}}
|
|
<td>{{wizard-table-field field=field value=value}}</td>
|
|
{{/each-in}}
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
{{/if}}
|
|
|
|
{{conditional-loading-spinner condition=loadingMore}}
|
|
{{/load-more}}
|
|
</div>
|
|
{{/if}}
|