working on poll evaluation

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-03-03 15:33:25 +01:00
parent 1589bbe471
commit 6125bc62a2
9 changed files with 123 additions and 15 deletions

View File

@@ -76,7 +76,7 @@
</tr>
</thead>
<tbody>
{#each poll.options as option}
{#each Object.entries(poll.options) as [option_id,option]}
<tr>
<td class="option">
{option.name}
@@ -86,7 +86,7 @@
</td>
{#each Object.entries(poll.weights) as [weight,name]}
<td class="radio" onclick={e => select(option,weight)} title={t('click to select')} >
{#if selection[option.id] == weight}
{#if selection[option_id] == weight}
X
{/if}
</td>