2024-03-06 15:55:13 +01:00
|
|
|
{% import "includes/macros" as macros %}
|
|
|
|
{% extends "base" %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="max-w-screen-lg w-full">
|
|
|
|
<h1 class="h1">Schnupper Verwaltung</h1>
|
|
|
|
<div class="grid gap-3">
|
2024-09-24 20:09:53 +02:00
|
|
|
<div class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5">
|
2024-03-06 15:55:13 +01:00
|
|
|
<h2 class="h2">Angemeldete Personen: {{ schnupperanten | length }}</h2>
|
2024-09-24 20:09:53 +02:00
|
|
|
<ol>
|
|
|
|
{% for user in schnupperanten %}
|
|
|
|
<li class="border-t border-gray-200 dark:border-primary-600 px-3 py-1">
|
|
|
|
<span class="flex items-center justify-between">
|
|
|
|
<span>
|
2024-09-24 20:10:59 +02:00
|
|
|
<span class="status-damage status-damage-{% if "paid" in user.roles %}none {% else %}locked {% endif %}"></span> {{ user.name }} ({{ user.mail }}
|
|
|
|
{%- if user.notes %} | {{ user.notes }}
|
|
|
|
{% endif -%}
|
|
|
|
)
|
2024-09-17 13:06:39 +02:00
|
|
|
</span>
|
2024-09-24 20:09:53 +02:00
|
|
|
<a class="btn btn-primary"
|
2024-09-24 20:10:59 +02:00
|
|
|
href="/admin/user/move/schnupperant/{{ user.id }}/to/scheckbuch"
|
|
|
|
onclick="return confirm('Willst du wirklich ein Scheckbuch erstellen? Die Person erhält ein Mail mit allen Infos.')">Zu Scheckbuch umwandeln</a>
|
2024-09-24 20:09:53 +02:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
<div class="bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5">
|
2024-09-24 20:10:59 +02:00
|
|
|
<h2 class="h2">Legende</h2>
|
|
|
|
<div class="px-3 py-1">
|
|
|
|
<span class="status-damage status-damage-none"></span> Bezahlt - Juhuuu!
|
|
|
|
</div>
|
|
|
|
<div class="px-3 py-1">
|
|
|
|
<span class="status-damage status-damage-locked"></span> Noch nicht bezahlt
|
|
|
|
</div>
|
2024-03-06 15:55:13 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock content %}
|