fix error when no fee is set
All checks were successful
CI/CD Pipeline / test (push) Successful in 16m12s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

This commit is contained in:
Philipp Hofer 2025-05-01 19:14:40 +02:00
parent d2000f4699
commit c2b57583cf

View File

@ -110,13 +110,7 @@
<h2 class="h2">💸</h2>
<div class="mx-2 divide-y divide-gray-200 dark:divide-primary-600">
<div class="py-3">
{% if "Schnupperant" in member %}
{% if "paid" in user.roles %}
✅ Schnupperant hat schon bezahlt
{% else %}
❌ Schnupperant hat noch <b>nicht</b> bezahlt
{% endif %}
{% else %}
{% if fee %}
<div>
<strong>{{ fee.name }}</strong>
<span class="block">{{ fee.sum_in_cents / 100 }}€</span>
@ -132,6 +126,16 @@
{% else %}
❌ Zahlung ausständig
{% endif %}
{% else %}
{% if "paid" in user.roles %}
✅ {{ member | keys }} hat schon bezahlt
{% else %}
{% for key, value in member %}
{% if loop.first %}{{ key }}{% endif %}
{% endfor %}
hat noch nicht bezahlt
{% endif %}
{% endif %}
</div>
</div>