[TASK] adapt action in user detail view schnupperant or scheckbuch
This commit is contained in:
parent
f9a53a703b
commit
149b6afbf5
@ -157,11 +157,13 @@
|
||||
{{ log::show_old(log=log, state="completed", only_ones=false, index=loop.index, allowed_to_edit=false) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if allowed_to_edit %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "Scheckbuch" in member or "Schnupperant" in member %}
|
||||
<div class="grid gap-3 pb-3 mt-3">
|
||||
<button type="button"
|
||||
onclick="document.getElementById('call-for-action').showModal()"
|
||||
class="btn btn-primary">Zu Vereinsmitglied umwandeln</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
<dialog id="call-for-action"
|
||||
class="max-w-screen-sm w-full dark:bg-primary-600 dark:text-white rounded-md"
|
||||
@ -180,7 +182,13 @@
|
||||
</svg>
|
||||
</button>
|
||||
<div class="mt-8">
|
||||
<form action="/admin/user/{{ user.id }}/scheckbook-to-regular"
|
||||
{% if "Scheckbuch" in member %}
|
||||
{% set action = 'scheckbook-to-regular' %}
|
||||
{% elif "Schnupperant" in member %}
|
||||
{% set action = 'schnupperant-to-regular' %}
|
||||
{% endif %}
|
||||
|
||||
<form action="/admin/user/{{ user.id }}/{{ action }}"
|
||||
method="post"
|
||||
enctype="multipart/form-data"
|
||||
class="grid gap-3">
|
||||
|
Loading…
x
Reference in New Issue
Block a user