Intervention tables and model adjustments

* adds user access relation to certain models
* adds pagination to tables
* adds checked_on/_by attributes to intervention model
* adds custom column rendering for checked and registered columns
* adds first simple index filtering of default interventions for user
* adds translations
This commit is contained in:
mipel
2021-07-21 15:40:34 +02:00
parent 704137216f
commit d139119a15
10 changed files with 170 additions and 43 deletions

Binary file not shown.

View File

@@ -3,13 +3,13 @@
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#: konova/forms.py:67 user/forms.py:38
#: konova/forms.py:69 user/forms.py:38
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-07-21 13:28+0200\n"
"POT-Creation-Date: 2021-07-21 15:07+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"
@@ -19,49 +19,49 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: compensation/tables.py:18 compensation/tables.py:68 intervention/forms.py:26
#: intervention/tables.py:19
#: compensation/tables.py:18 compensation/tables.py:71 intervention/forms.py:26
#: intervention/tables.py:22
msgid "Identifier"
msgstr "Kennung"
#: compensation/tables.py:23 compensation/tables.py:73 intervention/forms.py:33
#: intervention/tables.py:24
#: compensation/tables.py:23 compensation/tables.py:76 intervention/forms.py:33
#: intervention/tables.py:27
msgid "Title"
msgstr "Titel"
#: compensation/tables.py:28 compensation/tables.py:78
#: compensation/tables.py:28 compensation/tables.py:81
msgid "Created on"
msgstr "Erstellt"
#: compensation/tables.py:33 compensation/tables.py:83
#: compensation/tables.py:33 compensation/tables.py:86
msgid "Actions"
msgstr "Aktionen"
#: compensation/tables.py:41
#: compensation/tables.py:44
msgid "Compensations"
msgstr "Kompensationen"
#: compensation/tables.py:48 compensation/tables.py:98
#: compensation/tables.py:51 compensation/tables.py:104
#: konova/templates/konova/home.html:49 templates/navbar.html:28
msgid "Compensation"
msgstr "Kompensation"
#: compensation/tables.py:51 compensation/tables.py:101
#: intervention/tables.py:74 intervention/tables.py:88
#: compensation/tables.py:54 compensation/tables.py:107
#: intervention/tables.py:79 intervention/tables.py:139
msgid "Open {}"
msgstr "Öffne {}"
#: compensation/tables.py:56 compensation/tables.py:106
#: intervention/tables.py:92
#: compensation/tables.py:59 compensation/tables.py:112
#: intervention/tables.py:143
msgid "Edit {}"
msgstr "Bearbeite {}"
#: compensation/tables.py:60 compensation/tables.py:110
#: intervention/tables.py:96
#: compensation/tables.py:63 compensation/tables.py:116
#: intervention/tables.py:147
msgid "Delete {}"
msgstr "Lösche {}"
#: compensation/tables.py:91
#: compensation/tables.py:97
msgid "Eco Accounts"
msgstr "Ökokonten"
@@ -133,41 +133,57 @@ msgstr "Neuer Eingriff"
msgid "Edit intervention"
msgstr "Eingriff bearbeiten"
#: intervention/tables.py:29
#: intervention/tables.py:32
msgid "Checked"
msgstr "Geprüft"
#: intervention/tables.py:34
#: intervention/tables.py:38
msgid "Registered"
msgstr "Verzeichnet"
#: intervention/tables.py:39
#: intervention/tables.py:44
msgid "Last edit"
msgstr "Zuletzt bearbeitet"
#: intervention/tables.py:59
#: intervention/tables.py:64
msgid "Interventions"
msgstr "Eingriffe"
#: intervention/tables.py:74 intervention/tables.py:85
#: intervention/tables.py:79 intervention/tables.py:136
#: intervention/templates/intervention/open.html:8
#: konova/templates/konova/home.html:11 templates/navbar.html:22
msgid "Intervention"
msgstr "Eingriff"
#: intervention/tables.py:98
msgid "Not checked yet"
msgstr "Noch nicht geprüft"
#: intervention/tables.py:102
msgid "Checked on {} by {}"
msgstr "Am {} von {} geprüft worden"
#: intervention/tables.py:121
msgid "Not registered yet"
msgstr "Noch nicht verzeichnet"
#: intervention/tables.py:125
msgid "Registered on {} by {}"
msgstr "Am {} von {} verzeichnet worden"
#: intervention/templates/intervention/open.html:12
msgid "Edit"
msgstr "Bearbeiten"
#: intervention/views.py:58
#: intervention/views.py:60
msgid "Intervention {} added"
msgstr "Eingriff {} hinzugefügt"
#: intervention/views.py:61 intervention/views.py:114
#: intervention/views.py:63 intervention/views.py:116
msgid "Invalid input"
msgstr "Eingabe fehlerhaft"
#: intervention/views.py:111
#: intervention/views.py:113
msgid "{} edited"
msgstr "{} bearbeitet"
@@ -183,19 +199,19 @@ msgstr "Hierfür müssen Sie Administrator sein!"
msgid "You need to be part of another user group."
msgstr "Hierfür müssen Sie einer anderen Nutzergruppe angehören!"
#: konova/forms.py:40
#: konova/forms.py:42
msgid "Not editable"
msgstr "Nicht editierbar"
#: konova/forms.py:66
#: konova/forms.py:68
msgid "Confirm"
msgstr "Bestätigen"
#: konova/forms.py:78
#: konova/forms.py:80
msgid "Remove"
msgstr "Entferne"
#: konova/forms.py:80
#: konova/forms.py:82
msgid "You are about to remove {} {}"
msgstr "Sie sind dabei {} {} zu löschen"