diff options
Diffstat (limited to 'templates/slot')
-rw-r--r-- | templates/slot/index.html | 4 | ||||
-rw-r--r-- | templates/slot/new.html | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/slot/index.html b/templates/slot/index.html index 1a25a1f..a8cdaef 100644 --- a/templates/slot/index.html +++ b/templates/slot/index.html @@ -17,13 +17,13 @@ <th>Delete</th> </tr> </thead> - <tbody> + <tbody>url {% 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> + <td><a class="btn btn-danger" href="{% url 'slot_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 %} diff --git a/templates/slot/new.html b/templates/slot/new.html index c0a8b21..65ff482 100644 --- a/templates/slot/new.html +++ b/templates/slot/new.html @@ -17,7 +17,7 @@ <h3>Book slot</h3> {% if cur_slots|length > 0 %} <h4>Current slot {{ cur_slots.0 }} is vacant</h4> - <form action="{% url 'sbhs_server.slot.views.create' %}" method="POST"> + <form action="{% url 'slot_create' %}" method="POST"> {% csrf_token %} <input type="hidden" name="slot" value="{{ cur_slots.0.id }}"> <input type="hidden" name="date" value="CURRENT"> @@ -26,7 +26,7 @@ {% endif %} <br><br> <h4>Book future slots</h4> - <form action="{% url 'sbhs_server.slot.views.create' %}" method="POST"> + <form action="{% url 'slot_create' %}" method="POST"> {% csrf_token %} <label for="date">Booking date</label> <br> <div class="input-append date" id="dp1" data-date="{{ nowdate }}" data-date-format="yyyy-mm-dd"> @@ -61,7 +61,7 @@ var newDate = new Date(ev.date); var string = newDate.getFullYear() + "-" + (newDate.getMonth() + 1) + "-" + newDate.getDate(); $.ajax({ - url: "{% url 'sbhs_server.slot.views.show' '' %}" + string, + url: "{% url 'slot_show' '' %}" + string, success: function(msg) { $("#slotTimingWrap").html(msg); } |