summaryrefslogtreecommitdiff
path: root/sbhs/templates/slot
diff options
context:
space:
mode:
Diffstat (limited to 'sbhs/templates/slot')
-rw-r--r--sbhs/templates/slot/create_slot.html (renamed from sbhs/templates/slot/new.html)26
1 files changed, 25 insertions, 1 deletions
diff --git a/sbhs/templates/slot/new.html b/sbhs/templates/slot/create_slot.html
index 2713396..dc76382 100644
--- a/sbhs/templates/slot/new.html
+++ b/sbhs/templates/slot/create_slot.html
@@ -45,8 +45,30 @@
</form>
+ <div class = "tab-content col-md-10">
+ <table class = "table table-striped">
+ <thead>
+ <tr>
+ <th>
+ Sr.No
+ </th>
+ <th>
+ Already Booked Slots
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for slot in board_all_booked_slots %}
+ <tr>
+ <td>{{forloop.counter}}</td>
+ <td>{{slot.start_time}} : {{slot.end_time}} </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
</div>
- <div class = "tab-pane" id="tab_b">
+ <div class = "tab-pane col-md-10" id="tab_b">
<form action="" method="POST">
{%csrf_token %}
<table class="table table-striped">
@@ -59,6 +81,7 @@
<b><th>Action</th></b>
</tr>
</thead>
+ <tbody>
{% for h in history %}
<tr>
{%if h.start_time >= now %}
@@ -79,6 +102,7 @@
{% endif %}
</tr>
{% endfor %}
+ </tbody>
</table>
<button class="btn btn-danger" type="submit" name="delete" value="delete">Delete</button>
</form>