[TASK] add schnupper to scheckbuch button
All checks were successful
CI/CD Pipeline / test (push) Successful in 15m56s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

This commit is contained in:
Marie Birner 2025-05-03 17:44:27 +02:00
parent afc32cc41e
commit 7bd863ddf1

View File

@ -151,6 +151,7 @@
</dialog>
{% endif %}
{% elif "Scheckbuch" in member %}
{% if allowed_to_edit %}
<div class="grid gap-3 pb-3">
<div class="max-h-60 overflow-y-scroll">
{% for log in logbook %}
@ -158,8 +159,18 @@
{% endfor %}
</div>
</div>
{% endif %}
{% elif "Schnupperant" in member %}
{% if allowed_to_edit %}
<div class="grid pt-3">
<a href="/admin/user/{{ user.id }}/schnupperant-to-scheckbuch" class="btn btn-dark"
onclick="return confirm('Willst du \'{{ user.name }}\' wirklich auf ein Scheckbuch umwandeln?');">In Scheckbuch umwandeln</a>
</div>
{% endif %}
{% endif %}
{% if "Scheckbuch" in member or "Schnupperant" in member %}
{% if allowed_to_edit %}
<div class="grid gap-3 pb-3 mt-3">
<button type="button"
onclick="document.getElementById('call-for-action').showModal()"
@ -212,6 +223,7 @@
</div>
</div>
</dialog>
{% endif %}
{% endif %}
</div>
</div>