1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/templates/admin-wizards-submissions-show.hbs

42 Zeilen
1,1 KiB
Handlebars

2020-04-13 14:17:22 +02:00
{{#if submissions}}
<div class="wizard-header large">
2021-04-12 16:19:53 +02:00
<label>{{i18n "admin.wizard.submissions.title" name=wizard.name}}</label>
<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>
2020-04-13 14:17:22 +02:00
</a>
</div>
<div class="wizard-submissions">
2021-07-14 08:04:19 +02:00
{{#load-more selector=".wizard-submissions tr" action=(action "loadMore")}}
{{#if noResults}}
<p>{{i18n "search.no_results"}}</p>
{{else}}
<table>
<thead>
<tr>
{{#each fields as |f|}}
<th>{{f}}</th>
{{/each}}
</tr>
</thead>
<tbody>
{{#each submissions as |s|}}
<tr>
{{#each-in s as |k v|}}
<td>{{v}}</td>
{{/each-in}}
</tr>
{{/each}}
</tbody>
</table>
{{/if}}
{{conditional-loading-spinner condition=loadingMore}}
{{/load-more}}
2020-04-13 14:17:22 +02:00
</div>
{{/if}}