mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-05 14:00:51 -04:00
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
32 lines
775 B
HTML
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 %}
|