diff --git a/compensation/models.py b/compensation/models.py index ceca5733..9b84ddea 100644 --- a/compensation/models.py +++ b/compensation/models.py @@ -23,6 +23,12 @@ class Payment(BaseResource): """ amount = models.FloatField(validators=[MinValueValidator(limit_value=0.00)]) due_on = models.DateField(null=True) + comment = models.CharField( + max_length=1000, + null=True, + blank=True, + help_text="Refers to german money transfer 'Verwendungszweck'", + ) class CompensationControl(BaseResource): diff --git a/intervention/templates/intervention/detail-view.html b/intervention/templates/intervention/detail-view.html index 8dc9c52d..7700b516 100644 --- a/intervention/templates/intervention/detail-view.html +++ b/intervention/templates/intervention/detail-view.html @@ -13,7 +13,17 @@ LANIS + + + {% if has_access %} + + + + + + + + +
+ + + + + + + + + {% for comp in intervention.compensations.all %} + + + + + {% endfor %} + +
+ {% trans 'Identifier' %} + + {% trans 'Title' %} +
+ + {{ comp.identifier }} + + {{ comp.title }}
+
+ + +
+ +
+ {% endblock %} \ No newline at end of file diff --git a/intervention/urls.py b/intervention/urls.py index c024af64..0f706591 100644 --- a/intervention/urls.py +++ b/intervention/urls.py @@ -13,7 +13,7 @@ app_name = "intervention" urlpatterns = [ path("", index_view, name="index"), path('new/', new_view, name='new'), - path('open/', open_view, name='open'), - path('edit/', edit_view, name='edit'), - path('remove/', remove_view, name='remove'), + path('', open_view, name='open'), + path('/edit', edit_view, name='edit'), + path('/remove', remove_view, name='remove'), ] \ No newline at end of file diff --git a/konova/static/css/konova.css b/konova/static/css/konova.css index af50f043..abf6e3f8 100644 --- a/konova/static/css/konova.css +++ b/konova/static/css/konova.css @@ -143,6 +143,21 @@ a { */ box-shadow: 1px 1px 3px var(--rlp-gray-dark); } +.btn-outline-default{ + color: white; + border: 1px solid white; +} +.btn-outline-default:hover{ + /* + color: var(--rlp-gray-light); + color: var(--rlp-red);; + background-color: unset; + border: 1px solid var(--rlp-red); + */ + box-shadow: 1px 1px 3px var(--rlp-gray-light); + color: var(--rlp-red); + background-color: white; +} .cursor-pointer{ cursor: pointer; diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index c789355a..725ccf03 100644 Binary files a/locale/de/LC_MESSAGES/django.mo and b/locale/de/LC_MESSAGES/django.mo differ diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index c0b1b68e..2af3bcc5 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-22 13:15+0200\n" +"POT-Creation-Date: 2021-07-22 14:57+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -23,14 +23,16 @@ msgstr "" #: compensation/tables.py:18 compensation/tables.py:71 intervention/forms.py:26 #: intervention/tables.py:23 +#: intervention/templates/intervention/detail-view.html:159 msgid "Identifier" 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 +#: intervention/templates/intervention/detail-view.html:57 +#: intervention/templates/intervention/detail-view.html:162 msgid "Title" -msgstr "Titel" +msgstr "Bezeichnung" #: compensation/tables.py:28 compensation/tables.py:81 msgid "Created on" @@ -41,6 +43,7 @@ msgid "Actions" msgstr "Aktionen" #: compensation/tables.py:44 +#: intervention/templates/intervention/detail-view.html:139 msgid "Compensations" msgstr "Kompensationen" @@ -153,12 +156,12 @@ msgid "Edit intervention" msgstr "Eingriff bearbeiten" #: intervention/tables.py:33 -#: intervention/templates/intervention/detail-view.html:67 +#: intervention/templates/intervention/detail-view.html:77 msgid "Checked" msgstr "Geprüft" #: intervention/tables.py:39 -#: intervention/templates/intervention/detail-view.html:81 +#: intervention/templates/intervention/detail-view.html:91 msgid "Recorded" msgstr "Verzeichnet" @@ -206,57 +209,85 @@ msgstr "Nicht freigegeben - Datensatz nur lesbar" #: intervention/templates/intervention/detail-view.html:12 msgid "Open in LANIS" -msgstr "" +msgstr "In LANIS öffnen" -#: intervention/templates/intervention/detail-view.html:18 -msgid "Run check" -msgstr "" +#: intervention/templates/intervention/detail-view.html:17 +msgid "Public report" +msgstr "Öffentlicher Bericht" #: intervention/templates/intervention/detail-view.html:23 +msgid "Share" +msgstr "Freigabe" + +#: intervention/templates/intervention/detail-view.html:28 +msgid "Run check" +msgstr "Prüfung vornehmen" + +#: intervention/templates/intervention/detail-view.html:33 msgid "Record" msgstr "Verzeichnen" -#: intervention/templates/intervention/detail-view.html:28 +#: intervention/templates/intervention/detail-view.html:38 msgid "Edit" msgstr "Bearbeiten" -#: intervention/templates/intervention/detail-view.html:33 +#: intervention/templates/intervention/detail-view.html:43 #: venv/lib/python3.7/site-packages/django/forms/formsets.py:391 msgid "Delete" msgstr "Löschen" -#: intervention/templates/intervention/detail-view.html:51 +#: intervention/templates/intervention/detail-view.html:61 msgid "Registration office" msgstr "Zulassungsbehörde" -#: intervention/templates/intervention/detail-view.html:55 +#: intervention/templates/intervention/detail-view.html:65 msgid "Registration office file number" msgstr "Aktenzeichen Zulassungsbehörde" -#: intervention/templates/intervention/detail-view.html:59 +#: intervention/templates/intervention/detail-view.html:69 msgid "Conservation office" msgstr "Naturschutzbehörde" -#: intervention/templates/intervention/detail-view.html:63 +#: intervention/templates/intervention/detail-view.html:73 msgid "Conversation office file number" msgstr "Aktenzeichen Naturschutzbehörde" -#: intervention/templates/intervention/detail-view.html:95 +#: intervention/templates/intervention/detail-view.html:105 msgid "Registration date" msgstr "Datum Zulassung bzw. Satzungsbeschluss" -#: intervention/templates/intervention/detail-view.html:99 +#: intervention/templates/intervention/detail-view.html:109 msgid "Binding on" msgstr "Datum Bestandskraft" -#: intervention/templates/intervention/detail-view.html:103 +#: intervention/templates/intervention/detail-view.html:113 msgid "Last modified" msgstr "Zuletzt bearbeitet" -#: intervention/templates/intervention/detail-view.html:107 +#: intervention/templates/intervention/detail-view.html:117 msgid "by" msgstr "von" +#: intervention/templates/intervention/detail-view.html:144 +msgid "Add new compensation" +msgstr "Neue Kompensation hinzufügen" + +#: intervention/templates/intervention/detail-view.html:189 +msgid "Payments" +msgstr "Ersatzzahlungen" + +#: intervention/templates/intervention/detail-view.html:194 +msgid "Add new payment" +msgstr "Neue Zahlung hinzufügen" + +#: intervention/templates/intervention/detail-view.html:209 +msgid "Amount" +msgstr "Betrag" + +#: intervention/templates/intervention/detail-view.html:212 +msgid "Transfer comment" +msgstr "Verwendungszweck" + #: intervention/views.py:62 msgid "Intervention {} added" msgstr "Eingriff {} hinzugefügt" @@ -1744,9 +1775,6 @@ msgstr "" #~ msgid "Delete intervention" #~ msgstr "Eingriff löschen" -#~ msgid "Add new compensation" -#~ msgstr "Neue Kompensation hinzufügen" - #~ msgid "Delete compensation" #~ msgstr "Kompensation löschen" @@ -1816,9 +1844,6 @@ msgstr "" #~ msgid "New action" #~ msgstr "Neue Maßnahme" -#~ msgid "Annual report" -#~ msgstr "Jahresbericht" - #~ msgid "You are currently working as " #~ msgstr "Sie arbeiten gerade als "