From fe407193c200e03070928c1e2c1a6e067d32893d Mon Sep 17 00:00:00 2001 From: coderick14 Date: Wed, 17 May 2017 15:40:18 +0530 Subject: Upgrade to Django 1.11 - Database integration yet to be tested --- templates/account/index.html | 6 +++--- templates/account/sub_nav.html | 10 +++++----- templates/admin/index.html | 6 +++--- templates/admin/sub_nav.html | 6 +++--- templates/experiment/logs.html | 2 +- templates/modals.html | 2 +- templates/nav.html | 20 ++++++++++---------- templates/pages/e404.html | 2 +- templates/pages/e500.html | 2 +- templates/password/edit.html | 2 +- templates/password/new.html | 2 +- templates/slot/index.html | 4 ++-- templates/slot/new.html | 6 +++--- templates/webcam/show_video.html | 4 ++-- 14 files changed, 37 insertions(+), 37 deletions(-) (limited to 'templates') diff --git a/templates/account/index.html b/templates/account/index.html index d90ba9d..a8b7f34 100644 --- a/templates/account/index.html +++ b/templates/account/index.html @@ -6,7 +6,7 @@

Login


-
+ {% csrf_token %} @@ -15,12 +15,12 @@
-   Forgot Password? +   Forgot Password?

Create Account

-
+ {% csrf_token %} diff --git a/templates/account/sub_nav.html b/templates/account/sub_nav.html index 432ff9d..41b3731 100644 --- a/templates/account/sub_nav.html +++ b/templates/account/sub_nav.html @@ -1,9 +1,9 @@ diff --git a/templates/admin/index.html b/templates/admin/index.html index e954960..95956f5 100644 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -7,7 +7,7 @@ {% include "account/sub_nav.html" %}
{% include "admin/sub_nav.html" %} -

MID allotment mode is {{ allotment_mode }}. Change to {% if allotment_mode == 'Random' %}Workshop mode{% else %}Random mode{% endif %}

+

MID allotment mode is {{ allotment_mode }}. Change to {% if allotment_mode == 'Random' %}Workshop mode{% else %}Random mode{% endif %}

Board status

@@ -22,8 +22,8 @@ - - + + {% endfor %} diff --git a/templates/admin/sub_nav.html b/templates/admin/sub_nav.html index abbcce0..29d8840 100644 --- a/templates/admin/sub_nav.html +++ b/templates/admin/sub_nav.html @@ -1,4 +1,4 @@ -Show all boards -Show all bookings -Show all images +Show all boards +Show all bookings +Show all images

\ No newline at end of file diff --git a/templates/experiment/logs.html b/templates/experiment/logs.html index 61816dd..51c0c35 100644 --- a/templates/experiment/logs.html +++ b/templates/experiment/logs.html @@ -24,7 +24,7 @@ - + {% endfor %} diff --git a/templates/modals.html b/templates/modals.html index 9d0f280..c6f3212 100644 --- a/templates/modals.html +++ b/templates/modals.html @@ -9,7 +9,7 @@ diff --git a/templates/nav.html b/templates/nav.html index 34559bd..cb5290a 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -1,7 +1,7 @@ diff --git a/templates/pages/e500.html b/templates/pages/e500.html index 2a5acb7..353300f 100644 --- a/templates/pages/e500.html +++ b/templates/pages/e500.html @@ -6,7 +6,7 @@

Internal server error Error 500


-

Something went wrong on the server. We are correcting the issue. Contact vlabs team if the problem persists. Please click here to go to the homepage.

+

Something went wrong on the server. We are correcting the issue. Contact vlabs team if the problem persists. Please click here to go to the homepage.

diff --git a/templates/password/edit.html b/templates/password/edit.html index 487b552..38f2254 100644 --- a/templates/password/edit.html +++ b/templates/password/edit.html @@ -6,7 +6,7 @@

Change Password


- + {% csrf_token %} diff --git a/templates/password/new.html b/templates/password/new.html index e45e24f..068b762 100644 --- a/templates/password/new.html +++ b/templates/password/new.html @@ -6,7 +6,7 @@

Change Password


- + {% csrf_token %} 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 @@
- + url {% for b in bookings %} {% if now_time < b.start_time %} - + {% else %} {% 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 @@

Book slot

{% if cur_slots|length > 0 %}

Current slot {{ cur_slots.0 }} is vacant

- + {% csrf_token %} @@ -26,7 +26,7 @@ {% endif %}

Book future slots

- + {% csrf_token %}
@@ -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); } diff --git a/templates/webcam/show_video.html b/templates/webcam/show_video.html index c88cc9a..e3b49ca 100644 --- a/templates/webcam/show_video.html +++ b/templates/webcam/show_video.html @@ -36,7 +36,7 @@ {% if user.is_admin %} setInterval(function() { var refresh = new Image(); - refresh.src = "{% url 'sbhs_server.webcam.views.reload' mid %}"; + refresh.src = "{% url 'webcam_reload_image' mid %}"; document.getElementById("videoImage").src = "{% static image_link %}?" + new Date().getTime(); }, 2000); {% else %} @@ -47,7 +47,7 @@ window.image_reloader = function() { if (!button.disabled) { button.setAttribute("disabled", true); var refresh = new Image(); - refresh.src = "{% url 'sbhs_server.webcam.views.reload' mid %}"; + refresh.src = "{% url 'webcam_reload_image' mid %}"; document.getElementById("videoImage").src = "{% static image_link %}?" + new Date().getTime(); setTimeout(function(){ button.removeAttribute('disabled'); -- cgit
{{ b.mid }} {% if b.online %}Online{% else %}Offline{% endif %}View imageView temperature profileView imageView temperature profile
{{ e.booking.start_time|date:"M d, Y" }} {{ e.booking.slot }} {{ e.logname }}DownloadDownload
Delete
{{ b.booking_date|date:"M d, Y" }} {{ b.slot }}DeleteDeleteDelete