Questions: Express percentage of tickets (Z#23196542) (#5239)

* Questions: Express percentage of tickets (Z#23196542)

* add missing td for sum

---------

Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
Raphael Michel
2025-06-13 11:01:37 +02:00
committed by GitHub
parent b5f8438c18
commit 8418d03add
2 changed files with 25 additions and 15 deletions

View File

@@ -89,7 +89,8 @@
<tr>
<th>{% trans "Answer" %}</th>
<th class="text-right">{% trans "Count" %}</th>
<th class="text-right">{% trans "Percentage" %}</th>
<th class="text-right">{% trans "% of answers" %}</th>
<th class="text-right">{% trans "% of tickets" %}</th>
</tr>
</thead>
<tbody>
@@ -102,6 +103,7 @@
</td>
<td class="text-right">{{ stat.count }}</td>
<td class="text-right">{{ stat.percentage|floatformat:1 }} %</td>
<td class="text-right">{{ stat.percentage_attendees|floatformat:1 }} %</td>
</tr>
{% endfor %}
</tbody>
@@ -110,6 +112,7 @@
<td><strong>{% trans "Sum" %}</strong></td>
<td class="text-right"><strong>{{ total }}</strong></td>
<td></td>
<td></td>
</tr>
</tfoot>
</table>