mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -04:00
Merge pull request #1102 from alphagov/api-key-labels
Api key labels updated to clarify Live, Team and Test
This commit is contained in:
@@ -69,9 +69,9 @@ def create_api_key(service_id):
|
|||||||
]
|
]
|
||||||
form = CreateKeyForm(key_names)
|
form = CreateKeyForm(key_names)
|
||||||
form.key_type.choices = [
|
form.key_type.choices = [
|
||||||
(KEY_TYPE_NORMAL, 'Send messages to anyone'),
|
(KEY_TYPE_NORMAL, 'Live – sends to anyone'),
|
||||||
(KEY_TYPE_TEAM, 'Send messages to anyone on my whitelist'),
|
(KEY_TYPE_TEAM, 'Team and whitelist – limits who you can send to'),
|
||||||
(KEY_TYPE_TEST, 'Pretend to send messages to anyone'),
|
(KEY_TYPE_TEST, 'Test – pretends to send messages'),
|
||||||
]
|
]
|
||||||
if current_service['restricted']:
|
if current_service['restricted']:
|
||||||
disabled_options = [KEY_TYPE_NORMAL]
|
disabled_options = [KEY_TYPE_NORMAL]
|
||||||
|
|||||||
@@ -35,11 +35,11 @@
|
|||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
<span class="file-list-hint">
|
<span class="file-list-hint">
|
||||||
{% if item.key_type == 'normal' %}
|
{% if item.key_type == 'normal' %}
|
||||||
<span class="visually-hidden">Normal</span>
|
Live – sends to anyone
|
||||||
{% elif item.key_type == 'team' %}
|
{% elif item.key_type == 'team' %}
|
||||||
Sends to anyone on your whitelist
|
Team and whitelist – limits who you can send to
|
||||||
{% elif item.key_type == 'test' %}
|
{% elif item.key_type == 'test' %}
|
||||||
Pretends to send messages
|
Test – pretends to send messages
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user