mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-23 10:49:31 +00:00
add success message when refunding AE account
This commit is contained in:
1 parent
2d492e0157
commit
2db46e3958
2 files changed
+8
-2
No files matched your search
@@ -408,11 +408,12 @@ class CounterRefillingListView(
|
||||
return super().get_context_data(**kwargs) | {"counter": self.counter}
|
||||
|
||||
|
||||
class RefoundAccountView(UserPassesTestMixin, FormView):
|
||||
class RefoundAccountView(UserPassesTestMixin, SuccessMessageMixin, FormView):
|
||||
"""Create a selling with the same amount as the current user money."""
|
||||
|
||||
template_name = "counter/refound_account.jinja"
|
||||
form_class = CloseCustomerAccountForm
|
||||
success_message = _("%(user)s's AE account has been emptied")
|
||||
|
||||
def test_func(self):
|
||||
return self.request.user.is_root or self.request.user.is_in_group(
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-10-09 21:44+0200\n"
|
||||
"POT-Creation-Date: 2026-10-19 19:45+0200\n"
|
||||
"PO-Revision-Date: 2016-07-18\n"
|
||||
"Last-Translator: Maréchal <thomas.girod@utbm.fr\n"
|
||||
"Language-Team: AE info <ae.info@utbm.fr>\n"
|
||||
@@ -4413,6 +4413,11 @@ msgstr ""
|
||||
msgid "returnable product : %(returnable)s -> %(returned)s"
|
||||
msgstr "produit consigné : %(returnable)s -> %(returned)s"
|
||||
|
||||
#: counter/views/admin.py
|
||||
#, python-format
|
||||
msgid "%(user)s's AE account has been emptied"
|
||||
msgstr "Le compte de %(user)s a été vidé"
|
||||
|
||||
#: counter/views/cash.py
|
||||
msgid "10 cents"
|
||||
msgstr "10 centimes"
|
||||
|
||||
Reference in new issue
Block a user