summaryrefslogtreecommitdiff
path: root/tbc/templates
diff options
context:
space:
mode:
authorhardythe12013-12-10 14:22:41 +0530
committerhardythe12013-12-10 14:22:41 +0530
commit7887212fd544eb9cfde7b476524886fe1c95dc81 (patch)
tree7692d093a0fae75f255509566fab2d73d662197c /tbc/templates
parentd48a6a9e3ccf543891146313a2441afc1c0a9d4a (diff)
downloadPython-TBC-Interface-7887212fd544eb9cfde7b476524886fe1c95dc81.tar.gz
Python-TBC-Interface-7887212fd544eb9cfde7b476524886fe1c95dc81.tar.bz2
Python-TBC-Interface-7887212fd544eb9cfde7b476524886fe1c95dc81.zip
changes to redirect according to user rights
Diffstat (limited to 'tbc/templates')
-rw-r--r--tbc/templates/tbc/forbidden.html6
-rw-r--r--tbc/templates/tbc/login.html3
2 files changed, 9 insertions, 0 deletions
diff --git a/tbc/templates/tbc/forbidden.html b/tbc/templates/tbc/forbidden.html
new file mode 100644
index 0000000..e9d49bb
--- /dev/null
+++ b/tbc/templates/tbc/forbidden.html
@@ -0,0 +1,6 @@
+{% extends 'base.html' %}
+{% block content %}
+
+<p>Oops, You do not have the required rights to view this page.</p>
+
+{% endblock %}
diff --git a/tbc/templates/tbc/login.html b/tbc/templates/tbc/login.html
index 6d7a050..2274619 100644
--- a/tbc/templates/tbc/login.html
+++ b/tbc/templates/tbc/login.html
@@ -1,5 +1,8 @@
{% extends 'base.html' %}
{% block content %}
+{% if require_login %}
+<p>The requsted page requires login.</p>
+{% endif %}
<form action="/login/" method=POST enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}