diff options
author | csitifr <csitifr@gmail.com> | 2012-05-28 18:40:43 +0530 |
---|---|---|
committer | csitifr <csitifr@gmail.com> | 2012-05-28 18:40:43 +0530 |
commit | f28648fce9a224b6f4c3a24cfaf4b29082dbb775 (patch) | |
tree | b15ab0641c907405928c7997d3bc0a3f2c1d52d9 /objectapp/templates | |
parent | 15c2f2561c23a656d792003b089e28ecc500b720 (diff) | |
download | gnowsys-f28648fce9a224b6f4c3a24cfaf4b29082dbb775.tar.gz |
Relation can be now saved and viewed hierachy wise.Attribute does not get saved in duplicate
Diffstat (limited to 'objectapp/templates')
-rw-r--r-- | objectapp/templates/objectapp/fillAT.html | 4 | ||||
-rw-r--r-- | objectapp/templates/objectapp/gbobject_detail.html | 34 | ||||
-rw-r--r-- | objectapp/templates/objectapp/selectRT.html | 3 |
3 files changed, 23 insertions, 18 deletions
diff --git a/objectapp/templates/objectapp/fillAT.html b/objectapp/templates/objectapp/fillAT.html index 6a474d0d..95bea924 100644 --- a/objectapp/templates/objectapp/fillAT.html +++ b/objectapp/templates/objectapp/fillAT.html @@ -2,12 +2,12 @@ {% load i18n %} {% block content %} -<form action="." method="POST"> +<form action="." method="POST" enctype="multipart/form-data"> {% csrf_token %} <b>{{ title }}</b> {% for field in form %} -{{ field }} {{ field.errors }} +{{ field }} {{ field.errors }} {{ field.widget }} {% endfor %} <input type="submit" id="id_submit" value="Go"/> <input type="button" id="id_back" value="Back"/> diff --git a/objectapp/templates/objectapp/gbobject_detail.html b/objectapp/templates/objectapp/gbobject_detail.html index 283f9c68..5e7108e0 100644 --- a/objectapp/templates/objectapp/gbobject_detail.html +++ b/objectapp/templates/objectapp/gbobject_detail.html @@ -73,6 +73,25 @@ {% endwith %} {% endblock %} + +<br/> +<p><br/> + +{% if user.is_authenticated %} +<b>AddAttributes: </b> +<input type="hidden" id="id_object" value="{{ object.title }}"/> +{% for i in object.getattributetypes %} +<a href="{{ get_absolute_url }}/objects/dynamicAttribute/save/{{ i }}/{{ object.title }}/">{{ i }}</a><nbsp>; +{% endfor %} +</p> +<p> +<b>Add Relations: </b> +{% for i in object.getrelationtypes %} +<a href=" {{ get_absolute_url }}/objects/dynamicRelation/displaymem/{{ i }}/{{ object.title }}/">{{ i }}</a><nbsp>; +{% endfor %} +</p> +{% endif %} + {% block gbobject-widgets %} <div class="gbobject-widgets span-16 last"> {% with object.next_gbobject as next_gbobject %} @@ -128,21 +147,6 @@ {% endblock %} - -<p><br/> -<b>Add Attributes: </b> -<input type="hidden" id="id_object" value="{{ object.title }}"/> -{% for i in object.getattributetypes %} -<a href="{{ get_absolute_url }}/objects/dynamicAttribute/save/{{ i }}/{{ object.title }}/">{{ i }}</a><nbsp>; -{% endfor %} -</p> -<p> -<b>Add Relations: </b> -{% for i in object.getrelationtypes %} -<a href=" {{ get_absolute_url }}/objects/dynamicRelation/displaymem/{{ i }}/{{ object.title }}/">{{ i }}</a><nbsp>; -{% endfor %} -</p> - {% block gbobject-comments %} <div id="comments" class="span-16 last"> <h3>{% trans "Comments" %}</h3> diff --git a/objectapp/templates/objectapp/selectRT.html b/objectapp/templates/objectapp/selectRT.html index 713a45cf..5ceae85e 100644 --- a/objectapp/templates/objectapp/selectRT.html +++ b/objectapp/templates/objectapp/selectRT.html @@ -5,7 +5,8 @@ {% block content %} <form method="." action="POST"> {% csrf_token %} -<b>Details of {{ gb }}</b> +<b>{{ gb }}</b> +<b>{{ reltit }}</b> <!-- -------------------------------------------- --> |