{% extends "withnav_template.html" %} {% from "components/banner.html" import banner_wrapper %} {% from "components/browse-list.html" import browse_list %} {% from "components/table.html" import mapping_table, row, text_field, edit_field, field, boolean_field %} {% block service_page_title %} Settings {% endblock %} {% block maincolumn_content %}

Settings

{% 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) }} {% if current_user.has_permissions([], admin_override=True) or not can_receive_inbound %} {{ edit_field('Change', url_for('.service_set_sms_sender', service_id=current_service.id, set_inbound_sms=False)) }} {% else %} {{ text_field('') }} {% endif %} {% endcall %} {% call row() %} {{ text_field('International text messages') }} {{ boolean_field('international_sms' in current_service.permissions) }} {{ edit_field('Change', url_for('.service_set_international_sms', service_id=current_service.id)) }} {% endcall %} {% call row() %} {{ text_field('Receive text messages') }} {{ boolean_field('inbound_sms' in current_service.permissions) }} {{ edit_field('Change', url_for('.service_set_inbound_sms', service_id=current_service.id)) }} {% endcall %} {% if can_receive_inbound %} {% call row() %} {{ text_field('API endpoint for received text messages') }} {{ text_field( 'None' if not inbound_api_url else inbound_api_url, status='' if inbound_api_url else 'default' ) }} {{ edit_field('Change', url_for('.service_set_inbound_api', service_id=current_service.id)) }} {% endcall %} {% endif %} {% call row() %} {{ text_field('Letters') }} {{ boolean_field('letter' in current_service.permissions) }} {{ edit_field('Change', url_for('.service_set_letters', service_id=current_service.id)) }} {% endcall %} {% if 'letter' in current_service.permissions %} {% call row() %} {{ text_field('Letter contact details') }} {% call field(status='' if current_service.letter_contact_block else 'default') %} {{ letter_contact_block | string | nl2br | safe if current_service.letter_contact_block else 'None'}} {% endcall %} {{ edit_field('Change', url_for('.service_set_letter_contact_block', service_id=current_service.id)) }} {% endcall %} {% endif %} {% endcall %}
{% if current_service.restricted %}

Your service is in trial mode

To remove these restrictions request to go live.

{% else %}

Your service is live

You can send up to {{ "{:,}".format(current_service.message_limit) }} messages per day.

Problems or comments? Give feedback.

{% endif %} {% if current_user.has_permissions([], admin_override=True) %}

Platform admin settings

{% call mapping_table( caption='Settings', field_headings=['Label', 'Value', 'Action'], field_headings_visible=False, caption_visible=False ) %} {% call row() %} {{ text_field('Email branding' )}} {% call field() %} {% if current_service.branding == 'govuk' %} GOV.UK {% elif current_service.branding == 'both' %} GOV.UK and {{ organisation.name if organisation else None }} {% elif current_service.branding == 'org' %} Only {{ organisation.name if organisation else None }} {% endif %} {% endcall %} {{ edit_field('Change', url_for('.service_set_branding_and_org', service_id=current_service.id)) }} {% endcall %} {% call row() %} {{ text_field('Letter branding')}} {{ text_field(letter_branding) }} {{ edit_field('Change', url_for('.set_letter_branding', service_id=current_service.id)) }} {% endcall %} {% endcall %} {% endif %} {% endblock %}