From 4503724ad6faf90356a0142bf51a7d0a1b5dab7c Mon Sep 17 00:00:00 2001
From: Chris Hill-Scott
Date: Mon, 12 Dec 2016 11:18:25 +0000
Subject: [PATCH] Add a support index page
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Our support process is about to get more fully fledged so we’ll need
an index page to route people properly.
We reckon that users will also want to know what the support process is,
so let’s explain it on this page.
---
app/main/views/feedback.py | 11 ++-
app/templates/admin_template.html | 4 +-
app/templates/views/service-settings.html | 2 +-
app/templates/views/signedout.html | 2 +-
.../views/{ => support}/feedback.html | 0
app/templates/views/support/index.html | 86 +++++++++++++++++++
tests/app/main/views/test_feedback.py | 5 ++
7 files changed, 103 insertions(+), 7 deletions(-)
rename app/templates/views/{ => support}/feedback.html (100%)
create mode 100644 app/templates/views/support/index.html
diff --git a/app/main/views/feedback.py b/app/main/views/feedback.py
index 73eae1df0..e481676ad 100644
--- a/app/main/views/feedback.py
+++ b/app/main/views/feedback.py
@@ -4,7 +4,12 @@ from app.main import main
from app.main.forms import Feedback
-@main.route('/feedback', methods=['GET', 'POST'])
+@main.route('/support', methods=['GET', 'POST'])
+def support():
+ return render_template('views/support/index.html')
+
+
+@main.route('/support/feedback', methods=['GET', 'POST'])
def feedback():
form = Feedback()
if form.validate_on_submit():
@@ -38,6 +43,6 @@ def feedback():
)
abort(500, "Feedback submission failed")
flash("Thanks, we’ve received your feedback", 'default_with_tick')
- return redirect(url_for('.feedback'))
+ return redirect(url_for('.support'))
- return render_template('views/feedback.html', form=form)
+ return render_template('views/support/feedback.html', form=form)
diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html
index f85071468..60ff553fa 100644
--- a/app/templates/admin_template.html
+++ b/app/templates/admin_template.html
@@ -40,7 +40,7 @@
Problems or comments?
- Give feedback.
+ Give feedback.
{% endif %}
diff --git a/app/templates/views/signedout.html b/app/templates/views/signedout.html
index 5e804894c..c7ebb9934 100644
--- a/app/templates/views/signedout.html
+++ b/app/templates/views/signedout.html
@@ -168,7 +168,7 @@
and is supported 24 hours a day, 7 days a week.
- Contact the team if you have a question or want
+ Contact the team if you have a question or want
to give feedback.
diff --git a/app/templates/views/feedback.html b/app/templates/views/support/feedback.html
similarity index 100%
rename from app/templates/views/feedback.html
rename to app/templates/views/support/feedback.html
diff --git a/app/templates/views/support/index.html b/app/templates/views/support/index.html
new file mode 100644
index 000000000..cfcf3958f
--- /dev/null
+++ b/app/templates/views/support/index.html
@@ -0,0 +1,86 @@
+{% extends "withoutnav_template.html" %}
+{% from "components/textbox.html" import textbox %}
+{% from "components/page-footer.html" import page_footer %}
+
+{% block page_title %}
+ Feedback – GOV.UK Notify
+{% endblock %}
+
+{% block maincolumn_content %}
+
+
+ Support
+
+
+
+
+
+
+ I have a problem or question
+
+
+
+
+
+
+ Support process
+
+
+ If you have a problem, first check for known issues on the
+ GOV.UK Notify system status page.
+ Subscribe to get alerts on the progress of any listed issue.
+
+
+
+
+ During office hours
+
+
+ Our office hours are 9.30am to 5.30pm, Monday to Friday.
+
+
+ We’ll reply within 30 minutes whether you’re
+ reporting a problem or just asking a question.
+
+
+ The team are also available to answer questions on the
+ cross-government Slack channel.
+
+
+
+ Out of hours support
+
+
+ We offer 24 hour online support if you have a GOV.UK Notify
+ account and we’ve made your service live. We have different
+ response times depending on whether the problem you want to
+ report is an emergency.
+
+
+ It’s only an emergency if:
+
+
+ -
+ no one in your team can log in
+
+ -
+ a ‘technical difficulties’ error appears when you try to
+ upload a file
+
+ -
+ a 500 response code appears when you try to send messages
+ using the API
+
+
+
+ We’ll reply within 30 minutes and give you hourly updates
+ until the problem’s fixed.
+
+
+ We’ll reply by the next working day for any other problems.
+
+
+
+
+
+{% endblock %}
diff --git a/tests/app/main/views/test_feedback.py b/tests/app/main/views/test_feedback.py
index fdf758be7..bc78e2ed4 100644
--- a/tests/app/main/views/test_feedback.py
+++ b/tests/app/main/views/test_feedback.py
@@ -19,6 +19,11 @@ def test_logged_in_user_redirects_to_choose_service(app_,
assert response.location == url_for('main.choose_service', _external=True)
+def test_get_support_index_page(client):
+ resp = client.get(url_for('main.support'))
+ assert resp.status_code == 200
+
+
def test_get_feedback_page(app_):
with app_.test_request_context():
with app_.test_client() as client: