mirror of
https://github.com/ae-utbm/sith.git
synced 2026-12-05 07:12:48 +00:00
feat: forbid self-refill on counters
This commit is contained in:
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"
|
||||
|
||||
Reference in new issue
Block a user