Intervention Detail View

* adds (WIP) detail view for interventions
* renames typo in conservations_file_number to conservation_file_number
* adds simple has_access check for intervention objects for given users
* renames occurences of "Registered" to "Recorded" (verzeichnen)
* adds an informing message for detail view of intervention objects which are not editable for a user
* adds GeometryAdmin
* adds fallback DEFAULT_SRID for Geometry model
* adds translations
This commit is contained in:
mipel
2021-07-22 13:19:14 +02:00
parent 591bc739ec
commit 5e48bac013
13 changed files with 292 additions and 95 deletions

View File

@@ -3,15 +3,15 @@
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#: intervention/filters.py:21 intervention/filters.py:27
#: intervention/filters.py:34 intervention/filters.py:35 konova/forms.py:69
#: intervention/filters.py:25 intervention/filters.py:31
#: intervention/filters.py:38 intervention/filters.py:39 konova/forms.py:70
#: user/forms.py:38
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-07-22 09:31+0200\n"
"POT-Creation-Date: 2021-07-22 13:15+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"
@@ -28,6 +28,7 @@ msgstr "Kennung"
#: compensation/tables.py:23 compensation/tables.py:76 intervention/forms.py:33
#: intervention/tables.py:28
#: intervention/templates/intervention/detail-view.html:47
msgid "Title"
msgstr "Titel"
@@ -49,17 +50,17 @@ msgid "Compensation"
msgstr "Kompensation"
#: compensation/tables.py:54 compensation/tables.py:107
#: intervention/tables.py:92 intervention/tables.py:179
#: intervention/tables.py:92 intervention/tables.py:173
msgid "Open {}"
msgstr "Öffne {}"
#: compensation/tables.py:59 compensation/tables.py:112
#: intervention/tables.py:183
#: intervention/tables.py:177
msgid "Edit {}"
msgstr "Bearbeite {}"
#: compensation/tables.py:63 compensation/tables.py:116
#: intervention/tables.py:187
#: intervention/tables.py:181
msgid "Delete {}"
msgstr "Lösche {}"
@@ -67,19 +68,19 @@ msgstr "Lösche {}"
msgid "Eco Accounts"
msgstr "Ökokonten"
#: intervention/filters.py:20
#: intervention/filters.py:24
msgid "Show all"
msgstr "Alle anzeigen"
#: intervention/filters.py:26
#: intervention/filters.py:30
msgid "Show recorded"
msgstr "Verzeichnete anzeigen"
#: intervention/filters.py:38
#: intervention/filters.py:42
msgid "District"
msgstr "Gemarkung"
#: intervention/filters.py:39
#: intervention/filters.py:43
msgid "Search for district"
msgstr "Nach Gemarkung suchen"
@@ -152,11 +153,13 @@ msgid "Edit intervention"
msgstr "Eingriff bearbeiten"
#: intervention/tables.py:33
#: intervention/templates/intervention/detail-view.html:67
msgid "Checked"
msgstr "Geprüft"
#: intervention/tables.py:39
msgid "Registered"
#: intervention/templates/intervention/detail-view.html:81
msgid "Recorded"
msgstr "Verzeichnet"
#: intervention/tables.py:45
@@ -171,8 +174,8 @@ msgstr "Zuletzt bearbeitet"
msgid "Interventions"
msgstr "Eingriffe"
#: intervention/tables.py:92 intervention/tables.py:176
#: intervention/templates/intervention/open.html:8
#: intervention/tables.py:92 intervention/tables.py:170
#: intervention/templates/intervention/detail-view.html:7
#: konova/templates/konova/home.html:11 templates/navbar.html:22
msgid "Intervention"
msgstr "Eingriff"
@@ -193,27 +196,86 @@ msgstr "Noch nicht verzeichnet"
msgid "Registered on {} by {}"
msgstr "Am {} von {} verzeichnet worden"
#: intervention/tables.py:167
#: intervention/tables.py:161
msgid "Full access granted"
msgstr "Für Sie freigegeben - Datensatz kann bearbeitet werden"
#: intervention/tables.py:167
#: intervention/tables.py:161
msgid "Access not granted"
msgstr "Nicht freigegeben - Datensatz nur lesbar"
#: intervention/templates/intervention/open.html:12
#: intervention/templates/intervention/detail-view.html:12
msgid "Open in LANIS"
msgstr ""
#: intervention/templates/intervention/detail-view.html:18
msgid "Run check"
msgstr ""
#: intervention/templates/intervention/detail-view.html:23
msgid "Record"
msgstr "Verzeichnen"
#: intervention/templates/intervention/detail-view.html:28
msgid "Edit"
msgstr "Bearbeiten"
#: intervention/views.py:63
#: intervention/templates/intervention/detail-view.html:33
#: venv/lib/python3.7/site-packages/django/forms/formsets.py:391
msgid "Delete"
msgstr "Löschen"
#: intervention/templates/intervention/detail-view.html:51
msgid "Registration office"
msgstr "Zulassungsbehörde"
#: intervention/templates/intervention/detail-view.html:55
msgid "Registration office file number"
msgstr "Aktenzeichen Zulassungsbehörde"
#: intervention/templates/intervention/detail-view.html:59
msgid "Conservation office"
msgstr "Naturschutzbehörde"
#: intervention/templates/intervention/detail-view.html:63
msgid "Conversation office file number"
msgstr "Aktenzeichen Naturschutzbehörde"
#: intervention/templates/intervention/detail-view.html:95
msgid "Registration date"
msgstr "Datum Zulassung bzw. Satzungsbeschluss"
#: intervention/templates/intervention/detail-view.html:99
msgid "Binding on"
msgstr "Datum Bestandskraft"
#: intervention/templates/intervention/detail-view.html:103
msgid "Last modified"
msgstr "Zuletzt bearbeitet"
#: intervention/templates/intervention/detail-view.html:107
msgid "by"
msgstr "von"
#: intervention/views.py:62
msgid "Intervention {} added"
msgstr "Eingriff {} hinzugefügt"
#: intervention/views.py:66 intervention/views.py:119
#: intervention/views.py:65 intervention/views.py:127
msgid "Invalid input"
msgstr "Eingabe fehlerhaft"
#: intervention/views.py:116
#: intervention/views.py:92
msgid ""
"Remember: This data has not been shared with you, yet. This means you can "
"only read but can not edit or perform any actions like running a check or "
"recording."
msgstr ""
"Beachten Sie: Diese Daten sind für Sie noch nicht freigegeben worden. Das "
"bedeutet, dass Sie nur lesenden Zugriff hierauf haben und weder bearbeiten, "
"noch Prüfungen durchführen oder verzeichnen können."
#: intervention/views.py:124
msgid "{} edited"
msgstr "{} bearbeitet"
@@ -229,19 +291,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:42
#: konova/forms.py:43
msgid "Not editable"
msgstr "Nicht editierbar"
#: konova/forms.py:68
#: konova/forms.py:69
msgid "Confirm"
msgstr "Bestätigen"
#: konova/forms.py:80
#: konova/forms.py:81
msgid "Remove"
msgstr "Entferne"
#: konova/forms.py:82
#: konova/forms.py:83
msgid "You are about to remove {} {}"
msgstr "Sie sind dabei {} {} zu löschen"
@@ -258,7 +320,7 @@ msgid "On shared access removed"
msgstr "Wenn mir eine Freigabe zu Daten entzogen wird"
#: konova/management/commands/setup_data.py:45
msgid "On shared data registered"
msgid "On shared data recorded"
msgstr "Wenn meine freigegebenen Daten verzeichnet wurden"
#: konova/management/commands/setup_data.py:46
@@ -1026,10 +1088,6 @@ msgstr[1] ""
msgid "Order"
msgstr ""
#: venv/lib/python3.7/site-packages/django/forms/formsets.py:391
msgid "Delete"
msgstr ""
#: venv/lib/python3.7/site-packages/django/forms/models.py:755
#, python-format
msgid "Please correct the duplicate data for %(field)s."
@@ -1668,12 +1726,6 @@ msgstr ""
#~ msgid "Default"
#~ msgstr "Standard"
#~ msgid "Registration office"
#~ msgstr "Zulassungsbehörde"
#~ msgid "Conservation office"
#~ msgstr "Naturschutzbehörde"
#~ msgid "Quickstart"
#~ msgstr "Schnellstart"
@@ -1710,9 +1762,6 @@ msgstr ""
#~ msgid "Confirm check on data"
#~ msgstr "Datenprüfung bestätigen"
#~ msgid "Record data"
#~ msgstr "Daten verzeichnen"
#~ msgid "Add new EMA"
#~ msgstr "Neue EMA hinzufügen"