Files
notifications-admin/app/templates/views/invite-user.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

28 lines
686 B
HTML

{% extends "withnav_template.html" %}
{% from "components/checkbox.html" import checkbox %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block service_page_title %}
Invite a team member
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">
Invite a team member
</h1>
<div class="grid-row">
<form method="post" class="column-three-quarters" novalidate>
{{ textbox(form.email_address, width='1-1', safe_error_message=True) }}
{% include 'views/manage-users/permissions.html' %}
{{ page_footer('Send invitation email') }}
</form>
</div>
{% endblock %}