feat: forbid self-refill on counters

This commit is contained in:
imperosol committed 2026-12-03 14:04:42 +01:00
1 parent ebb43658e1
commit 702524d77d
5 files changed
+70 -5

No files matched your search

@@ -190,6 +190,17 @@
>
{{ refilling_fragment }}
</div>
{% elif customer in request.barmen %}
<div class="accordion-content">
<p class="alert alert-yellow">
{% trans trimmed %}
You are able to refill AE accounts.
However, it is forbidden to self-refill on a counter.
To refill your account, please ask to another barman,
or do it in the eboutic.
{% endtrans %}
</p>
</div>
{% else %}
<div class="accordion-content">
<p class="alert alert-yellow">
@@ -1,4 +1,5 @@
<form
id="counter-refill-fragment"
hx-trigger="submit"
hx-post="{{ action }}"
hx-swap="outerHTML"