summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudioforms
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/templates/gstudioforms')
-rw-r--r--gstudio/templates/gstudioforms/gstudioattributeform.html9
-rw-r--r--gstudio/templates/gstudioforms/gstudioattributetypeform.html7
-rw-r--r--gstudio/templates/gstudioforms/gstudiocomplementform.html7
-rw-r--r--gstudio/templates/gstudioforms/gstudiointersectionform.html9
-rw-r--r--gstudio/templates/gstudioforms/gstudiometatypeform.html7
-rw-r--r--gstudio/templates/gstudioforms/gstudioobjecttypeform.html7
-rw-r--r--gstudio/templates/gstudioforms/gstudioprocesstypeform.html6
-rw-r--r--gstudio/templates/gstudioforms/gstudiorelationform.html6
-rw-r--r--gstudio/templates/gstudioforms/gstudiorelationtypeform.html8
-rw-r--r--gstudio/templates/gstudioforms/gstudiosystemtypeform.html7
-rw-r--r--gstudio/templates/gstudioforms/gstudiounionform.html8
11 files changed, 79 insertions, 2 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 %}
diff --git a/gstudio/templates/gstudioforms/gstudioattributetypeform.html b/gstudio/templates/gstudioforms/gstudioattributetypeform.html
index 7b5529f..2a04811 100644
--- a/gstudio/templates/gstudioforms/gstudioattributetypeform.html
+++ b/gstudio/templates/gstudioforms/gstudioattributetypeform.html
@@ -4,6 +4,7 @@
{% block content %}
<form method="post" action=".">
{% csrf_token %}
+{% if user.is_authenticated %}
<h2>Form to add Attributetypes</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 %}
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 %}
diff --git a/gstudio/templates/gstudioforms/gstudiointersectionform.html b/gstudio/templates/gstudioforms/gstudiointersectionform.html
index 71533ff..13cbecc 100644
--- a/gstudio/templates/gstudioforms/gstudiointersectionform.html
+++ b/gstudio/templates/gstudioforms/gstudiointersectionform.html
@@ -3,7 +3,8 @@
{% block content %}
<form method="post" action=".">
-{% csrf_token %}
+{% csrf_token %}
+{% if user.is_authenticated %}
<h2>Form to add Intersection</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 %}
diff --git a/gstudio/templates/gstudioforms/gstudiometatypeform.html b/gstudio/templates/gstudioforms/gstudiometatypeform.html
index b86b50e..bdb9116 100644
--- a/gstudio/templates/gstudioforms/gstudiometatypeform.html
+++ b/gstudio/templates/gstudioforms/gstudiometatypeform.html
@@ -4,6 +4,7 @@
{% block content %}
<form method="post" action=".">
{% csrf_token %}
+{% if user.is_authenticated %}
<h2>Form to add Metatypes</h2>
{% for field in formset %}
@@ -18,5 +19,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 %}
diff --git a/gstudio/templates/gstudioforms/gstudioobjecttypeform.html b/gstudio/templates/gstudioforms/gstudioobjecttypeform.html
index c4d8bcb..2fc2fba 100644
--- a/gstudio/templates/gstudioforms/gstudioobjecttypeform.html
+++ b/gstudio/templates/gstudioforms/gstudioobjecttypeform.html
@@ -4,6 +4,7 @@
{% block content %}
<form method="post" action=".">
{% csrf_token %}
+{% if user.is_authenticated %}
<h2>Form to add Objecttypes</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 %}
diff --git a/gstudio/templates/gstudioforms/gstudioprocesstypeform.html b/gstudio/templates/gstudioforms/gstudioprocesstypeform.html
index 0093959..0ecfbc0 100644
--- a/gstudio/templates/gstudioforms/gstudioprocesstypeform.html
+++ b/gstudio/templates/gstudioforms/gstudioprocesstypeform.html
@@ -4,6 +4,7 @@
{% block content %}
<form method="post" action=".">
{% csrf_token %}
+{% if user.is_authenticated %}
<h2>Form to add Processtypes</h2>
{% for field in formset %}
@@ -16,5 +17,10 @@
<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 %}
diff --git a/gstudio/templates/gstudioforms/gstudiorelationform.html b/gstudio/templates/gstudioforms/gstudiorelationform.html
index b87d6a0..79c5ba7 100644
--- a/gstudio/templates/gstudioforms/gstudiorelationform.html
+++ b/gstudio/templates/gstudioforms/gstudiorelationform.html
@@ -3,6 +3,7 @@
{% block content %}
<form method="post" action=".">
+{% if user.is_authenticated %}
{% csrf_token %}
<h2>Form to add Relations</h2>
{% for field in formset %}
@@ -17,5 +18,10 @@
<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 %}
diff --git a/gstudio/templates/gstudioforms/gstudiorelationtypeform.html b/gstudio/templates/gstudioforms/gstudiorelationtypeform.html
index 947e0e0..48531b9 100644
--- a/gstudio/templates/gstudioforms/gstudiorelationtypeform.html
+++ b/gstudio/templates/gstudioforms/gstudiorelationtypeform.html
@@ -3,6 +3,8 @@
{% block content %}
<form method="post" action=".">
+{% if user.is_authenticated %}
+
{% csrf_token %}
<h2>Form to add Relationtypes</h2>
{% for field in formset %}
@@ -16,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 %}
diff --git a/gstudio/templates/gstudioforms/gstudiosystemtypeform.html b/gstudio/templates/gstudioforms/gstudiosystemtypeform.html
index c2238f1..780a38e 100644
--- a/gstudio/templates/gstudioforms/gstudiosystemtypeform.html
+++ b/gstudio/templates/gstudioforms/gstudiosystemtypeform.html
@@ -3,6 +3,7 @@
{% block content %}
<form method="post" action=".">
+{% if user.is_authenticated %}
{% csrf_token %}
<h2>Form to add Systemtypes</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 %}
diff --git a/gstudio/templates/gstudioforms/gstudiounionform.html b/gstudio/templates/gstudioforms/gstudiounionform.html
index 7d7ec4d..e931013 100644
--- a/gstudio/templates/gstudioforms/gstudiounionform.html
+++ b/gstudio/templates/gstudioforms/gstudiounionform.html
@@ -3,6 +3,7 @@
{% block content %}
<form method="post" action=".">
+{% if user.is_authenticated %}
{% csrf_token %}
<h2>Form to add unions</h2>
{% for field in formset %}
@@ -17,5 +18,10 @@
<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 %}
+x
{% endblock %}