summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/nodetype_detail.html
diff options
context:
space:
mode:
authorcsitifr <csitifr@gmail.com>2012-05-11 16:31:53 +0530
committercsitifr <csitifr@gmail.com>2012-05-11 16:31:53 +0530
commitffa1efc1acfc176c1dbf659210b41a51eb4d4cad (patch)
tree65f2e9ba8073f153673701c7a829a261e92b0612 /gstudio/templates/gstudio/nodetype_detail.html
parent850672379e02b758d89ed609e7f8a9c009853104 (diff)
downloadgnowsys-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 'gstudio/templates/gstudio/nodetype_detail.html')
-rw-r--r--gstudio/templates/gstudio/nodetype_detail.html22
1 files changed, 16 insertions, 6 deletions
diff --git a/gstudio/templates/gstudio/nodetype_detail.html b/gstudio/templates/gstudio/nodetype_detail.html
index 404adb9..53fdbbe 100644
--- a/gstudio/templates/gstudio/nodetype_detail.html
+++ b/gstudio/templates/gstudio/nodetype_detail.html
@@ -243,18 +243,28 @@
s = parseInt(s)
//alert(s)
}
- </script>
-
+ </script>
{% endwith %}
{% endblock %}
-{% if object.reftype == 'Objecttype'%}
-<a href="{{ get_absolute_url }}/objects/dynamicAttribute/save/{{ object.title }}">Add Attribute</a>
-<br/>
-<a href="{{ get_absolute_url }}/objects/dynamicRelation/displayRT/{{ object.title }}">Add Relation</a>
+{% if object.reftype == 'Objecttype' %}
+<p>
+<b>Add Attributes:</b>
+{% for i in object.getat %}
+<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.getrt %}
+<a href="{{ get_absolute_url }}/objects/dynamicRelation/displaymem/{{ i }}/{{ object.title }}">{{ i }}</a><nbsp>;
+{% endfor %}
{% endif %}
+</p>
+
<div class="nodetype-content">
</div>