Files
notifications-admin/app/templates/views/service-settings.html
T

86 lines
2.9 KiB
HTML
Raw Normal View History

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 14:39:57 +01:00
{% from "components/table.html" import mapping_table, row, text_field, edit_field, field %}
{% block page_title %}
2016-08-22 10:45:39 +01:00
Settings GOV.UK Notify
{% endblock %}
2015-12-14 16:53:07 +00:00
{% block maincolumn_content %}
2016-04-01 10:42:23 +01:00
<h1 class="heading-large">Settings</h1>
2015-12-14 16:53:07 +00:00
2016-08-22 20:22:47 +01:00
<div class="bottom-gutter-2">
2016-08-22 14:39:57 +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) }}
{{ edit_field('Change', url_for('.service_name_change', service_id=current_service.id)) }}
{% endcall %}
{% call row() %}
{{ text_field('Email reply to address')}}
{{ text_field(
current_service.reply_to_email_address,
status='' if current_service.reply_to_email_address else 'default'
) }}
{{ edit_field('Change', url_for('.service_set_reply_to_email', service_id=current_service.id)) }}
{% endcall %}
{% call row() %}
{{ text_field('Text message sender')}}
{{ text_field(current_service.sms_sender or '40604') }}
{{ edit_field('Change', url_for('.service_set_sms_sender', service_id=current_service.id)) }}
{% endcall %}
{% endcall %}
2016-08-22 14:39:57 +01:00
</div>
2016-08-22 20:22:47 +01:00
<div class="bottom-gutter-2">
2016-08-22 15:39:50 +01:00
2016-08-22 20:22:47 +01:00
<h2 class="heading-medium">Your service is in trial mode</h2>
2016-08-22 15:39:50 +01:00
2016-08-22 20:22:47 +01:00
<ul class='list list-bullet'>
<li>you can only send messages to yourself</li>
<li>you can add people to your team, then you can send messages to them too</li>
<li>you can only send 50 messages per day</li>
</ul>
<p>
To remove these restrictions
<a href="{{ url_for('.service_request_to_go_live', service_id=current_service.id) }}">request to go live</a>.
</p>
</div>
2016-08-22 15:39:50 +01:00
{% if current_user.has_permissions([], admin_override=True) %}
2016-08-22 20:22:47 +01:00
<h2 class="heading-medium">Platform admin settings</h2>
{{ browse_list([
{
'title': 'Email branding',
'link': url_for('.service_set_branding_and_org', service_id=current_service.id)
}
]) }}
<ul>
<li class="bottom-gutter">
<a href="{{ url_for('.service_switch_live', service_id=current_service.id) }}" class="button">
{{ 'Make service live' if current_service.restricted else 'Revert service to trial mode' }}
</a>
</li>
<li>
<a href="{{ url_for('.service_switch_research_mode', service_id=current_service.id) }}" class="button">
{{ 'Take service out of research mode' if current_service.research_mode else 'Put into research mode' }}
</a>
</li>
</ul>
{% endif %}
{% endblock %}