aboutsummaryrefslogtreecommitdiff
path: root/views/admin.hbs
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-25 03:16:38 +0000
committerHumairAK <humair88@hotmail.com>2016-07-25 03:16:38 +0000
commitfc3cc6aee7ce7a28539d332902c0f9923d298c71 (patch)
treed7ed316afc867a33c93e7f6d8063df4c3fd17109 /views/admin.hbs
parent482401fa5777b910b099f96b0abdadf1d4cfa54c (diff)
added all admin panel functionality
Diffstat (limited to 'views/admin.hbs')
-rw-r--r--views/admin.hbs24
1 files changed, 22 insertions, 2 deletions
diff --git a/views/admin.hbs b/views/admin.hbs
index a260559..b821dc3 100644
--- a/views/admin.hbs
+++ b/views/admin.hbs
@@ -213,13 +213,33 @@
<!--- Remove Course --->
<div class="row cpnl-container" id="cpnl-removeCourse">
<h4>Remove Course</h4>
- Pending. Need required database functionality.
+ <form action="/admin/remove/course" method="post">
+ <div class="form-group">
+ Course Code: <input type="text"
+ class="form-control"
+ placeholder="e.g. CSC240"
+ name="course_code">
+ </div>
+
+ <input type="hidden" name="_csrf" value="{{ csrfToken }}">
+ <button type="submit" class="btn btn-primary">Submit</button>
+ </form>
</div>
<!--- Remove User --->
<div class="row cpnl-container" id="cpnl-removeUser">
<h4>Remove User</h4>
- Pending. Need required database functionality.
+ <form action="/admin/remove/user" method="post">
+ <div class="form-group">
+ Username: <input type="text"
+ class="form-control"
+ placeholder="Jsmith85"
+ name="username">
+ </div>
+
+ <input type="hidden" name="_csrf" value="{{ csrfToken }}">
+ <button type="submit" class="btn btn-primary">Submit</button>
+ </form>
</div>