Commit graph

4 commits

Author SHA1 Message Date
Rachid Mrad
ca9810d9c6
ui wip 2025-01-23 16:46:54 -05:00
zandercymatics
bc3a96aa87
fine comb 2024-12-10 13:50:30 -07:00
zandercymatics
ed9d215577
Form structure 2024-12-09 15:03:39 -07:00
Seamus Johnston
0e3f68622f
Bypass Django internal form rendering
The purpose of this change is to allow direct use of Django templates
to make edits to how form fields and labels are rendered, while
retaining the validation logic provided by Django's extensive field and
widget library.

This commit additional contains:
 - Remove `REQUIRED_SUFFIX`, as it is handled by the templates now
 - Remove `required=True` from form fields, as this is the default
 - Remove `required=False` from fields where it was added as workaround
   for conditionally required questions which Django form wizard
   couldn't handle
 - Replace `clean_is_policy_acknowledged` with `error_messages` dict
 - Remove duplicate nil entry for Federal Agency dropdown
 - Update `DOMAIN_REGEX` to match whole string
 - Subtle changes to `is_valid` and `get_forms` in ApplicationWizard to
   reduce database calls and use form object's initial data correctly
2023-02-02 15:06:23 -06:00