added completion count to export page

This commit is contained in:
2026-05-28 10:09:17 +02:00
parent 5d539c130f
commit 8915c8d182
2 changed files with 18 additions and 3 deletions

View File

@ -56,6 +56,7 @@ function renderExport(questionnaires) {
<th>Version</th>
<th>State</th>
<th>Questions</th>
<th>Completed</th>
<th>Actions</th>
</tr>
</thead>
@ -66,6 +67,7 @@ function renderExport(questionnaires) {
<td>${esc(q.version || '—')}</td>
<td><span class="badge badge-${(q.state || 'draft').toLowerCase()}">${esc(q.state || 'draft')}</span></td>
<td>${q.questionCount || 0}</td>
<td>${q.completedCount ?? 0}</td>
<td>
<button class="btn btn-sm btn-primary export-btn" data-id="${q.questionnaireID}" data-name="${esc(q.name)}" data-version="${esc(q.version)}">
Export CSV