From 3b3245adbd9b837b437930e08d840825c6751539 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 22 Aug 2016 15:39:50 +0100 Subject: [PATCH] Explain trial mode on the settings page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous text on this page around trial mode was a bit of a mouthful. Also it only really made sense if you already knew what trial mode was. This commit tries to make it really explicit: - that you’re in trial mode - what it means to be in trial mode (copied from the trial mode page) - where you go to not be in trial mode --- app/assets/stylesheets/_grids.scss | 4 +++ app/templates/views/service-settings.html | 36 ++++++++++------------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/app/assets/stylesheets/_grids.scss b/app/assets/stylesheets/_grids.scss index 183a85630..4f571ca13 100644 --- a/app/assets/stylesheets/_grids.scss +++ b/app/assets/stylesheets/_grids.scss @@ -35,6 +35,10 @@ margin-bottom: $gutter-half; } +.bottom-gutter-2 { + margin-bottom: $gutter * 2; +} + .align-with-heading { display: block; text-align: center; diff --git a/app/templates/views/service-settings.html b/app/templates/views/service-settings.html index 07b0b243e..f064030fb 100644 --- a/app/templates/views/service-settings.html +++ b/app/templates/views/service-settings.html @@ -10,7 +10,7 @@

Settings

-
+
{% call mapping_table( caption='Settings', @@ -37,28 +37,22 @@ {{ edit_field('Change', url_for('.service_set_sms_sender', service_id=current_service.id)) }} {% endcall %} {% endcall %} - - {% call mapping_table( - caption='Restrictions', - field_headings=['Label', 'Value', 'Action'], - field_headings_visible=False, - caption_visible=True - ) %} - {% call row() %} - {% if current_service.restricted %} - {{ text_field('Trial mode') }} - {{ text_field('On') }} - {{ edit_field('Request to go live', url_for('.service_request_to_go_live', service_id=current_service.id)) }} - {% else %} - {{ text_field('Trial mode') }} - {{ text_field('Off')}} - {{ edit_field() }} - {% endif %} - {% endcall %} - {% endcall %}
- {% if current_user.has_permissions([], admin_override=True) %} +

Your service is in trial mode

+ + + +

+ To remove these restrictions + request to go live. +

+ + {% if false and current_user.has_permissions([], admin_override=True) %}

Platform admin settings