Add new trial mode page

This commit is contained in:
Chris Hill-Scott
2019-04-09 15:27:33 +01:00
parent 5a9c25d6be
commit 5968f23fd5
3 changed files with 22 additions and 10 deletions

View File

@@ -60,11 +60,6 @@ def privacy():
return render_template('views/privacy.html')
@main.route('/trial-mode')
def trial_mode():
return redirect(url_for('.using_notify') + '#trial-mode', 301)
@main.route('/pricing')
def pricing():
return render_template(
@@ -293,6 +288,19 @@ def message_status():
)
@main.route('/trial-mode')
def trial_mode():
return redirect(url_for('.trial_mode_new'), 301)
@main.route('/features/trial-mode')
def trial_mode_new():
return render_template(
'views/trial-mode.html',
navigation_links=features_nav()
)
# --- Redirects --- #
@main.route('/roadmap', endpoint='old_roadmap')

View File

@@ -36,4 +36,8 @@ def features_nav():
"name": "Message status",
"link": "main.message_status",
},
{
"name": "Trial mode",
"link": "main.trial_mode_new",
},
]

View File

@@ -22,7 +22,7 @@
<li>send messages to you and other people in your team</li>
<li>create draft letters, but not send them</li>
</ul>
<p>
To remove these restrictions, you can
{% if current_service and current_service.trial_mode %}
@@ -33,13 +33,13 @@
</p>
<p>Before you can request to go live, you must:</p>
<ul class="list bullet-list">
<ul class="list list-bullet">
<li>sign our data sharing and financial agreement</li>
<li>accept our terms of use</li>
<li>set up your service so you're ready to send and receive messages</li>
</ul>
</div>
{% endblock %}