summaryrefslogtreecommitdiff
path: root/templates/admin
diff options
context:
space:
mode:
authorcoderick142017-05-17 15:40:18 +0530
committercoderick142017-05-17 15:41:00 +0530
commitfe407193c200e03070928c1e2c1a6e067d32893d (patch)
tree1c492aa814754b5db5d644c769f5382306217298 /templates/admin
parent9a1393e8470d855762e699abca9911b9cdae6a7d (diff)
downloadSBHS-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/admin')
-rw-r--r--templates/admin/index.html6
-rw-r--r--templates/admin/sub_nav.html6
2 files changed, 6 insertions, 6 deletions
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" %}
<div class="span12">
{% include "admin/sub_nav.html" %}
- <h4>MID allotment mode is {{ allotment_mode }}. <small>Change to <a href="{% url 'sbhs_server.admin.views.toggle_allotment_mode' %}">{% if allotment_mode == 'Random' %}Workshop mode{% else %}Random mode{% endif %}</a></small></h4>
+ <h4>MID allotment mode is {{ allotment_mode }}. <small>Change to <a href="{% url 'admin_toggle_allotment_mode' %}">{% if allotment_mode == 'Random' %}Workshop mode{% else %}Random mode{% endif %}</a></small></h4>
<h1>Board status</h1>
<table class="table table-bordered">
<thead>
@@ -22,8 +22,8 @@
<tr>
<td>{{ b.mid }}</td>
<td><span class="label label-{% if b.online %}success{% else %}important{% endif %}">{% if b.online %}Online{% else %}Offline{% endif %}</span></td>
- <td><a href="{% url 'sbhs_server.webcam.views.show_video_to_admin' b.mid %}" target="_blank">View image</a></td>
- <td><a href="{% url 'sbhs_server.admin.views.profile' b.mid %}">View temperature profile</a></td>
+ <td><a href="{% url 'webcam_show_video_to_admin' b.mid %}" target="_blank">View image</a></td>
+ <td><a href="{% url 'admin_profile' b.mid %}">View temperature profile</a></td>
</tr>
{% endfor %}
</tbody>
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 @@
-<a href="{% url 'sbhs_server.admin.views.index' %}" class="btn">Show all boards</a>
-<a href="{% url 'sbhs_server.admin.views.booking_index' %}" class="btn">Show all bookings</a>
-<a href="{% url 'sbhs_server.admin.views.webcam_index' %}" class="btn">Show all images</a>
+<a href="{% url 'admin_index' %}" class="btn">Show all boards</a>
+<a href="{% url 'admin_bookings' %}" class="btn">Show all bookings</a>
+<a href="{% url 'admin_webcam' %}" class="btn">Show all images</a>
<br><br> \ No newline at end of file