From e26a57c744f47e939002e840954d3e956852b3d5 Mon Sep 17 00:00:00 2001
From: Sean Joseph <joseph62@egr.msu.edu>
Date: Mon, 30 Oct 2017 11:18:53 -0400
Subject: [PATCH] Draft page added

---
 lib/DraftsView.php | 26 ++++++++++++++++++++++++++
 lib/SecureView.php |  1 +
 secure/drafts.php  | 22 ++++++++++++++++++++++
 3 files changed, 49 insertions(+)
 create mode 100644 lib/DraftsView.php
 create mode 100644 secure/drafts.php

diff --git a/lib/DraftsView.php b/lib/DraftsView.php
new file mode 100644
index 0000000..15317c6
--- /dev/null
+++ b/lib/DraftsView.php
@@ -0,0 +1,26 @@
+<?php
+
+require_once "SecureView.php";
+
+/**
+ * Created by PhpStorm.
+ * User: sean
+ * Date: 10/30/17
+ * Time: 11:14 AM
+ */
+class DraftsView extends SecureView
+{
+
+    public function page(){
+        $body = <<<HTML
+<div class="card">
+<h2>Draft 1</h2>
+<p>
+Lol, just do the thing, bro!
+</p>
+</div>
+HTML;
+        return $body;
+    }
+
+}
\ No newline at end of file
diff --git a/lib/SecureView.php b/lib/SecureView.php
index 0d8397d..dbf1a1a 100644
--- a/lib/SecureView.php
+++ b/lib/SecureView.php
@@ -15,6 +15,7 @@ class SecureView extends View
         $this->addNav("Home", ROOT);
         $this->addNav("Minutes", ROOT . "secure/minutes.php");
         $this->addNav("Milestones", ROOT . "secure/milestones.php");
+        $this->addNav("Drafts", ROOT . "secure/drafts.php");
         $this->addNav("Logoff", ROOT . "secure/");
     }
 
diff --git a/secure/drafts.php b/secure/drafts.php
new file mode 100644
index 0000000..c14c27b
--- /dev/null
+++ b/secure/drafts.php
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<?php
+require_once "../lib/prelude.inc.php";
+require_once "../lib/protected.inc.php";
+require_once "../lib/DraftsView.php";
+$view = new DraftsView();
+$view->setTitle("Drafts");
+?>
+<html>
+<head>
+    <?php
+    echo $view->head();
+    ?>
+</head>
+<body>
+<?php
+echo $view->header();
+echo $view->page();
+echo $view->footer();
+?>
+</body>
+</html>