2015-12-14 16:53:07 +00:00
|
|
|
|
{% extends "withnav_template.html" %}
|
2016-01-07 12:29:56 +00:00
|
|
|
|
{% from "components/browse-list.html" import browse_list %}
|
2015-11-30 16:16:58 +00:00
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-02-08 09:23:51 +00:00
|
|
|
|
Service settings – GOV.UK Notify
|
2015-11-30 16:16:58 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
2015-12-14 16:53:07 +00:00
|
|
|
|
{% block maincolumn_content %}
|
2015-11-30 16:16:58 +00:00
|
|
|
|
|
2016-04-01 10:42:23 +01:00
|
|
|
|
<h1 class="heading-large">Settings</h1>
|
2016-01-07 12:29:56 +00:00
|
|
|
|
|
2016-01-07 16:24:43 +00:00
|
|
|
|
{{ browse_list([
|
|
|
|
|
|
{
|
2016-01-08 16:45:48 +00:00
|
|
|
|
'title': 'Change your service name',
|
2016-04-04 16:53:52 +01:00
|
|
|
|
'link': url_for('.service_name_change', service_id=current_service.id)
|
2016-01-07 16:24:43 +00:00
|
|
|
|
},
|
2016-05-16 13:09:58 +01:00
|
|
|
|
{
|
|
|
|
|
|
'title': 'Set email reply to address',
|
|
|
|
|
|
'link': url_for('.service_set_reply_to_email', service_id=current_service.id)
|
|
|
|
|
|
},
|
2016-07-01 13:47:22 +01:00
|
|
|
|
{
|
|
|
|
|
|
'title': 'Set text message sender name',
|
|
|
|
|
|
'link': url_for('.service_set_sms_sender', service_id=current_service.id)
|
|
|
|
|
|
},
|
2016-01-07 16:24:43 +00:00
|
|
|
|
{
|
2016-04-26 13:31:57 +01:00
|
|
|
|
'title': 'Request to go live and turn off trial mode',
|
2016-04-04 16:53:52 +01:00
|
|
|
|
'link': url_for('.service_request_to_go_live', service_id=current_service.id),
|
2016-01-08 16:45:48 +00:00
|
|
|
|
'hint': 'A live service can send notifications to any phone number or email address',
|
2016-04-14 15:38:27 +01:00
|
|
|
|
} if current_service.restricted else {
|
2016-01-07 16:24:43 +00:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2016-01-22 14:38:10 +00:00
|
|
|
|
'title': 'Temporarily suspend API keys',
|
2016-04-04 16:53:52 +01:00
|
|
|
|
'link': url_for('.service_status_change', service_id=current_service.id),
|
2016-01-07 16:24:43 +00:00
|
|
|
|
'destructive': True
|
2016-04-04 16:53:52 +01:00
|
|
|
|
} if not current_service.active else {
|
2016-01-22 14:38:10 +00:00
|
|
|
|
'title': 'Reactivate API keys',
|
2016-04-04 16:53:52 +01:00
|
|
|
|
'link': url_for('.service_status_change', service_id=current_service.id)
|
2016-04-14 15:38:27 +01:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
'title': 'Make service live',
|
|
|
|
|
|
'link': url_for('.service_switch_live', service_id=current_service.id)
|
|
|
|
|
|
} if current_service.restricted and current_user.has_permissions([], admin_override=True) else {
|
|
|
|
|
|
'title': 'Revert service to trial',
|
|
|
|
|
|
'link': url_for('.service_switch_live', service_id=current_service.id)
|
|
|
|
|
|
} if not current_service.restricted and current_user.has_permissions([], admin_override=True) else {
|
|
|
|
|
|
},
|
2016-06-01 16:07:43 +01:00
|
|
|
|
{
|
|
|
|
|
|
'title': 'Put service into research mode',
|
|
|
|
|
|
'link': url_for('.service_switch_research_mode', service_id=current_service.id)
|
|
|
|
|
|
} if not current_service.research_mode and current_user.has_permissions([], admin_override=True) else {
|
|
|
|
|
|
'title': 'Take service out of research mode',
|
|
|
|
|
|
'link': url_for('.service_switch_research_mode', service_id=current_service.id)
|
|
|
|
|
|
} if current_service.research_mode and current_user.has_permissions([], admin_override=True) else {
|
|
|
|
|
|
},
|
2016-01-07 16:24:43 +00:00
|
|
|
|
]) }}
|
2015-11-30 16:16:58 +00:00
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|