2024-01-19 00:39:15 +01:00
|
|
|
{% import "includes/macros" as macros %}
|
|
|
|
|
|
|
|
{% extends "base" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2024-01-22 19:05:18 +01:00
|
|
|
<div class="max-w-screen-lg w-full bg-white dark:bg-primary-900 text-black dark:text-white rounded-md block shadow mt-5">
|
|
|
|
{% if flash %}
|
|
|
|
{{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }}
|
|
|
|
{% endif %}
|
2024-01-19 00:39:15 +01:00
|
|
|
|
2024-01-22 19:05:18 +01:00
|
|
|
<h1 class="h1">Gebühren</h1>
|
|
|
|
|
|
|
|
<!-- START filterBar -->
|
|
|
|
<div class="search-wrapper">
|
|
|
|
<label for="name" class="sr-only">Suche</label>
|
|
|
|
<input type="search" name="name" id="filter-js" class="search-bar" placeholder="Suchen nach Name"/>
|
|
|
|
</div>
|
|
|
|
<!-- END filterBar -->
|
|
|
|
|
|
|
|
<div class="bg-primary-100 dark:bg-primary-950 p-3 rounded-b-md grid gap-4">
|
|
|
|
<div id="filter-result-js" class="text-primary-950 dark:text-white text-right"></div>
|
2024-01-19 00:39:15 +01:00
|
|
|
|
|
|
|
{% for fee in fees | sort(attribute="name") %}
|
2024-01-22 19:05:18 +01:00
|
|
|
<div {% if fee.paid %} style="background-color: green;" {% endif %} data-filterable="true" data-filter="{{ fee.name }}" class="bg-white dark:bg-primary-900 p-3 rounded-md w-full">
|
|
|
|
<div class="grid sm:grid-cols-1 gap-3">
|
|
|
|
<div style="width: 100%" class="col-span-2">
|
|
|
|
<b>{{ fee.name }}</b>
|
|
|
|
</div>
|
|
|
|
<div style="width: 100%">
|
|
|
|
{{ fee.sum_in_cents / 100 }}€:
|
|
|
|
</div>
|
|
|
|
<div style="width: 100%">
|
|
|
|
{% for p in fee.parts %}
|
|
|
|
{{ p.0 }} ({{ p.1 / 100 }}€) {% if not loop.last %} + {% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% if "admin" in loggedin_user.roles %}
|
|
|
|
<a href="/admin/user/fees/paid?{{ fee.user_ids }}">Zahlungsstatus ändern</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-19 00:39:15 +01:00
|
|
|
{% endfor %}
|
2024-01-22 19:05:18 +01:00
|
|
|
</div>
|
2024-01-19 00:39:15 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2024-01-22 19:05:18 +01:00
|
|
|
{% endblock content %}
|