Commit Graph

105 Commits (ba83993abf2aeeb778723e33a0f83a22129a11fa)

Author SHA1 Message Date
mpeltriaux ba83993abf # 382 - Redirect as 404
* extends 404 template (user should check the URL)
* introduces new decorator "uuid_required" which performs a check on a given 'uuid' or 'id' parameter
    * throws a Http404 exception --> redirect to 404 template instead of 500 error template
8 months ago
mpeltriaux d9046eb2b9 Unit test user app
* adds unit test for User model and forms
* refactors functions from user_checks.py into User class and drops user_checks.py
1 year ago
mpeltriaux e443c5f8be # Unit test konova app
* adds unit test for konova app models
* drops unused/unnecessary code fragments
* updates translation
1 year ago
mpeltriaux 3fa76063d0 Eco account unit tests
* adds eco account unit tests
* adds validity check to eco account form to check on existing deductions and potential conflict with reduced deductable surface
* improves geojson handling on SimpleGeomForm
* adds/updates translation
1 year ago
mpeltriaux ad2f4c12f8 # 342 Fix
* fixes bug where rounding error on aggregated db SUM() would occur
* simplifies code base
1 year ago
mpeltriaux a571c28027 Geometry simplification
* simplifies geometries on SimpleGeomForm if threshold GEOM_MAX_VERTICES has been exceeded
    * geometry is iteratively simplified to find a proper tolerance value which satisfies the GEOM_MAX_VERTICES threshold
1 year ago
mpeltriaux 9673886f93 # 308 To share info message
* adds needs-to-be-shared info message on entries which are only shared with the current user
2 years ago
mpeltriaux 8e95e980a3 # Reduces db access
* reduces number of queries performed on detail views of intervention, compensation and eco_account
* renders deductable_rest of eco account beneath progressbar on eco account index view
    * clarifies ordering logic of related column
2 years ago
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 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 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 96ee94583f Fixes account deletion with deductions
* adds a warning on removing an eco account if there are still deductions
    * this way a user needs to get rid of these deductions first
2 years ago
mpeltriaux 68dfef18c5 Fixes EcoAccount availability ordering
* adds db based table ordering for EcoAccountTable
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 e66c5369a7 CompensationAction views
* replaces function based action views with class based
2 years ago
mpeltriaux 75802c5f66 State views
* replaces function based state views with class based
2 years ago
mpeltriaux 9e6a9f4902 Deadline views
* replaces function based views for deadlines with class based views
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 d168ec47ce 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 8c3e8b596a Compensation views
* splits compensation/views/compensation.py (+700 lines) into separate files in new module
    * view files can now be found in /compensation/views/compensation/...
2 years ago
mpeltriaux ca6770ec54 Tables refactoring
* splits compensation tables.py into individual files for compensation table and eco account table
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 1367fd2b5f Compensation forms refactoring
* splits compensation/forms.py and /modalForms.py into individual files inside new packages
    * general forms stay in new files in compensation/forms
    * modal forms stay in new files in compensation/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 538d8d1ed2 #190 Mandatory finished deadline
* adds template message to indicate a finished-deadline is mandatory
* adds finished deadline existance to quality check of compensation-like entries
* adds proper warning to quality check result
* extends tests
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 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
mpeltriaux e152dfd4d7 #101 Team sharing form
* adds team sharing field to share form
* splits sharing logic into user based and teams based
* adds TeamAdmin for admin backend
* adds validity check on Team name -> only unused names shall be valid
3 years ago
mpeltriaux 5ccb63d27b #114 Unshared Account Deductions
* enables deducting from unshared eco accounts
   * account must be recorded and not deleted, so users can use it for deductions
3 years ago
mpeltriaux 6fbdc3c1fb #86 Edit deadlines EcoAccount
* adds support for editing of deadlines in EcoAccount
* adds buttons and urls
3 years ago
mpeltriaux afb0cabec4 #86 Edit deadline Compensation
* adds support for editing of deadlines
* adds buttons and urls
* adds w-10 as base css-class for all action columns
3 years ago
mpeltriaux c88bbdabbc #86 Edit view tests
* extends view tests
3 years ago
mpeltriaux 792b4a4632 #86 Edit actions compensation
* adds support for editing of CompensationAction for compensation
* adds buttons and urls
3 years ago
mpeltriaux aa242e040a #86 Edit states EMA/EcoAccount
* adds support for editing of states for EMA and EcoAccount
* adds buttons and urls
3 years ago
mpeltriaux 0c261196a4 #86 Edit states compensation
* adds support for editing of states
* adds buttons and urls for compensation
3 years ago
mpeltriaux fe842cb9bc #86 Edit document EcoAccount
* adds support for editing of documents
* adds buttons and urls for ecoaccount
3 years ago
mpeltriaux 3ded54b80f #86 Edit document Compensation
* adds support for editing of documents
* adds buttons and urls for compensation
* simplifies getter for all documents
3 years ago
mpeltriaux c5534bcd55 #86 Edit document
* adds support for editing of documents
* adds buttons for intervention
3 years ago
mpeltriaux d106977c34 #86 Edit deductions
* adds support for editing deductions
* adds tests
* improves major base test logic
3 years ago
mpeltriaux ce9143e4b2 #86 Edit payment
* adds button for payment editing
* adds new edit form payment editing
* adds tests for views and workflow
3 years ago
mpeltriaux 02ccb78080 Remove form renaming
* renames new remove modal forms to match a more coherent style
3 years ago
mpeltriaux 5ebb3f833a #86 Log detail enhancements
* restructures removing of related data into separate sub-delete forms for easier logic handling
3 years ago