Files
notifications-admin/app/templates/views/user-profile/change.html
Chris Hill-Scott 7fc2a5b134 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
2017-10-16 17:17:54 +01:00

32 lines
775 B
HTML

{% extends "withoutnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block per_page_title %}
Change your {{ thing }}
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">Change your {{ thing }}</h1>
<div class="grid-row">
{% if preamble %}
<p>
{{ preamble }}
</p>
{% endif %}
<div class="column-three-quarters">
<form method="post" autocomplete="off" novalidate>
{{ textbox(form_field, safe_error_message=True) }}
{{ page_footer(
'Save',
back_link=url_for('.user_profile'),
back_link_text="Back to your profile"
) }}
</form>
</div>
</div>
{% endblock %}