mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
Merge pull request #3056 from alphagov/spellcheck-email
Set autocomplete and spellcheck attributes on email field
This commit is contained in:
@@ -121,7 +121,7 @@ def email_address(label='Email address', gov_user=True, required=True):
|
||||
if required:
|
||||
validators.append(DataRequired(message='Can’t be empty'))
|
||||
|
||||
return EmailField(label, validators)
|
||||
return EmailField(label, validators, render_kw={'spellcheck': 'false'})
|
||||
|
||||
|
||||
class UKMobileNumber(TelField):
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div class="column-three-quarters">
|
||||
|
||||
{% call form_wrapper() %}
|
||||
{{ textbox(form.password) }}
|
||||
{{ textbox(form.password, autocomplete='current-password') }}
|
||||
<p> Your organisation name will be changed from {{ current_org.name }} to {{ new_name }} </p>
|
||||
{{ page_footer('Confirm') }}
|
||||
{% endcall %}
|
||||
|
||||
@@ -23,7 +23,7 @@ Create an account
|
||||
{{ textbox(form.mobile_number, width='3-4', hint='We’ll send you a security code by text message') }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ textbox(form.password, hint="At least 8 characters", width='3-4') }}
|
||||
{{ textbox(form.password, hint="At least 8 characters", width='3-4', autocomplete='new-password') }}
|
||||
{{ page_footer("Continue") }}
|
||||
{{form.service}}
|
||||
{{form.email_address}}
|
||||
|
||||
@@ -18,7 +18,7 @@ Create an account
|
||||
<div class="extra-tracking">
|
||||
{{ textbox(form.mobile_number, width='3-4', hint='We’ll send you a security code by text message') }}
|
||||
</div>
|
||||
{{ textbox(form.password, hint="At least 8 characters", width='3-4') }}
|
||||
{{ textbox(form.password, hint="At least 8 characters", width='3-4', autocomplete='new-password') }}
|
||||
{{ page_footer("Continue") }}
|
||||
{{form.organisation}}
|
||||
{{form.email_address}}
|
||||
|
||||
@@ -14,12 +14,12 @@ Create an account
|
||||
<h1 class="heading-large">Create an account</h1>
|
||||
{% call form_wrapper(autocomplete=True) %}
|
||||
{{ textbox(form.name, width='3-4') }}
|
||||
{{ textbox(form.email_address, hint="Must be from a government organisation", width='3-4', safe_error_message=True) }}
|
||||
{{ textbox(form.email_address, hint="Must be from a government organisation", width='3-4', safe_error_message=True, autocomplete='email') }}
|
||||
<div class="extra-tracking">
|
||||
{{ textbox(form.mobile_number, width='3-4', hint='We’ll send you a security code by text message') }}
|
||||
</div>
|
||||
<input class="visually-hidden" aria-hidden="true" tabindex="-1" id="defeat-chrome-autocomplete">
|
||||
{{ textbox(form.password, hint="At least 8 characters", width='3-4') }}
|
||||
{{ textbox(form.password, hint="At least 8 characters", width='3-4', autocomplete='new-password') }}
|
||||
{{form.auth_type}}
|
||||
{{ page_footer("Continue") }}
|
||||
{% endcall %}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div class="column-three-quarters">
|
||||
|
||||
{% call form_wrapper() %}
|
||||
{{ textbox(form.password) }}
|
||||
{{ textbox(form.password, autocomplete='current-password') }}
|
||||
{{ page_footer(
|
||||
'Confirm',
|
||||
destructive=destructive
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
{% endif %}
|
||||
|
||||
{% call form_wrapper(autocomplete=True) %}
|
||||
{{ textbox(form.email_address) }}
|
||||
{{ textbox(form.password) }}
|
||||
{{ textbox(form.email_address, autocomplete='email') }}
|
||||
{{ textbox(form.password, autocomplete='current-password') }}
|
||||
{{ page_footer("Continue", secondary_link=url_for('.forgot_password'), secondary_link_text="Forgot your password?") }}
|
||||
{% endcall %}
|
||||
</div>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div class="column-three-quarters">
|
||||
|
||||
{% call form_wrapper(autocomplete=True) %}
|
||||
{{ textbox(form.password) }}
|
||||
{{ textbox(form.password, autocomplete='current-password') }}
|
||||
{{ page_footer('Confirm') }}
|
||||
{% endcall %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user