Skip to content

Commit

Permalink
QuestionnaireResponse user-friendly output: add table of questions & …
Browse files Browse the repository at this point in the history
…responses
  • Loading branch information
mcjustin committed Jan 16, 2025
1 parent bd2cd52 commit fa645ad
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/lib/components/resource-templates/QuestionnaireResponse.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,19 @@ Authored: {resource.authored}
Source: (unknown)
{/if}
{/if}

<table class="table table-bordered table-sm">
<thead>
<tr><th colspan="3">Responses</th></tr>
</thead>
{#each resource.item as item}
<tr>
<td>{item.text ?? ""}</td>
<td>
{#each item.item as subitem}
{subitem.text ?? ""}<br/>
{/each}
</td>
</tr>
{/each}
</table>

0 comments on commit fa645ad

Please sign in to comment.