From a65ec2f214c96cb537a101f96998d87a9e681991 Mon Sep 17 00:00:00 2001 From: Kabir Kukreti Date: Wed, 21 Mar 2012 15:13:37 +0530 Subject: Authentication bug in forms fixed.User dashboard fixed to include my dashboard for admin --- gstudio/templates/gstudioforms/gstudioattributeform.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gstudio/templates/gstudioforms/gstudioattributeform.html') 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 %}
{% csrf_token %} +{% if user.is_authenticated %}

Form to add attributes

{% for field in formset %} @@ -12,10 +13,18 @@ {{ field.errors }}
+ {% endfor %} + + + {% else %} +

Sorry either you are not logged in or dont have permission to view this content

+ {% trans 'Login' %}
+ {% trans 'Register' %}
+ {% endif %}
{% endblock %} -- cgit v1.1