diff options
author | csitifr <csitifr@gmail.com> | 2012-05-11 16:31:53 +0530 |
---|---|---|
committer | csitifr <csitifr@gmail.com> | 2012-05-11 16:31:53 +0530 |
commit | ffa1efc1acfc176c1dbf659210b41a51eb4d4cad (patch) | |
tree | 65f2e9ba8073f153673701c7a829a261e92b0612 /objectapp/templates/objectapp/gbobject_detail.html | |
parent | 850672379e02b758d89ed609e7f8a9c009853104 (diff) | |
download | gnowsys-ffa1efc1acfc176c1dbf659210b41a51eb4d4cad.tar.gz |
Dynamic mapping for attribute types done.Dynamic form for relation types added for both types and tokens.Properties for getting ATs and RTs added into models
Diffstat (limited to 'objectapp/templates/objectapp/gbobject_detail.html')
-rw-r--r-- | objectapp/templates/objectapp/gbobject_detail.html | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/objectapp/templates/objectapp/gbobject_detail.html b/objectapp/templates/objectapp/gbobject_detail.html index b8ce726..283f9c6 100644 --- a/objectapp/templates/objectapp/gbobject_detail.html +++ b/objectapp/templates/objectapp/gbobject_detail.html @@ -1,6 +1,5 @@ {% extends "objectapp/base.html" %} {% load i18n comments objectapp_tags %} - {% block title %}{{ object.title }}{% endblock %} {% block meta-description %}{% if object.excerpt %}{{ object.excerpt|striptags }}{% else %}{{ object.content|striptags|truncatewords:100 }}{% endif %}{% endblock %} @@ -30,15 +29,12 @@ {% endblock %} - - {% block content %} {% block gbobject-content %} {% with object.html_content|safe as object_content %} {% include "objectapp/_gbobject_detail.html" %} - <script type="text/javascript" > var s = 0 var i @@ -77,8 +73,6 @@ {% endwith %} {% endblock %} - - {% block gbobject-widgets %} <div class="gbobject-widgets span-16 last"> {% with object.next_gbobject as next_gbobject %} @@ -132,11 +126,22 @@ </div> </div> {% 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"> |