summaryrefslogtreecommitdiff
path: root/templates/account
diff options
context:
space:
mode:
Diffstat (limited to 'templates/account')
-rw-r--r--templates/account/home.html23
-rw-r--r--templates/account/index.html59
-rw-r--r--templates/account/sub_nav.html9
3 files changed, 91 insertions, 0 deletions
diff --git a/templates/account/home.html b/templates/account/home.html
new file mode 100644
index 0000000..fed34a5
--- /dev/null
+++ b/templates/account/home.html
@@ -0,0 +1,23 @@
+{% extends "layout.html" %}
+
+{% block content %}
+<div class="container">
+ <div class="row">
+ {% include "account/sub_nav.html" %}
+ <script>
+ document.getElementById("home-nav").classList.add("active");
+ </script>
+ <div class="span12">
+ <h2>Welcome to Single Board Heater System Lab</h2>
+ <br>
+ You can:
+ <ul>
+ <li>book your slot by going to the "Book slot" section above</li>
+ <li>download the client code for experiments using the download link above</li>
+ <li>download your previous experiment logs by going to "Download log files" section above</li>
+ <li>see the experiment video by going to "Show video" section above</li>
+ </ul>
+ </div>
+ </div>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/templates/account/index.html b/templates/account/index.html
new file mode 100644
index 0000000..d90ba9d
--- /dev/null
+++ b/templates/account/index.html
@@ -0,0 +1,59 @@
+{% extends "layout.html" %}
+
+{% block content %}
+<div class="container">
+ <div class="row">
+ <div class="span5">
+ <h2>Login</h2>
+ <br>
+ <form action="{% url 'sbhs_server.account.views.login' %}" method="POST">
+ {% csrf_token %}
+ <label for="login_username">Username</label>
+ <input type="text" name="username" id="login_username" required>
+ <br>
+ <label for="login_password">Password</label>
+ <input type="password" name="password" id="login_password" required>
+ <br>
+ <input type="submit" class="btn btn-primary" value="Login">
+ &nbsp;&nbsp;<a href="{% url 'sbhs_server.password.views.new' %}">Forgot Password?</a>
+ </form>
+ </div>
+ <div class="span5 pull-right">
+ <h2>Create Account</h2>
+ <form action="{% url 'sbhs_server.account.views.create' %}" method="POST">
+ {% csrf_token %}
+ <label for="name">Name</label>
+ <input type="text" name="name" id="name" required>
+ <br>
+ <label for="email">Email</label>
+ <input type="email" name="email" id="email" required>
+ <br>
+ <label for="username">Enter a username</label>
+ <input type="text" name="username" id="username" required>
+ <br>
+ <label for="roll_number">Roll No.</label>
+ <input type="text" name="roll_number" id="roll_number" required>
+ <br>
+ <label for="password">Password</label>
+ <input type="password" name="password" id="password" required>
+ <br>
+ <label for="confirm">Confirm Password</label>
+ <input type="password" name="confirm" id="confirm" required>
+ <br>
+ <label for="institute">Institute</label>
+ <input type="text" name="institute" id="institute" required>
+ <br>
+ <label for="department">Department</label>
+ <input type="text" name="department" id="department" required>
+ <br>
+ <label for="position">Position</label>
+ <input type="text" name="position" id="position" required>
+ <br>
+
+ <input type="submit" class="btn btn-inverse" value="Create Account">
+ </form>
+ </div>
+ </div>
+
+</div>
+{% endblock %}
diff --git a/templates/account/sub_nav.html b/templates/account/sub_nav.html
new file mode 100644
index 0000000..432ff9d
--- /dev/null
+++ b/templates/account/sub_nav.html
@@ -0,0 +1,9 @@
+<div class="span12">
+ <ul class="nav nav-pills">
+ <li id="home-nav"><a href="{% url 'sbhs_server.account.views.home' %}">Home</a></li>
+ <li id="book-slot-nav"><a href="{% url 'sbhs_server.slot.views.new' %}">Book slot</a></li>
+ <li id="view-slot-nav"><a href="{% url 'sbhs_server.slot.views.index' %}">View/Delete slot</a></li>
+ <li id="download-log-nav"><a href="{% url 'sbhs_server.experiment.views.logs' %}">Download log files</a></li>
+ <li id="video-nav"><a href="{% url 'sbhs_server.webcam.views.show_video' %}">Show video</a></li>
+ </ul>
+</div>