Files
notifications-admin/app/templates/views/api/whitelist.html
Chris Hill-Scott fdeb2997fb Stop whitelist form autocompleting
The browser tries to be helpful by autofilling email addresses and
phone numbers. But it gets confused and tries to fill all the fields
with the same email address or phone number. This looks broken.

This commit disables autocomplete for these form fields.
2016-09-29 10:21:08 +01:00

46 lines
1.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "withnav_template.html" %}
{% from "components/table.html" import list_table, field, hidden_field_heading %}
{% from "components/api-key.html" import api_key %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/list-entry.html" import list_entry %}
{% block page_title %}
API integration GOV.UK Notify
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">
Whitelist
</h1>
<form method="post">
<div class="grid-row">
<div class="column-two-thirds">
{{ list_entry(
form.email_addresses,
item_name='email address',
autocomplete=False
) }}
{{ list_entry(
form.phone_numbers,
item_name='phone number',
autocomplete=False
) }}
</div>
</div>
{{ page_footer(
'Save',
secondary_link=url_for('.api_integration', service_id=current_service.id),
secondary_link_text='Back to API integration'
) }}
</form>
{% endblock %}