mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-04 05:20:46 -04:00
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.
46 lines
1.0 KiB
HTML
46 lines
1.0 KiB
HTML
{% 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 %}
|