Explain trial mode on the settings page

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
This commit is contained in:
Chris Hill-Scott
2016-08-22 15:39:50 +01:00
parent 05a493f1e8
commit 3b3245adbd
2 changed files with 19 additions and 21 deletions

View File

@@ -35,6 +35,10 @@
margin-bottom: $gutter-half;
}
.bottom-gutter-2 {
margin-bottom: $gutter * 2;
}
.align-with-heading {
display: block;
text-align: center;

View File

@@ -10,7 +10,7 @@
<h1 class="heading-large">Settings</h1>
<div class="dashboard-table">
<div class="dashboard-table bottom-gutter-2">
{% 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 %}
</div>
{% if current_user.has_permissions([], admin_override=True) %}
<h2 class="heading-medium">Your service is in trial mode</h2>
<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>
{% if false and current_user.has_permissions([], admin_override=True) %}
<h2 class="heading-large">Platform admin settings</h2>