summaryrefslogtreecommitdiff
path: root/tbc
diff options
context:
space:
mode:
Diffstat (limited to 'tbc')
-rwxr-xr-xtbc/templates/base.html1
-rw-r--r--tbc/templates/tbc/admin-tools.html17
-rw-r--r--tbc/urls.py4
-rwxr-xr-xtbc/views.py9
4 files changed, 29 insertions, 2 deletions
diff --git a/tbc/templates/base.html b/tbc/templates/base.html
index 84e7136..a1b4c8f 100755
--- a/tbc/templates/base.html
+++ b/tbc/templates/base.html
@@ -133,6 +133,7 @@
<li><a href="{% url 'tbc:GetCertificate' %}">Get Certificate</a></li>
<li><a href="{% url 'tbc:UpdateProfile' %}">Update Profile</a></li>
<li><a href="{% url 'tbc:UpdatePassword' %}">Update Password</a></li>
+ <li><a href="{% url 'tbc:admin_tools' %}">Admin Tools </a></li>
<li><a href="{% url 'tbc:UserLogout' %}">Logout</a></li>
</ul>
</li>
diff --git a/tbc/templates/tbc/admin-tools.html b/tbc/templates/tbc/admin-tools.html
new file mode 100644
index 0000000..1c46b64
--- /dev/null
+++ b/tbc/templates/tbc/admin-tools.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+{% block title %} Admin Tools {% endblock %}
+{% block content %}
+
+<body>
+
+{% csrf_token %}
+
+<h4> Hi, {{ user }} </h4>
+
+<p></p>
+<p></p>
+<p><a href = "{% url 'commentingapp.views.commenting' %}"> Commenting </a></p>
+<p><a href = "{% url 'tbc_error_page.views.error' %}"> Error Page </a></p>
+<p><a href = "{% url 'tbc_error_page.views.broken' %}"> Broken Page </a></p>
+
+{% endblock %}
diff --git a/tbc/urls.py b/tbc/urls.py
index 747a77d..6d3cc17 100644
--- a/tbc/urls.py
+++ b/tbc/urls.py
@@ -12,8 +12,8 @@ urlpatterns = patterns('',
url(r'^profile/$', 'tbc.views.UserProfile', name='UserProfile'),
url(r'^update-profile/$', 'tbc.views.UpdateProfile', name='UpdateProfile'),
url(r'^forgot-password/$', 'tbc.views.ForgotPassword', name='ForgotPassword'),
- url(r'^update-password/$', 'tbc.views.UpdatePassword', name='UpdatePassword'),
-
+ url(r'^update-password/$', 'tbc.views.UpdatePassword', name='UpdatePassword'),
+ url(r'^admin-tools/$', 'tbc.views.admin_tools', name='admin_tools'),
url(r'^submit-proposal/$', 'tbc.views.SubmitProposal', name='SubmitProposal'),
url(r'^submit-aicte-proposal/$', 'tbc.views.ListAICTE', name='ListAICTE'),
diff --git a/tbc/views.py b/tbc/views.py
index 9e3a2e7..767dd4e 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -1413,3 +1413,12 @@ def link_image(request):
chapter.save()
context['success'] = True
return render_to_response('tbc/link_image.html', context, context_instance=ci)
+
+@login_required( login_url= "/admin")
+def admin_tools(request):
+ ci = RequestContext(request)
+ user = request.user
+ context = {"user":user}
+ return render_to_response('tbc/admin-tools.html', context, context_instance=ci)
+
+