From 7f1cdd2d273369fca54d24a5fc18085bbfa6b945 Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 9 Dec 2015 10:47:38 +0000 Subject: [PATCH 1/7] Added initial template manage page [ci skip] --- app/templates/manage-templates.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/templates/manage-templates.html diff --git a/app/templates/manage-templates.html b/app/templates/manage-templates.html new file mode 100644 index 000000000..e56f1a051 --- /dev/null +++ b/app/templates/manage-templates.html @@ -0,0 +1,20 @@ +{% extends "admin_template.html" %} + +{% block page_title %} +GOV.UK Notify | Manage templates +{% endblock %} + +{% block content %} + +
+
+

Manage templates

+ +

Here's where you can view templates, choose to add one, or edit/delete one.

+ +

Back to dashboard

+ +
+
+ +{% endblock %} From b5f0fc3012949a9f2d3708374414c2159b21ba13 Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 9 Dec 2015 10:49:05 +0000 Subject: [PATCH 2/7] Added route to the manage templates page [ci skip] --- app/main/views/index.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/main/views/index.py b/app/main/views/index.py index 6f46ae671..ca0d584ee 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -124,3 +124,8 @@ def apikeys(): @main.route("/verification-not-received") def verificationnotreceived(): return render_template('verification-not-received.html') + + +@main.route("/manage-templates") +def managetemplates(): + return render_template('manage-templates.html') From a357fea7af1ea03623cafff9e0c28b275569d786 Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 9 Dec 2015 10:50:01 +0000 Subject: [PATCH 3/7] Added route to the edit template page [ci skip] --- app/main/views/index.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/main/views/index.py b/app/main/views/index.py index ca0d584ee..468262988 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -129,3 +129,8 @@ def verificationnotreceived(): @main.route("/manage-templates") def managetemplates(): return render_template('manage-templates.html') + + +@main.route("/edit-template") +def edittemplate(): + return render_template('edit-template.html') From 65c661d8d716983df7b0319a0dc52233ca545019 Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 9 Dec 2015 10:52:09 +0000 Subject: [PATCH 4/7] Created an initial page for editing templates [ci skip] --- app/templates/edit-template.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/templates/edit-template.html diff --git a/app/templates/edit-template.html b/app/templates/edit-template.html new file mode 100644 index 000000000..a6da98b25 --- /dev/null +++ b/app/templates/edit-template.html @@ -0,0 +1,20 @@ +{% extends "admin_template.html" %} + +{% block page_title %} +GOV.UK Notify | Edit template +{% endblock %} + +{% block content %} + +
+
+

Edit template

+ +

Here's where you can edit an exiting template (including delete) or add a new one

+ +

Back to manage templates

+ +
+
+ +{% endblock %} From c145a07072551310de860efb36332002f3175908 Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 9 Dec 2015 10:58:01 +0000 Subject: [PATCH 5/7] Added link to template edit page --- app/templates/manage-templates.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/templates/manage-templates.html b/app/templates/manage-templates.html index e56f1a051..d8b43e2cf 100644 --- a/app/templates/manage-templates.html +++ b/app/templates/manage-templates.html @@ -12,6 +12,8 @@ GOV.UK Notify | Manage templates

Here's where you can view templates, choose to add one, or edit/delete one.

+

Here is my first template

+

Back to dashboard

From 80461e330cfa022d83143ce897798ed758b4f6a7 Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 9 Dec 2015 11:09:29 +0000 Subject: [PATCH 6/7] Added an add template button to manage templates page --- app/templates/manage-templates.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/templates/manage-templates.html b/app/templates/manage-templates.html index d8b43e2cf..08ed55c22 100644 --- a/app/templates/manage-templates.html +++ b/app/templates/manage-templates.html @@ -12,10 +12,11 @@ GOV.UK Notify | Manage templates

Here's where you can view templates, choose to add one, or edit/delete one.

-

Here is my first template

- -

Back to dashboard

+

Here is my first template

+

+ Add a new message template +

From b038e00fabe7d0a4ef0587580846e512ad283501 Mon Sep 17 00:00:00 2001 From: Pete Herlihy Date: Wed, 9 Dec 2015 11:14:45 +0000 Subject: [PATCH 7/7] Added mange templates link to the dashboard --- app/templates/dashboard.html | 1 + 1 file changed, 1 insertion(+) diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 4266e5f76..d807c57d2 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -16,6 +16,7 @@ GOV.UK Notify | Dashboard
  • View notifications activity
  • User profile
  • Manage users
  • +
  • Manage templates
  • Service settings
  • API keys and documentation