2024-01-19 00:39:15 +01:00
|
|
|
{% import "includes/macros" as macros %}
|
|
|
|
{% extends "base" %}
|
|
|
|
{% block content %}
|
2024-09-18 09:58:19 +02:00
|
|
|
<div class="max-w-screen-lg w-full">
|
2024-09-24 20:10:59 +02:00
|
|
|
<h1 class="h1">Gebühren</h1>
|
2024-03-04 13:28:42 +01:00
|
|
|
<div class="search-wrapper">
|
|
|
|
<label for="name" class="sr-only">Suche</label>
|
|
|
|
<input type="search"
|
|
|
|
name="name"
|
|
|
|
id="filter-js"
|
|
|
|
class="search-bar"
|
2024-09-18 09:58:19 +02:00
|
|
|
placeholder="Suchen nach Namen..." />
|
2024-03-04 13:28:42 +01:00
|
|
|
</div>
|
2024-09-18 09:58:19 +02:00
|
|
|
<div id="filter-result-js" class="search-result"></div>
|
|
|
|
<div class="border-r border-l border-gray-200 dark:border-primary-600">
|
2024-03-04 13:28:42 +01:00
|
|
|
{% for fee in fees | sort(attribute="name") %}
|
2024-09-24 20:10:59 +02:00
|
|
|
<div class="border-t border-gray-200 dark:border-primary-600 {% if fee.paid %}bg-[#15803d] text-white {% else %} bg-white dark:bg-primary-900 text-black dark:text-white {% endif %} flex justify-between items-center px-3 py-1 "
|
2024-03-04 13:28:42 +01:00
|
|
|
data-filterable="true"
|
|
|
|
data-filter="{{ fee.name }} {% if fee.paid %} has-already-paid {% else %} has-not-paid {% endif %}"
|
|
|
|
class="bg-white dark:bg-primary-900 p-3 rounded-md w-full">
|
2024-09-18 09:58:19 +02:00
|
|
|
<div class="grid md:grid-cols-3 gap-3 w-full py-3">
|
|
|
|
<div>
|
|
|
|
<strong>{{ fee.name }}</strong>
|
|
|
|
<span class="block">{{ fee.sum_in_cents / 100 }}€</span>
|
2024-03-04 13:28:42 +01:00
|
|
|
</div>
|
2024-09-18 09:58:19 +02:00
|
|
|
<div>
|
2024-03-04 13:28:42 +01:00
|
|
|
{% for p in fee.parts %}
|
|
|
|
{{ p.0 }} ({{ p.1 / 100 }}€)
|
|
|
|
{% if not loop.last %}+{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2024-08-19 10:57:02 +02:00
|
|
|
{% if "admin" in loggedin_user.roles or "kassier" in loggedin_user.roles %}
|
2024-09-24 20:10:59 +02:00
|
|
|
<div class="text-end">
|
|
|
|
<a href="/admin/user/fees/paid?{{ fee.user_ids }}"
|
|
|
|
class="btn btn-primary">Zahlungsstatus ändern</a>
|
|
|
|
</div>
|
2024-03-04 13:28:42 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2024-09-24 20:10:59 +02:00
|
|
|
</div>
|
2024-01-22 19:05:18 +01:00
|
|
|
{% endblock content %}
|