fix error when no fee is set
This commit is contained in:
parent
d2000f4699
commit
c2b57583cf
@ -110,13 +110,7 @@
|
|||||||
<h2 class="h2">💸</h2>
|
<h2 class="h2">💸</h2>
|
||||||
<div class="mx-2 divide-y divide-gray-200 dark:divide-primary-600">
|
<div class="mx-2 divide-y divide-gray-200 dark:divide-primary-600">
|
||||||
<div class="py-3">
|
<div class="py-3">
|
||||||
{% if "Schnupperant" in member %}
|
{% if fee %}
|
||||||
{% if "paid" in user.roles %}
|
|
||||||
✅ Schnupperant hat schon bezahlt
|
|
||||||
{% else %}
|
|
||||||
❌ Schnupperant hat noch <b>nicht</b> bezahlt
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<div>
|
<div>
|
||||||
<strong>{{ fee.name }}</strong>
|
<strong>{{ fee.name }}</strong>
|
||||||
<span class="block">{{ fee.sum_in_cents / 100 }}€</span>
|
<span class="block">{{ fee.sum_in_cents / 100 }}€</span>
|
||||||
@ -132,6 +126,16 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
❌ Zahlung ausständig
|
❌ Zahlung ausständig
|
||||||
{% endif %}
|
{% 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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user