Commit Graph

227 Commits (ff26019b6efddaf4a90455467a14c83fb25994b5)

Author SHA1 Message Date
mipel d773c3b3d4 Fixes and improvements
* fixes group check on detail views
* adds check for required fields in BaseForm for showing required field hint or not in template
3 years ago
mipel cd5b2e264b Fixes and improvements
* moves diff_states message back to table top for direct presentation in compensation/detail/view.html
* removes diff_states rendering in deadline card in compensation/detail/view.html
* fixes before_state adding based on GET parameter
* refactors UserActionlogEntryEnum into a UserAction TextChoice (Django 3.x)
* adds ordering of compensation states depending on surface value
* refactors ServerMessageImportance from enum into TextChoice (Django 3.x)
* adds/updates translations
3 years ago
mipel 816600535a Compensation detail view
* adds compensation detail view (WIP)
* adds includes dir for related objects, similar to interventions
* adds functionality for
   * adding/removing before_states
   * adding/removing after_states
   * adding/removing deadlines
   * adding/removing documents
* refactors usage of BaseModalForm
   * holds now process_request() in base class for generic usage anywhere
* adds __str__() method for some models
* compensation__action is blank=True now
* renamed tooltips
* adds new routes for state/deadline/document handling inside of compensation/urls.py
* adds precalculation of before/after_states for detail view, so users will see directly if there are missing states
* removes unnecessary link for intervention detail payment
* adds missing tooltips for check and record icon on detail views
* refactors DeadlineTypeEnum into DeadlineType in konova/models.py, just as the django 3.x documentation suggests for model enumerations
* UuidModel id field is not editable anymore in the admin interface
* adds/updates translations
3 years ago
mipel 19f50baae4 Missing group message
* adds group checker decorator for adding a message informing about missing group privileges
3 years ago
mipel f58650effa Default group required
* adds access checks depending on the current group confgiguration of a user
* removes buttons for adding/editing or removing data if default group is not set for a user
* removes buttons for adding/removing related data in unshared interventions
* removes shared-user setting from share menu of an intervention if user is not zb or ets
* renames has_access() from intervention Model into is_shared_with() for more clarity
* fixes bug in group check in_group() from utils.py
3 years ago
mipel 63b2d3ef66 Compensation enhancements
* compensations won't be listed in index table if related intervention has been deleted
* adds functionality for intervention remove button
* adds outcommented code
* adds configurable redirect_url for RemoveModalForm's process_request method
* adds translation
3 years ago
mipel f113bad733 Created|Deleted refactoring
* refactors base attributes created and deleted into UserActionLogEntry foreign keys
* refactors all related queries and process logic
* fixes binding_on into binding_date in intervention/detail/view.html
* adds basic __str__ for some models
*
3 years ago
mipel 92cacd7aaa RemoveModalForm refactoring
* wraps generic request processing logic into RemoveModalForm
* adds delete action to intervention detail compensations.html
* fixes rendering of deleted compensations in intervention detail view
3 years ago
mipel 6a650d2021 Eco Accounts
* adds related eco account withdraw detail view to intervention detail view
* adds new route for removing withdraws using RemoveModalForm
* adds EcoAccountWithdraw model
* adds admin interfaces for EcoAccount and EcoAccountWithdraw
* adds message_templates.py to konova/utils for reusable messages
* splits related-documents.html and related-objects.html into separate templates for each related object type: compensations.html, documents.html, eco-account-withdraws.html and payments.html
* adds translations
3 years ago
mipel e9f25e50ac Compensation model refactoring
* splits Intervention model into main components
   * Compensation (main object)
   * ResponsibilityData (holds organizations and handler) - same as used for intervention
   * This way data can be extended more easily in the future
* refactors deadlines
3 years ago
mipel 5858a5fdf9 Compensation users refactoring
* moves accessibility of compensations completely into related intervention.users set
  * this way the visibility for a compensation can not differ from the one of the 'parent' intervention
3 years ago
mipel 4647be958b Intervention model refactoring
* adds UserActionLogEntry model to user/models.py
  * wraps user and timestamp info
  * can be extended for more information in the future
* refactors all filtering and accessing on values
3 years ago
mipel 287e0b4068 Compensation index view
* adds filters and table optimizations for compensation index rendering
* fixes recorded_by/checked_by confusion in intervention table
3 years ago
mipel d919eee3b4 Dashboard dynamic content
* replaces static dummy values with database values
* renames 'Your own' into 'Shared with you' for clarification
* adds translation
3 years ago
mipel 1ff02c30a6 Document upload
* adds document upload form
* refactors modal form templates into form classes
* adds document upload route to intervention routes of urls.py
3 years ago
mipel 1d4be22da5 Template restructuring
* splits large templates into smaller includes
* removes localized form input for payments
* refactors Document removing using the generic remove form
3 years ago
mipel 2889b10e0d Payments add modal form
* adds help texts to add payment form
* adds removing button for payments
* refactors user fetching into BaseForm
* adds generic RemoveModalForm which is intended to be used for every modal form which shall remove something
* adds translations
* removes unused html
* prepares payment amount field to be able to process german inputs like '1.000,50' which is not the international default
3 years ago
mipel 23afe2654e Payments add modal form
* adds modal form for adding payments
* generalizes generic_table_form.html for table-form-like usage in modal_form.html
* adds css enhancements for focused input fields
* adds BaseModalForm as specification to BaseForm, which inherits the BSModalForm class as well
* adds translations
3 years ago
mipel 13a15e4f56 Compensation routes
* improves compensation routes
3 years ago
mipel b962e22c04 Intervention relations enhancements
* refactors model relation to compensation and payment by applying 1-n instead of n-n
3 years ago
mipel a304f8d42e Intervention Detail View
* adds related object overview in detail view
* adds comment field to payment model for 'Verwendungszweck'
* simplifies intervention urls
* adds translations
3 years ago
mipel 67f415c2e3 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
3 years ago
mipel 8f0db2ae3e Linkage improvement
* adds linking to submenus
* adds PaymentAdmin
* adds Meta class inheritance for tables
3 years ago
mipel 32370a0a7e Permission rethinking
* No detailed permissions due to django constraints on model-based permissions
* instead: logic controlled permission by group membership
* adds translations
3 years ago
mipel 75f983f7a7 Refactoring to konova 3 years ago
mipel 4084373e2b Refactoring to konova 3 years ago
mipel a5e8bcfa8c Initial 3 years ago