Merge pull request #1102 from alphagov/api-key-labels

Api key labels updated to clarify Live, Team and Test
This commit is contained in:
Pete Herlihy
2017-02-02 13:33:28 +00:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -69,9 +69,9 @@ def create_api_key(service_id):
]
form = CreateKeyForm(key_names)
form.key_type.choices = [
(KEY_TYPE_NORMAL, 'Send messages to anyone'),
(KEY_TYPE_TEAM, 'Send messages to anyone on my whitelist'),
(KEY_TYPE_TEST, 'Pretend to send messages to anyone'),
(KEY_TYPE_NORMAL, 'Live sends to anyone'),
(KEY_TYPE_TEAM, 'Team and whitelist limits who you can send to'),
(KEY_TYPE_TEST, 'Test pretends to send messages'),
]
if current_service['restricted']:
disabled_options = [KEY_TYPE_NORMAL]

View File

@@ -35,11 +35,11 @@
{{ item.name }}
<span class="file-list-hint">
{% if item.key_type == 'normal' %}
<span class="visually-hidden">Normal</span>
Live sends to anyone
{% 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' %}
Pretends to send messages
Test pretends to send messages
{% endif %}
</span>
</div>