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>
|
|
|
|
|
2021-08-31 01:23:33 +02:00
|
|
|
<div class="controls">
|
|
|
|
{{d-button
|
|
|
|
icon="sliders-h"
|
|
|
|
label="admin.wizard.submissions.edit_columns"
|
|
|
|
action=(action "showEditColumnsModal")
|
|
|
|
class="btn-default open-edit-columns-btn download-link"}}
|
|
|
|
</div>
|
|
|
|
|
2021-04-12 16:19:53 +02:00
|
|
|
<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>
|
2021-08-31 01:23:33 +02:00
|
|
|
{{#each fields as |field|}}
|
|
|
|
{{#if field.enabled}}
|
|
|
|
<th>{{field.label}}</th>
|
|
|
|
{{/if}}
|
2021-07-14 08:04:19 +02:00
|
|
|
{{/each}}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-08-31 01:23:33 +02:00
|
|
|
{{#each displaySubmissions as |submission|}}
|
2021-07-14 08:04:19 +02:00
|
|
|
<tr>
|
2021-08-31 01:23:33 +02:00
|
|
|
{{#each-in submission as |field value|}}
|
|
|
|
<td>{{submission-field fieldName=field value=value}}</td>
|
2021-07-14 08:04:19 +02:00
|
|
|
{{/each-in}}
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{conditional-loading-spinner condition=loadingMore}}
|
|
|
|
{{/load-more}}
|
2020-04-13 14:17:22 +02:00
|
|
|
</div>
|
|
|
|
{{/if}}
|