Commit Graph

36 Commits

Author SHA1 Message Date
mipel
06d74f8ccb Biotope code list
* integrates biotope code list to NewStateForm
* adds dal scripts automatically on compensation view
2021-08-24 09:37:59 +02:00
mipel
510d77422a EMA
* adds Ema model (basically Compensation inherited)
* adds index view for EMAs
* fixes drop-down link bug for menu 'More' in navbar
* refactors some more forms to use process_request()
* adds modified attribute to BaseResource for easy last_modified check
* adds setting of modified attribute in all places where UserAction.EDITED is added to log
* adds EMA_ACCOUNT_IDENTIFIER_LENGTH and EMA_ACCOUNT_IDENTIFIER_TEMPLATE to ema/settings.py
* adds EmaAdmin to ema/admin.py
* fixes wrong title in intervention detail view html for revocations
* adds support for subtitle variable to BaseTable and generic_index.html
* drops next_version attribute from models
* adds/updates translations
* adds default ordering for UserActionLogEntry
   * removes extra ordering in log modal rendering
2021-08-19 13:02:31 +02:00
mipel
b2f3094214 Favicon
* adds favicon
2021-08-19 09:12:13 +02:00
mipel
0c2d51b2b1 Mobile optimization
* adds table-responsive class to BaseClass
* adds html meta attributes for proper small device rendering
2021-08-19 08:44:47 +02:00
mipel
6c4ced784b Modal and other tweaks
* removes WIKI_URL, replaces with HELP_LINK since it was the same before as well
* refactors modal form processing (process_request())
   * modal form can now display errors directly inside the modal (as intended by the devs)
   * modals now properly support the GET-POST workflow that is intended by the devs. More information here: https://github.com/trco/django-bootstrap-modal-forms/issues/183
* Improves label-field linking in generic_table_form_body.html
* removes isDeleteForm attribute from modal_form_script.html
2021-08-17 15:27:49 +02:00
mipel
da60ccc85d SSO and messages
* adds message for checking of intervention
* refactors sso message sending to handle an iterable of users
* adds specific method for sending object checking related messages
* adds label support for modal form for more simple clicking of checkboxes
2021-08-17 10:32:54 +02:00
mipel
07a428d0e5 HTML improvements
* refactors initializing and rendering of a map view into map/geom_form.html, which leads to simple includes on the detail views instead of redundant html
* refactors django-autocomplete-light form media links and scripts into dal/scripts.html, which can be included on the header blocks of detail views to support form modals using dal easier without the need for form.media
* changes filter behaviour on eco account index: instead of hiding recorded accounts (like in interventions), the filter option there has been replaced with "Show only unrecorded" which can be used to hide all recorded ones
   * background: eco accounts shall be visible when recorded, since they can only be used for withdrawing if they are recorded. Hiding the recorded ones does not make any sense, just like in interventions
* updates some code documentation
* adds/updates translations
2021-08-10 13:12:15 +02:00
mipel
72d61a23da EcoAccount withdraws
* adds functionality for withdraws from eco accounts in detail view of interventions and eco account as well
* adds get_surface() method to AbstractCompensation class to provide a simple getter for a sql calculation
* adds get_surface_withdraws() method to EcoAccount class to provide a simple getter for a sql calculation
* renames some routes to match coherent rout naming
* adds logic check on NewWithdrawForm
* renames templates/table directory to templates/form, since there are form-table templates inside --> more clarity
* adds new autocomplete routes to konova/urls.py for Interventions and EcoAccounts
* adds/updates translations
* adds/updates template comments
* updates requirements.txt
2021-08-10 10:42:04 +02:00
mipel
71bbb3921a Log
* adds modal_generic.html template for generic usage
* adds M2M field log to BaseObject
* adds show log button to controls.html
* adds logging on adding related objects
* adds render log table using generic modal
* adds tooltip to missing values in detail views
* adds/updates translations
2021-08-05 12:54:28 +02:00
mipel
c6fe944701 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
2021-08-04 08:41:21 +02:00
mipel
b4f9105120 Access url for interventions
* adds access_token as new attribute
* adds generating of access_token
* adds new form
* adds two new routes for sharing an intervention
* adds translation
* adds render_submit to BaseModalForm which triggers rendering the modal footer
2021-07-30 13:30:42 +02:00
mipel
3eb594c1b5 Template improvements
* refactors templates/table.html into templates/generic_index.html
* adds DummyFilterInput as do-not-render-widget
* hardens combination of q filter and other filters on index view rendering
2021-07-28 09:53:14 +02:00
mipel
955784fc45 Document upload
* adds document upload form
* refactors modal form templates into form classes
* adds document upload route to intervention routes of urls.py
2021-07-26 15:16:16 +02:00
mipel
a6c51aede6 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
2021-07-26 11:29:05 +02:00
mipel
4fb2ef26d0 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
2021-07-26 10:23:09 +02:00
mipel
76c7cce9bc Documents removing
* adds generic modal rendering using package django-bootstrap-modal-forms
* adds document file removing from hard drive
* adds translations
2021-07-23 18:27:53 +02:00
mipel
37f3799894 Compensation routes
* improves compensation routes
2021-07-23 15:23:54 +02:00
mipel
591bc739ec Table filters
* adds table filtering for InterventionTable
* adds default ordering
* moves user-access filtering from view to InterventionTableFiler
* adds generic render_icn method for BaseTable (for usage with fontawesome5)
* adds translations
* improves table.html template
2021-07-22 10:00:59 +02:00
mipel
117c740bad Help link
* adds help link
2021-07-22 08:40:26 +02:00
mipel
704137216f Linkage improvement
* adds linking to submenus
* adds PaymentAdmin
* adds Meta class inheritance for tables
2021-07-21 14:17:18 +02:00
mipel
4ef6c32ea2 Html enhancements
* adds some bootstrap enhancements for responsiveness
2021-07-21 13:27:35 +02:00
mipel
07dd2ecd34 Index table enhancement
* minor changes
2021-07-20 17:10:49 +02:00
mipel
d2340ffe0a Default bootstrap tables
* adds basic bootstrap classes to BaseTable model
2021-07-20 14:23:16 +02:00
mipel
8c32aaa845 Default bootstrap tables
* refactors old table index template into bootstrap-fontawesome generic table
2021-07-20 14:05:44 +02:00
mipel
befffbde15 Updates generic_table_form.html
* updates generic template
2021-07-09 07:46:20 +02:00
mipel
1ced6fdadd User menu
* adds user notifications and management
2021-07-08 17:23:06 +02:00
mipel
41fff3a687 User menu
* starts user menu implementation
2021-07-08 11:07:33 +02:00
mipel
f069baa260 Landing page
* started to implement a landing page
* started news implementation
2021-07-05 14:49:32 +02:00
mipel
b59b9839ff Navbar improved 2021-07-02 15:21:53 +02:00
mipel
a8b3bdb56e Navbar improved 2021-07-02 15:08:51 +02:00
mipel
049d47c5f8 Navbar improved 2021-07-02 14:59:37 +02:00
mipel
7b7865509a Simple footer finished 2021-07-02 13:46:06 +02:00
mipel
c422901e67 Simple navbar finished 2021-07-02 13:12:38 +02:00
mipel
76786312e9 Simple navbar implemented 2021-07-02 11:38:44 +02:00
mipel
947f50b11c Refactoring to konova 2021-07-01 14:38:57 +02:00
mipel
c14e9466fb Initial 2021-07-01 13:36:07 +02:00