mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Remove HTML5 validation
This commit: - uses WTForms email fields wherever we collect email addresses - makes sure we don’t let the default HTML5 form validation get trigged (using `novalidate`[1]) We don’t want to use the default validation because: - it looks out of place - it’s not well supported by assistive technology 1. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-novalidate
This commit is contained in:
@@ -14,7 +14,7 @@ Create a new password
|
||||
|
||||
<p>We’ll send you an email to create a new password.</p>
|
||||
|
||||
<form autocomplete="off" method="post">
|
||||
<form autocomplete="off" method="post" novalidate>
|
||||
{{ textbox(form.email_address, safe_error_message=True) }}
|
||||
{{ page_footer("Send email") }}
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user