diff options
| author | HumairAK <humair88@hotmail.com> | 2016-07-23 23:37:39 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-07-23 23:37:39 +0000 |
| commit | 17d743822746b047b94cd24e5407f1342ba01a7e (patch) | |
| tree | b0369afe69942421e6493728be3d0e001fac090b /views | |
| parent | 077430ac66259bde495fb98080ce3a3d0a6e4783 (diff) | |
Added add admin functionality for front end
Diffstat (limited to 'views')
| -rw-r--r-- | views/admin.hbs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/views/admin.hbs b/views/admin.hbs index 36a3210..a260559 100644 --- a/views/admin.hbs +++ b/views/admin.hbs @@ -19,6 +19,7 @@ <ul class="nav navbar-nav " > <li><a href="#" class="cpnl-page">Add Exam</a></li> <li><a href="#" class="cpnl-page">Add Course</a></li> + <li><a href="#" class="cpnl-page">Add Admin</a></li> <li><a href="#" class="cpnl-page">Remove Exam</a></li> <li><a href="#" class="cpnl-page">Remove Course</a></li> <li><a href="#" class="cpnl-page">Remove User</a></li> @@ -133,6 +134,39 @@ </form> </div> + <!--- Add Course ---> + <div class="row cpnl-container" id="cpnl-addAdmin"> + <h4>Add Admin</h4> + <form action="/admin/add/admin" method="post"> + <div class="form-group"> + First Name: <input type="text" + class="form-control" + placeholder="e.g. Robert" + name="fname"> + </div> + <div class="form-group"> + Last Name: <input type="text" + class="form-control" + placeholder="e.g. Godfried" + name="lname"> + </div> + <div class="form-group"> + Username: <input type="text" + class="form-control" + placeholder="e.g. robTheFried86" + name="username"> + </div> + <div class="form-group"> + Password: <input type="password" + class="form-control" + placeholder="e.g. a3e6kk31" + name="password"> + </div> + <input type="hidden" name="_csrf" value="{{ csrfToken }}"> + <button type="submit" class="btn btn-primary">Submit</button> + </form> + </div> + <!--- Remove Exam ---> <div class="row cpnl-container" id="cpnl-removeExam"> <h4>Remove Exam</h4> |
