Commit Graph

256 Commits (5008bdaaf064e2ed0300b670483a15ec48bfcb8d)

Author SHA1 Message Date
mpeltriaux aba91db152 #277 Deleted entries accessible
* fixes bug where deleted entries could be accessed if detail page would be called directly
2 years ago
mpeltriaux c3c1e472e8 EGON Export fixes
* replaces missing value 'None' with empty string ''
2 years ago
mpeltriaux f26b26d1a1 Public report enhancements
* adds toggling of scrollable box table views
* deactivates scrolling for public report view (so all entries can be seen if page is printed)
2 years ago
mpeltriaux c4174b5b36 #271 Identifier non editable
* sets the identifier form field as readonly
* extends help text
* updates translations
2 years ago
mpeltriaux cdda43615a #262 Public report missing entry placeholder
* adds empty value rendering on public intervention report
2 years ago
mpeltriaux 6e85c6ea91 Egon sending
* adds sending to EGON (again) when Intervention is recorded
2 years ago
mpeltriaux e26fc7fae1 Fixing broken document migration
* adds changes to document migration to correctly migrate documents
2 years ago
mpeltriaux c3350bb9bc EGON GML Payment date
* fixes bug where missing payment date would result in no egon message sent
2 years ago
mpeltriaux 1798765af5 Revert "File number public reports"
This reverts commit 913c42e7e8.
2 years ago
mpeltriaux 913c42e7e8 File number public reports
* removes file numbers from public reports
2 years ago
mpeltriaux aa13e60bc0 Tests
* extends test for new behaviour of newly created entries
2 years ago
mpeltriaux bfbe1085b2 #249 Created as modified
* fills modified attribute on new entries with created value automatically
* adds default ordering by last modified on table overviews
2 years ago
mpeltriaux 2ef643f4e0 Geometry race condition fix
* fixes race condition for geometry conflict and parcel calculation
* harmonizes empty geometries from None/MultiPolygonEmpty to MultiPolygonEmpty
2 years ago
mpeltriaux 2c493d33dc Egon Payment compatibility
* EGON expects the payment amount to be a localized string instead of float
    * adds transformation for this
2 years ago
mpeltriaux a157891f9d Z-axis geometry upload fix
* adds clamping of 3D geometries to 2D geometries if uploaded using the map importer
* extends tests for payment-document linkage
* fixes bug in team-admin selection where autocomplete could not be resolved properly
2 years ago
mpeltriaux d7b2e933ec #232 Payment document linkage
* adds error message on intervention view if a payment has been added but no document has been uploaded yet
* adds same check to quality checker, meaning no intervention can be recorded which has a payment but no document
* adds trigger for sending data to egon on uploading a document in case of an already existing payment
* adds translations
2 years ago
mpeltriaux 83137f0e58 #229 Shared users mandatory on admin
* changes mandatory state of users and teams on admin backend to optional (as expected by the model)
* adds team selection to admin backend
2 years ago
mpeltriaux b57d52dc9f Table improvements
* enhances visualization of editable column on tables
    * simplifies code
* enhances visualization of parcel_group column on tables
* WIP: Ordering on intervention table is odd. Same results are being displayed on page 2. Needs further analysis and fixing!
2 years ago
mpeltriaux 67df63af0f Quality of Life improvements
* disables ordering of parcel_group ("Gemarkung") column on tables
    * ordering can not be done properly due to more complex nature of this column's content
* introduces "Keine Geometrie vorhanden" message instead of hour glass icon on entries where no geometry has been entered yet
* properly orders last_modified column by moving null values to the lower end of the ordering
2 years ago
mpeltriaux 2129855068 Fix for recorded deduction
* fixes bug where deduction of a recorded intervention could be deleted from the eco account detail view
* improves check_for_recorded_instance() logic
* improves rendering of detail view on compensation-like objects to highlight missing data
2 years ago
mpeltriaux 2957a6aa60 202 Geometry conflict checking to background
* wraps check_for_conflicts() in celery based method
* fixes bug on InterventionEditForm where geometry's save() has been called twice
2 years ago
mpeltriaux f49bb74c38 Login required on modals
* adds new login_required_modal decorator
    * can be used before regular login_required decorator to return a proper session-timed-out message
2 years ago
mpeltriaux fc19a4de52 Share views
* replaces function based share views with class based
* improves team-share autocomplete search
* renames internal share url names
2 years ago
mpeltriaux 09402611dc EcoAccount views
* splits compensation/views/eco_account.py (+700 lines) into separate files in new module
    * view files can now be found in /compensation/views/eco_account/...
2 years ago
mpeltriaux a73046aa02 Document views
* replaces function based views for creating, editing, removing and fetching documents with class based views
    * implemented for all major data types
2 years ago
mpeltriaux 7b35591f5d Record class view
* adds AbstractRecordView to konova/views/record.py
    * implements for all major data types
2 years ago
mpeltriaux ef3507f058 Resubmission class view
* adds AbstractResubmissionView to konova app
    * implemented for all major data types
    * replaces function based views
2 years ago
mpeltriaux 3c416fa264 Konova views
* splits konova/views.py into separate files in new module
    * view files can now be found in /konova/views/...
* introduces first class based view AbstractLogView
    * implemented for Ema, Intervention, Compensation and EcoAccount
2 years ago
mpeltriaux 55a69d45c3 Intervention views
* splits intervention/views.py (+700 lines) into separate files in new module
    * view files can now be found in /intervention/views/...
2 years ago
mpeltriaux 87b1da8fdd Autocomplete refactoring
* refactors konova/autocompletes.py by splitting into individual files and moving them to fitting apps
     * autocomplete files now live in APPNAME/autocomplete/...
2 years ago
mpeltriaux de8d79983d Intervention forms
* refactors intervention/forms and ../modalForms into individual files in separated packages
    * forms.py has been renamed into intervention.py, now can be found as intervention/forms/intervention.py
    * modalForms.py has been split into individual files living in modals package, can be found as intervention/forms/modals/...
2 years ago
mpeltriaux 0bf2051bdf Migrations + Cleanup
* adds needed migrations
* refactors forms.py (700+ lines) in main konova app
    * splits into forms/ and forms/modals and single class/topic-files for better maintainability and overview
* fixes bug in main konova app migration which could occur if a certain compensation migration did not run before
2 years ago
mpeltriaux 60867fdf39 Templates + Routes
* adds control button for Intervention, Compensation, Ema and EcoAccount for setting a resubmission on an entry
2 years ago
mpeltriaux 7e05d05d97 Model
* adds new model and mixin
* adds new functionality for Mailer class for sending resubmission mails
2 years ago
mpeltriaux ff26019b6e Mail sending
* adds mail sending logic for new notification setting
* adds new templates for user and team based sending
* enhances all email template layout
* adds translations
2 years ago
mpeltriaux 053612a924 #180 Shared data users hidden
* implements hidden visibility of shared users on non-shared entries
2 years ago
mpeltriaux 5de3f4c24e #169 Team delete-restore
* adds restorable delete functionality to Team model
* refactors minor code model parts by introducing DeletableObjectMixin
* only non-deleted Teams can be chosen for sharing
* deleted Teams can be restored using the proper function on the backend admin
* deleted Teams do not provide
* adds migration
2 years ago
mpeltriaux c1aa14f6ba #163 Checked icons improvement
* adds a second star icon on currently unchecked but previously checked entries
   --> can be detected easier for another check run
* simplifies some related code parts
* moves some translation string into message_templates.py
* enables session timeout after 60 minutes
* improves comment card layout sizing
* adds/updates translations
2 years ago
mpeltriaux c0595760ab Merge branch 'master' into 138_New_map_client
# Conflicts:
#	konova/models/geometry.py
#	konova/urls.py
#	locale/de/LC_MESSAGES/django.mo
#	locale/de/LC_MESSAGES/django.po
2 years ago
mpeltriaux 3535aba30f #160 Parcel number to parcel table
* adds number of all underlying parcels into parcel table
* reworks minor code parts of parcel related logic
* fixes bug where under certain circumstances a parcel would have been added twice to a geometry
* removes unused parcel fetching on intervention detail view
2 years ago
mpeltriaux a5d24e6db5 WIP: JS Tree improvements
* adds optional short_name rendering for selectable codes
* refactors autocomplete field for compensation state into custom js tree widget
* adds single select (radio) alternative to tree widget templates
2 years ago
mpeltriaux 854382dc9a #149 Send on changes
* changes trigger for sending data to EGON: on each new payment, edited payment or deleted payment action, the data will be sent to EGON instead only once on "recording"
2 years ago
mpeltriaux 2dff3cfce3 #151 Dynamic parcel table
* refactors parcel table into a dynamic table, which does not show all content at once but rather supports pagination and a button which triggers loading of more content
* adds translation
2 years ago
mpeltriaux 8d34580090 #138 WIP Improvements
* adds geom back writing to form field in case of invalid geometry, so the invalid geometry will be shown again
* updates tests
* fixes bug where race condition of celery workers could lead to duplicates in parcels (needs migration)
2 years ago
mpeltriaux d9ec0226fe #138 WIP First draft
* adds first working draft of netgis map client
3 years ago
mpeltriaux 3075ca8fec Merge branch 'master' into 138_New_map_client 3 years ago
mpeltriaux 5f1f2a933e #140 Tests
* adds workflow tests for major datatypes
3 years ago
mpeltriaux a9555f7bda #140 Enhancements
* fixes InterventionAutocomplete bug, where team-shared entries would not pop up as valid option
* fixes bug where form opening for new compensation without direct intervention link resulted in 404
* adds intervention-recorded check on deduction forms: Form is invalid if intervention is currently recorded and therefore blocked for any editing
* extends basic check_for_recorded_instance() method to let some forms pass, e.g. deduction related forms on ecoaccounts which only have a reason to be rendered IF the entry is recorded
* adds/updates translations
3 years ago
mpeltriaux a1c9966d02 #140 Block edit on recorded
* adds new modal form content template recorded_no_edit.html
* adds modal content change, such that no data can be edited on any form as long as the entry is recorded -> instead, users are informed on the form, that the recording state prohibits editing
* adds translations
3 years ago
mpeltriaux 25d2b806ab #146 Clickable QR codes
* refactors QR codes on report views to be clickable as well (even supported through saved pdf)
3 years ago