7_New_forms #28

Merged
mpeltriaux merged 22 commits from 7_New_forms into master 2021-10-13 08:54:22 +02:00
Owner

Implements #7

# Implements #7
mpeltriaux added 22 commits 2021-10-13 08:53:52 +02:00
* adds new collapsible styled form for new main data
* adds/updates translations
* adds saving functionality for new intervention form
* refactors new identifier generating, so a pre-generated identifier from a new element form will be checked again before saving
* adds css fixes for disturbing input field:focus bugs
* adds missing csrf token to new collapsible form
* adds/updates translations
* introduces mark_as_deleted as only marking instead of using delete() which will really delete from the db
* adds important package itsdangerous and changes psycopg2-binary
* refactors full width fields from BaseModalForm into BaseForm to have this nice little feature for regular forms as well!
* adds functionality for EditInterventionForm (WIP)
* fixes bug in case of unset dates for intervention
* adds missing template formater
* adds/updates translations
* refactors large forms.py into forms/modalForms.py and forms/forms.py
* refactors custom input fields into intervention/inputs.py
* removes unused OpenInterventionForm
* introduces bootstrap class form-control for proper html form input rendering
* fixes bug where missing shared users for an entry resulted in a None exception
* adds GenerateInput with template in generate-content-input.html, which provides a generate button for fetching server-side content
* adds/updates translations
* extends KonovaCode filtering for parent objects matching given input
* extends KonovaCode filtering for parent objects matching given input
* renames data_form into form for easier template render support
* simplifies empty geometry form initialization
* adds intervention comment to detail view
* adds NewCompensationForm content and functionality
* renames CODELIST_COMPENSATION_COMBINATION_ID into CODELIST_COMPENSATION_FUNDING_ID for more clarity
* reorganizes compensation forms into compensation/forms/forms.py and forms/modalForms.py
* adds new compensation html template in compensation/templates/compensation/new
* adds new default message template in message_templates.py: IDENTIFIER_REPLACED
* adds/updates translations
* adds creation of new compensation directly from intervention detail view
* adds comment rendering on compensation detail view (WIP)
* adds shared_access_required decorator
* adds/updates translations
* fixes bug where geometries have been created each time a SimpleGeomForm has been saved
* links edit button in detail view with edit functionality
* fixes minor comment rendering bug
* fixes bug where compensation changes won't save
* adds NewEcoAccountForm
* refactors NewCompensationForm into AbstractCompensationForm so main fields can be reused again
* fixes template bug in account detail view where the amount of deductions has been displayed instead of the available rest
* refactors _generate_new_identifier() into generate_new_identifier()
* refactors get_available_rest() into returning both, the total and relative amount
* improves saving of SimpleGeometryForm()
* adds/updates translations
* adds EditEcoAccountForm
* adds placeholders for some form fields
* changes comment card in detail view into rlp-grayish
* adds eco account detail view comment box
* removes unnecessary loading of dal scripts in view.html
* refactors generated identifier for data objects (10 digits to 6 uppercase letter-digit combination)
* improves generate_random_string() method by adding more options for generation of strings
* adds/updates translations
* fixes bug where modified was not changed on an edit of compensation and ecoaccount
* adds NewEmaForm and EditEmaForm
* refactors ResponsibilityData related form fields into reusable mixin CompensationResponsibleFormMixin
   * used in NewEcoAccountForm and NewEmaForm for easier maintaining and reducing amount of code
* refactors templates /xy/new/view.html into /xy/form/view.html since the same template file is used for new and edit forms
* refactors/renames folders and files for generic template rendering
* removes unused choiceColumnForm.html
* adds minor __str__() improvement
* adds/updates translations
mpeltriaux merged commit 0e7c378d4a into master 2021-10-13 08:54:22 +02:00
mpeltriaux deleted branch 7_New_forms 2021-10-13 08:54:50 +02:00
Sign in to join this conversation.
No description provided.