summaryrefslogtreecommitdiff
path: root/templates/slot/index.html
diff options
context:
space:
mode:
authorttt2017-05-13 00:29:47 +0530
committerttt2017-05-13 00:29:47 +0530
commit4336f5f06f61de30ae3fa54650fce63a9d5ef5be (patch)
tree23b4ee9b8e8f24bf732acf2f7ad22ed50cdd5670 /templates/slot/index.html
downloadSBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.tar.gz
SBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.tar.bz2
SBHS-2018-Rpi-4336f5f06f61de30ae3fa54650fce63a9d5ef5be.zip
added all server files
Diffstat (limited to 'templates/slot/index.html')
-rw-r--r--templates/slot/index.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/templates/slot/index.html b/templates/slot/index.html
new file mode 100644
index 0000000..1a25a1f
--- /dev/null
+++ b/templates/slot/index.html
@@ -0,0 +1,37 @@
+{% extends "layout.html" %}
+
+{% block content %}
+<div class="container">
+ <div class="row">
+ {% include "account/sub_nav.html" %}
+ <script>
+ document.getElementById("view-slot-nav").classList.add("active");
+ </script>
+ <div class="span12">
+ <h3>Your booked slots</h3>
+ <table class="table table-condensed">
+ <thead>
+ <tr>
+ <th>Date</th>
+ <th>Slot timings</th>
+ <th>Delete</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for b in bookings %}
+ <tr>
+ <td>{{ b.booking_date|date:"M d, Y" }}</td>
+ <td>{{ b.slot }}</td>
+ {% if now_time < b.start_time %}
+ <td><a class="btn btn-danger" href="{% url 'sbhs_server.slot.views.delete' b.id %}" onclick="return confirm('Are you sure you want to delete booking for slot {{b.slot}} ?');">Delete</a></td>
+ {% else %}
+ <td><a class="btn btn-disabled" disabled="disabled">Delete</a></td>
+ {% endif %}
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+ </div>
+</div>
+{% endblock %} \ No newline at end of file