From 4336f5f06f61de30ae3fa54650fce63a9d5ef5be Mon Sep 17 00:00:00 2001 From: ttt Date: Sat, 13 May 2017 00:29:47 +0530 Subject: added all server files --- templates/slot/index.html | 37 ++++++++++++++++++++++++ templates/slot/new.html | 72 +++++++++++++++++++++++++++++++++++++++++++++++ templates/slot/show.html | 6 ++++ 3 files changed, 115 insertions(+) create mode 100644 templates/slot/index.html create mode 100644 templates/slot/new.html create mode 100644 templates/slot/show.html (limited to 'templates/slot') 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 %} +
+
+ {% include "account/sub_nav.html" %} + +
+

Your booked slots

+ + + + + + + + + + {% for b in bookings %} + + + + {% if now_time < b.start_time %} + + {% else %} + + {% endif %} + + {% endfor %} + +
DateSlot timingsDelete
{{ b.booking_date|date:"M d, Y" }}{{ b.slot }}DeleteDelete
+
+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/slot/new.html b/templates/slot/new.html new file mode 100644 index 0000000..c0a8b21 --- /dev/null +++ b/templates/slot/new.html @@ -0,0 +1,72 @@ +{% extends "layout.html" %} +{% load staticfiles %} + +{% block headerfiles %} + + +{% endblock %} + +{% block content %} +
+
+ {% include "account/sub_nav.html" %} + +
+

Book slot

+ {% if cur_slots|length > 0 %} +

Current slot {{ cur_slots.0 }} is vacant

+
+ {% csrf_token %} + + + +
+ {% endif %} +

+

Book future slots

+
+ {% csrf_token %} +
+
+ + +
+
+ + +
+
+ +
+
+
+
+ +{% endblock %} \ No newline at end of file diff --git a/templates/slot/show.html b/templates/slot/show.html new file mode 100644 index 0000000..1777e31 --- /dev/null +++ b/templates/slot/show.html @@ -0,0 +1,6 @@ + + \ No newline at end of file -- cgit