diff --git a/app/main/views/index.py b/app/main/views/index.py index 89bf7efca..ee5e2dab1 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -76,3 +76,28 @@ def emailnotreceived(): @main.route("/text-not-received") def textnotreceived(): return render_template('text-not-received.html') + + +@main.route("/send-email") +def sendemail(): + return render_template('send_email.html') + + +@main.route("/check-email") +def checkemail(): + return render_template('check_email.html') + + +@main.route("/jobs") +def showjobs(): + return render_template('jobs.html') + + +@main.route("/jobs/job") +def showjob(): + return render_template('job.html') + + +@main.route("/jobs/job/notification") +def shownotification(): + return render_template('notification.html') diff --git a/app/templates/check_email.html b/app/templates/check_email.html new file mode 100644 index 000000000..6f6bd51af --- /dev/null +++ b/app/templates/check_email.html @@ -0,0 +1,21 @@ +{% extends "admin_template.html" %} + +{% block page_title %} +GOV.UK Notify | Send email +{% endblock %} + +{% block content %} + +
+
+

Send email

+ +

This page will be where we check the email messages we're about to send

+ +

+ Send email messages +

+
+
+ +{% endblock %} diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index fe6c6908e..1608f5851 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -1,7 +1,7 @@ {% extends "admin_template.html" %} {% block page_title %} -Hello world! +GOV.UK Notify | Dashboard {% endblock %} {% block content %} @@ -10,8 +10,12 @@ Hello world!

Dashboard

-

Insert dashboard here.

+
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/job.html b/app/templates/job.html new file mode 100644 index 000000000..c1e5b7e12 --- /dev/null +++ b/app/templates/job.html @@ -0,0 +1,22 @@ +{% extends "admin_template.html" %} + +{% block page_title %} +GOV.UK Notify | Notifications activity +{% endblock %} + +{% block content %} + +
+
+

Notifications for a specific job

+ +

This page will be where we list the notifications for a specific job.

+ + +
+
+ +{% endblock %} diff --git a/app/templates/jobs.html b/app/templates/jobs.html new file mode 100644 index 000000000..b38f5da9f --- /dev/null +++ b/app/templates/jobs.html @@ -0,0 +1,21 @@ +{% extends "admin_template.html" %} + +{% block page_title %} +GOV.UK Notify | Notifications activity +{% endblock %} + +{% block content %} + +
+
+

Notifications activity

+ +

This page will be where we show the list of jobs that this service has processed

+ +

+ view a particular notification job +

+
+
+ +{% endblock %} diff --git a/app/templates/notification.html b/app/templates/notification.html new file mode 100644 index 000000000..9601e5e03 --- /dev/null +++ b/app/templates/notification.html @@ -0,0 +1,21 @@ +{% extends "admin_template.html" %} + +{% block page_title %} +GOV.UK Notify | Notifications activity +{% endblock %} + +{% block content %} + +
+
+

A specific notification

+ +

This page will be where we show what happened for a specific notification.

+ +

+ View other notifications in this job +

+
+
+ +{% endblock %} diff --git a/app/templates/send_email.html b/app/templates/send_email.html new file mode 100644 index 000000000..9161af232 --- /dev/null +++ b/app/templates/send_email.html @@ -0,0 +1,21 @@ +{% extends "admin_template.html" %} + +{% block page_title %} +GOV.UK Notify | Send email +{% endblock %} + +{% block content %} + +
+
+

Send email

+ +

This page will be where we construct email messages

+ +

+ Continue +

+
+
+ +{% endblock %} diff --git a/appspec.yml b/appspec.yml new file mode 100644 index 000000000..8ccf3f3e1 --- /dev/null +++ b/appspec.yml @@ -0,0 +1,14 @@ +version: 0.0 +os: linux +files: + - source: / + destination: /home/ubuntu/ +hooks: + AfterInstall: + - location: scripts/install_dependencies.sh + timeout: 300 + runas: root + ApplicationStart: + - location: scripts/run_app.sh + timeout: 300 + runas: root diff --git a/scripts/install_dependencies.sh b/scripts/install_dependencies.sh new file mode 100644 index 000000000..f9783ee8b --- /dev/null +++ b/scripts/install_dependencies.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +pip install -r /home/ubuntu/notifications-admin/requirements.txt