Upon submitting the Add New User form, if there were any errors, the validation messages would not show on the screen and as such the user would not be shown a clear reason why their form had not sucessfully been submitted
After this PR:
The Add New User form now has validation for the relevant fields, as seen below:
Code changes:
Creates is_textinput template tag
Calls is_textinput template tag in Add New User form
Adds Daisy's error message to render if appropriate for each field in Add New User form
Explicitly removes html's tooltip that pops up upon erroneous form submission saying 'Please fill out this field'. This would stop the form being submitted and as such validated, meaning no errors would show. Done by setting use_required_attribute = False in NPDAUserForm
Before this PR:
Upon submitting the Add New User form, if there were any errors, the validation messages would not show on the screen and as such the user would not be shown a clear reason why their form had not sucessfully been submitted
After this PR:
The Add New User form now has validation for the relevant fields, as seen below:
Code changes:
is_textinput
template tagis_textinput
template tag in Add New User formuse_required_attribute = False
in NPDAUserForm