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 %}
|
2016-08-22 13:49:41 +01:00
|
|
|
|
{% from "components/table.html" import mapping_table, row, text_field, edit_field %}
|
2015-11-30 16:16:58 +00:00
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-08-22 10:45:39 +01:00
|
|
|
|
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-08-22 11:43:35 +01:00
|
|
|
|
{% call mapping_table(
|
|
|
|
|
|
caption='Settings',
|
|
|
|
|
|
field_headings=['Label', 'Value', 'Action'],
|
|
|
|
|
|
field_headings_visible=False,
|
|
|
|
|
|
caption_visible=False
|
|
|
|
|
|
) %}
|
|
|
|
|
|
{% call row() %}
|
|
|
|
|
|
{{ text_field('Service name' )}}
|
|
|
|
|
|
{{ text_field(current_service.name) }}
|
2016-08-22 13:49:41 +01:00
|
|
|
|
{{ edit_field('Change', url_for('.service_name_change', service_id=current_service.id)) }}
|
2016-08-22 11:43:35 +01:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call row() %}
|
|
|
|
|
|
{{ text_field('Email reply to address')}}
|
2016-08-22 13:49:41 +01:00
|
|
|
|
{{ text_field(current_service.reply_to_email_address) }}
|
|
|
|
|
|
{{ edit_field('Change', url_for('.service_set_reply_to_email', service_id=current_service.id)) }}
|
2016-08-22 11:43:35 +01:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call row() %}
|
|
|
|
|
|
{{ text_field('Text message sender')}}
|
|
|
|
|
|
{{ text_field(current_service.sms_sender or '40604') }}
|
2016-08-22 13:49:41 +01:00
|
|
|
|
{{ edit_field('Change', url_for('.service_set_sms_sender', service_id=current_service.id)) }}
|
2016-08-22 11:43:35 +01:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call row() %}
|
|
|
|
|
|
{{ text_field('Mode')}}
|
|
|
|
|
|
{% if current_service.restricted %}
|
|
|
|
|
|
{{ text_field('Trial') }}
|
2016-08-22 13:49:41 +01:00
|
|
|
|
{{ edit_field('Go live', url_for('.service_request_to_go_live', service_id=current_service.id)) }}
|
2016-08-22 11:43:35 +01:00
|
|
|
|
{% else %}
|
|
|
|
|
|
{{ text_field('Live') }}
|
2016-08-22 13:49:41 +01:00
|
|
|
|
{{ edit_field() }}
|
2016-08-22 11:43:35 +01:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call row() %}
|
|
|
|
|
|
{{ text_field('Active')}}
|
|
|
|
|
|
{{ text_field(current_service.active) }}
|
2016-08-22 13:49:41 +01:00
|
|
|
|
{{ edit_field('Suspend', url_for('.service_status_change', service_id=current_service.id)) }}
|
2016-08-22 11:43:35 +01:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% endcall %}
|
2015-11-30 16:16:58 +00:00
|
|
|
|
|
2016-08-22 10:44:45 +01:00
|
|
|
|
{% if current_user.has_permissions([], admin_override=True) %}
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="heading-large">Platform admin settings</h2>
|
|
|
|
|
|
|
|
|
|
|
|
{{ browse_list([
|
|
|
|
|
|
{
|
|
|
|
|
|
'title': 'Set email branding',
|
|
|
|
|
|
'link': url_for('.service_set_branding_and_org', service_id=current_service.id)
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
'title': 'Make service live',
|
|
|
|
|
|
'link': url_for('.service_switch_live', service_id=current_service.id)
|
|
|
|
|
|
} if current_service.restricted else {
|
|
|
|
|
|
'title': 'Revert service to trial',
|
|
|
|
|
|
'link': url_for('.service_switch_live', service_id=current_service.id)
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
'title': 'Put service into research mode',
|
|
|
|
|
|
'link': url_for('.service_switch_research_mode', service_id=current_service.id)
|
|
|
|
|
|
} if not current_service.research_mode else {
|
|
|
|
|
|
'title': 'Take service out of research mode',
|
|
|
|
|
|
'link': url_for('.service_switch_research_mode', service_id=current_service.id)
|
|
|
|
|
|
}
|
|
|
|
|
|
]) }}
|
|
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
2015-11-30 16:16:58 +00:00
|
|
|
|
{% endblock %}
|