summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudioforms/gstudiocomplementform.html
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/templates/gstudioforms/gstudiocomplementform.html')
-rw-r--r--gstudio/templates/gstudioforms/gstudiocomplementform.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/gstudio/templates/gstudioforms/gstudiocomplementform.html b/gstudio/templates/gstudioforms/gstudiocomplementform.html
index 4304d24..7066541 100644
--- a/gstudio/templates/gstudioforms/gstudiocomplementform.html
+++ b/gstudio/templates/gstudioforms/gstudiocomplementform.html
@@ -4,6 +4,7 @@
{% block content %}
<form method="post" action=".">
{% csrf_token %}
+{% if user.is_authenticated %}
<h2>Form to add Complements</h2>
{% for field in formset %}
@@ -17,5 +18,11 @@
<input type="Submit" value="{% trans 'ADD' %}" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
+ {% 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 %}
+
{% endblock %}