diff options
author | coderick14 | 2017-05-17 15:40:18 +0530 |
---|---|---|
committer | coderick14 | 2017-05-17 15:41:00 +0530 |
commit | fe407193c200e03070928c1e2c1a6e067d32893d (patch) | |
tree | 1c492aa814754b5db5d644c769f5382306217298 /templates/slot/new.html | |
parent | 9a1393e8470d855762e699abca9911b9cdae6a7d (diff) | |
download | SBHS-2018-Rpi-fe407193c200e03070928c1e2c1a6e067d32893d.tar.gz SBHS-2018-Rpi-fe407193c200e03070928c1e2c1a6e067d32893d.tar.bz2 SBHS-2018-Rpi-fe407193c200e03070928c1e2c1a6e067d32893d.zip |
Upgrade to Django 1.11
- Database integration yet to be tested
Diffstat (limited to 'templates/slot/new.html')
-rw-r--r-- | templates/slot/new.html | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |