summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudioforms/gstudioattributeform.html
diff options
context:
space:
mode:
authorKabir Kukreti <kabir@gnowledge.org>2012-03-21 15:13:37 +0530
committerKabir Kukreti <kabir@gnowledge.org>2012-03-21 15:13:37 +0530
commita65ec2f214c96cb537a101f96998d87a9e681991 (patch)
treec87e050c53dbf143eef75edda1b990c258c3c8eb /gstudio/templates/gstudioforms/gstudioattributeform.html
parent7264ef6355baa26d72c6127e5fe8d1e623837204 (diff)
downloadgnowsys-a65ec2f214c96cb537a101f96998d87a9e681991.tar.gz
Authentication bug in forms fixed.User dashboard fixed to include my dashboard for admin
Diffstat (limited to 'gstudio/templates/gstudioforms/gstudioattributeform.html')
-rw-r--r--gstudio/templates/gstudioforms/gstudioattributeform.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/gstudio/templates/gstudioforms/gstudioattributeform.html b/gstudio/templates/gstudioforms/gstudioattributeform.html
index 6779ab5..38e85fa 100644
--- a/gstudio/templates/gstudioforms/gstudioattributeform.html
+++ b/gstudio/templates/gstudioforms/gstudioattributeform.html
@@ -4,6 +4,7 @@
{% block content %}
<form method="post" action=".">
{% csrf_token %}
+{% if user.is_authenticated %}
<h2>Form to add attributes</h2>
{% for field in formset %}
@@ -12,10 +13,18 @@
{{ field.errors }}<br>
+
{% endfor %}
+
+
<input type="Submit" value="{% trans 'ADD' %}" />
<input type="hidden" name="next" value="{{ next }}" />
+ {% else %}
+ <h2>Sorry either you are not logged in or dont have permission to view this content</h2>
+ <a href="{{get_absoulute_url}}/accounts/login">{% trans 'Login' %}</a><br>
+ <a href="{{get_absoulute_url}}/accounts/register">{% trans 'Register' %}</a><br>
+ {% endif %}
</form>
{% endblock %}