From 87a76e11f6c7012d749aa021d5caae1cf2af4cf7 Mon Sep 17 00:00:00 2001
From: mrschnei <mrschnei@umich.edu>
Date: Mon, 29 Jun 2020 22:23:36 -0400
Subject: [PATCH] Added food and blood drive pages

---
 servicePoints/templates/blood.html | 15 +++++++++++++++
 servicePoints/templates/food.html  | 16 ++++++++++++++++
 servicePoints/templates/index.html |  8 ++++----
 servicePoints/views/accounts.py    | 10 ++++++++++
 4 files changed, 45 insertions(+), 4 deletions(-)
 create mode 100644 servicePoints/templates/blood.html
 create mode 100644 servicePoints/templates/food.html

diff --git a/servicePoints/templates/blood.html b/servicePoints/templates/blood.html
new file mode 100644
index 0000000..5a1043e
--- /dev/null
+++ b/servicePoints/templates/blood.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <link rel="stylesheet" type="text/css" href="/css/style.css">
+    <title>Blood Drives</title>
+
+    <a href="/">Home</a>
+</head>
+<body>
+    <h1 style="text-align:center">Blood Drives</h1>
+
+
+</body>
+
+</html>
diff --git a/servicePoints/templates/food.html b/servicePoints/templates/food.html
new file mode 100644
index 0000000..e2033c4
--- /dev/null
+++ b/servicePoints/templates/food.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <link rel="stylesheet" type="text/css" href="/css/style.css">
+    <title>Food Drives</title>
+
+    <a href="/">Home</a>
+</head>
+<body>
+    <h1 style="text-align:center">Food Drives</h1>
+
+
+
+</body>
+
+</html>
diff --git a/servicePoints/templates/index.html b/servicePoints/templates/index.html
index 49bb50a..45eae11 100644
--- a/servicePoints/templates/index.html
+++ b/servicePoints/templates/index.html
@@ -12,11 +12,11 @@
     <a href="/accounts/mask/">
         <img src=/images/mask.png alt="mask">
     </a>
-    <a href="/accounts/mask/">
-        <img src=/images/blood.png alt="mask">
+    <a href="/accounts/blood/">
+        <img src=/images/blood.png alt="blood">
     </a>
-    <a href="/accounts/mask/">
-        <img src=/images/food.png alt="mask">
+    <a href="/accounts/food/">
+        <img src=/images/food.png alt="food">
     </a>
     <a href="/accounts/tutorsu/">
         <img src=/images/tutor.png alt="tutorsu">
diff --git a/servicePoints/views/accounts.py b/servicePoints/views/accounts.py
index 0e404e6..7ae7cf5 100644
--- a/servicePoints/views/accounts.py
+++ b/servicePoints/views/accounts.py
@@ -253,6 +253,16 @@ def mask():
     context = {}
     return render_template('mask.html', **context)
 
+@servicePoints.app.route('/accounts/blood/')
+def blood():
+    context = {}
+    return render_template('blood.html', **context)
+
+@servicePoints.app.route('/accounts/food/')
+def food():
+    context = {}
+    return render_template('food.html', **context)
+
 @servicePoints.app.route('/images/<path:filename>', methods=['GET', 'POST'])
 def images(filename):
     if "username" in flask.session:
-- 
GitLab