Eco Accounts

* adds related eco account withdraw detail view to intervention detail view
* adds new route for removing withdraws using RemoveModalForm
* adds EcoAccountWithdraw model
* adds admin interfaces for EcoAccount and EcoAccountWithdraw
* adds message_templates.py to konova/utils for reusable messages
* splits related-documents.html and related-objects.html into separate templates for each related object type: compensations.html, documents.html, eco-account-withdraws.html and payments.html
* adds translations
This commit is contained in:
mipel
2021-08-02 10:14:34 +02:00
parent 221f7dfb79
commit 98de05089e
16 changed files with 412 additions and 209 deletions

View File

@@ -13,7 +13,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-07-30 15:00+0200\n"
"POT-Creation-Date: 2021-08-02 09:52+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -24,16 +24,16 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: compensation/forms.py:26
#: intervention/templates/intervention/detail/related-objects.html:78
#: intervention/templates/intervention/detail/includes/eco-account-withdraws.html:31
msgid "Amount"
msgstr "Betrag"
msgstr "Menge"
#: compensation/forms.py:28
msgid "Amount in Euro"
msgstr "Betrag in Euro"
#: compensation/forms.py:31
#: intervention/templates/intervention/detail/related-objects.html:81
#: intervention/templates/intervention/detail/includes/payments.html:29
msgid "Due on"
msgstr "Fällig am"
@@ -59,14 +59,14 @@ msgstr "Neue Ersatzzahlung zu Eingriff '{}' hinzufügen"
#: compensation/tables.py:24 compensation/tables.py:164
#: intervention/forms.py:26 intervention/tables.py:23
#: intervention/templates/intervention/detail/related-objects.html:30
#: intervention/templates/intervention/detail/includes/compensations.html:28
msgid "Identifier"
msgstr "Kennung"
#: compensation/tables.py:29 compensation/tables.py:169
#: intervention/forms.py:33 intervention/tables.py:28
#: intervention/templates/intervention/detail/related-documents.html:28
#: intervention/templates/intervention/detail/related-objects.html:33
#: intervention/templates/intervention/detail/includes/compensations.html:31
#: intervention/templates/intervention/detail/includes/documents.html:26
#: intervention/templates/intervention/detail/view.html:60 konova/forms.py:181
msgid "Title"
msgstr "Bezeichnung"
@@ -90,7 +90,7 @@ msgid "Last edit"
msgstr "Zuletzt bearbeitet"
#: compensation/tables.py:61
#: intervention/templates/intervention/detail/related-objects.html:10
#: intervention/templates/intervention/detail/includes/compensations.html:8
msgid "Compensations"
msgstr "Kompensationen"
@@ -253,8 +253,7 @@ msgstr "Freigabelink"
#: intervention/forms.py:241
msgid "Send this link to users who you want to have writing access on the data"
msgstr ""
"Andere Nutzer erhalten über diesen Link Zugriff auf die Daten"
msgstr "Andere Nutzer erhalten über diesen Link Zugriff auf die Daten"
#: intervention/forms.py:250
msgid "Shared with"
@@ -283,46 +282,60 @@ msgstr "Eingriffe"
msgid "Intervention"
msgstr "Eingriff"
#: intervention/templates/intervention/detail/related-documents.html:10
#: intervention/templates/intervention/detail/includes/compensations.html:13
#: intervention/templates/intervention/detail/includes/eco-account-withdraws.html:13
msgid "Add new compensation"
msgstr "Neue Kompensation hinzufügen"
#: intervention/templates/intervention/detail/includes/documents.html:8
msgid "Documents"
msgstr "Dokumente"
#: intervention/templates/intervention/detail/related-documents.html:15
#: intervention/templates/intervention/detail/includes/documents.html:13
#: konova/forms.py:222
msgid "Add new document"
msgstr "Neues Dokument hinzufügen"
#: intervention/templates/intervention/detail/related-documents.html:31
#: intervention/templates/intervention/detail/includes/documents.html:29
#: konova/forms.py:209
msgid "Comment"
msgstr "Kommentar"
#: intervention/templates/intervention/detail/related-documents.html:34
#: intervention/templates/intervention/detail/related-objects.html:87
#: intervention/templates/intervention/detail/includes/documents.html:32
#: intervention/templates/intervention/detail/includes/payments.html:35
msgid "Action"
msgstr "Aktionen"
#: intervention/templates/intervention/detail/related-documents.html:48
#: intervention/templates/intervention/detail/includes/documents.html:46
msgid "Remove document"
msgstr "Dokument löschen"
#: intervention/templates/intervention/detail/related-objects.html:15
msgid "Add new compensation"
msgstr "Neue Kompensation hinzufügen"
#: intervention/templates/intervention/detail/includes/eco-account-withdraws.html:8
msgid "Eco Account Withdraws"
msgstr "Ökokonto Abbuchungen"
#: intervention/templates/intervention/detail/related-objects.html:60
#: intervention/templates/intervention/detail/includes/eco-account-withdraws.html:28
msgid "Account Identifier"
msgstr "Ökokonto Kennung"
#: intervention/templates/intervention/detail/includes/payments.html:8
msgid "Payments"
msgstr "Ersatzzahlungen"
#: intervention/templates/intervention/detail/related-objects.html:65
#: intervention/templates/intervention/detail/includes/payments.html:13
msgid "Add new payment"
msgstr "Neue Zahlung hinzufügen"
#: intervention/templates/intervention/detail/related-objects.html:84
#: intervention/templates/intervention/detail/includes/payments.html:26
msgctxt "money"
msgid "Amount"
msgstr "Betrag"
#: intervention/templates/intervention/detail/includes/payments.html:32
msgid "Transfer comment"
msgstr "Verwendungszweck"
#: intervention/templates/intervention/detail/related-objects.html:102
#: intervention/templates/intervention/detail/includes/payments.html:50
msgid "Remove payment"
msgstr "Zahlung entfernen"
@@ -473,20 +486,20 @@ msgstr "Sie sind dabei {} {} zu löschen"
#: konova/forms.py:164
msgid "Are you sure?"
msgstr ""
msgstr "Sind Sie sicher?"
#: konova/forms.py:188
msgid "When has this file been created? Important for photos."
msgstr ""
msgstr "Wann wurde diese Datei erstellt oder das Foto aufgenommen?"
#: konova/forms.py:198
#: venv/lib/python3.7/site-packages/django/db/models/fields/files.py:231
msgid "File"
msgstr ""
msgstr "Datei"
#: konova/forms.py:200
msgid "Must be smaller than 15 Mb"
msgstr ""
msgstr "Muss kleiner als 15 Mb sein"
#: konova/forms.py:211
msgid "Additional comment on this file"