aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dojox/dtl/demos/templates
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-13 09:49:11 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-13 09:49:11 +0000
commite44a7e37b6c7b5961adaffc62b9042b8d442938e (patch)
tree95b67c356e93163467db2451f2b8cce84ed5d582 /includes/js/dojox/dtl/demos/templates
parenta62b9742ee5e28bcec6872d88f50f25b820914f6 (diff)
downloadsemanticscuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.gz
semanticscuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.bz2
New feature: basic Ajax suggestion for tags and implementation of Dojo toolkit
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/dtl/demos/templates')
-rw-r--r--includes/js/dojox/dtl/demos/templates/animation.html5
-rw-r--r--includes/js/dojox/dtl/demos/templates/blog_base.html8
-rw-r--r--includes/js/dojox/dtl/demos/templates/blog_detail.html10
-rw-r--r--includes/js/dojox/dtl/demos/templates/blog_list.html9
-rw-r--r--includes/js/dojox/dtl/demos/templates/blog_page.html7
-rw-r--r--includes/js/dojox/dtl/demos/templates/countrychildren.html1
-rw-r--r--includes/js/dojox/dtl/demos/templates/gallery.html16
-rw-r--r--includes/js/dojox/dtl/demos/templates/nodelist.html5
8 files changed, 61 insertions, 0 deletions
diff --git a/includes/js/dojox/dtl/demos/templates/animation.html b/includes/js/dojox/dtl/demos/templates/animation.html
new file mode 100644
index 0000000..56c38f3
--- /dev/null
+++ b/includes/js/dojox/dtl/demos/templates/animation.html
@@ -0,0 +1,5 @@
+{% load dojox.dtl.contrib.dijit dojox.dtl.contrib.html %}
+<div>
+ <div tstyle="top: {{ y }}px; left: {{ x }}px;" style="width: 10px; height: 10px; background: red; position: absolute;">&nbsp;</div>
+ <div dojoAttachPoint="blue" style="top: 10px; left: 0; width: 10px; height: 10px; background: blue; position: absolute;">&nbsp;</div>
+</div> \ No newline at end of file
diff --git a/includes/js/dojox/dtl/demos/templates/blog_base.html b/includes/js/dojox/dtl/demos/templates/blog_base.html
new file mode 100644
index 0000000..1438a6b
--- /dev/null
+++ b/includes/js/dojox/dtl/demos/templates/blog_base.html
@@ -0,0 +1,8 @@
+<div>
+ <h1><!--{{ title }}--></h1>
+ <ul style="float: left; width: 100px; height: 300px; margin-right: 20px; border: 1px solid #666;">
+ <li><a onclick="_showList" style="cursor: pointer;">Home</a></li>
+ <li><a onclick="_showPage" style="cursor: pointer;" class="page-about">About Jim</a></li>
+ </ul>
+ <!--{% block body %}--><!--{% endblock %}-->
+</div> \ No newline at end of file
diff --git a/includes/js/dojox/dtl/demos/templates/blog_detail.html b/includes/js/dojox/dtl/demos/templates/blog_detail.html
new file mode 100644
index 0000000..2b6146d
--- /dev/null
+++ b/includes/js/dojox/dtl/demos/templates/blog_detail.html
@@ -0,0 +1,10 @@
+<!--{% extends base %}-->
+
+<!--{% block body %}-->
+<div>
+<h3><!--{{ blog.title }}--></h3>
+<div><small>posted on <!--{{ blog.date|date }}--> by <!--{{ blog.author }}--></small></div>
+<p><!--{{ blog.teaser }}--></p>
+<p><!--{{ blog.body }}--></p>
+</div>
+<!--{% endblock %}--> \ No newline at end of file
diff --git a/includes/js/dojox/dtl/demos/templates/blog_list.html b/includes/js/dojox/dtl/demos/templates/blog_list.html
new file mode 100644
index 0000000..2413605
--- /dev/null
+++ b/includes/js/dojox/dtl/demos/templates/blog_list.html
@@ -0,0 +1,9 @@
+<!--{% extends base %}-->
+<!--{% load dojox.dtl.contrib.dijit %}-->
+<!--{% block body %}-->
+<ul>
+<!--{% for key, blog in blog_list.items %}-->
+<li onclick="_showDetail" class="blog-{{ key }}" style="cursor: pointer;">{{ blog.title }}</li>
+<!--{% endfor %}-->
+</ul>
+<!--{% endblock %}--> \ No newline at end of file
diff --git a/includes/js/dojox/dtl/demos/templates/blog_page.html b/includes/js/dojox/dtl/demos/templates/blog_page.html
new file mode 100644
index 0000000..aeeb762
--- /dev/null
+++ b/includes/js/dojox/dtl/demos/templates/blog_page.html
@@ -0,0 +1,7 @@
+<!--{% extends "shared:templates/blog_base.html" %}-->
+<!--{% load dojox.dtl.contrib.html %}-->
+<!--{% block body %}-->
+<div>
+ <!--{% html body %}-->
+</div>
+<!--{% endblock %}--> \ No newline at end of file
diff --git a/includes/js/dojox/dtl/demos/templates/countrychildren.html b/includes/js/dojox/dtl/demos/templates/countrychildren.html
new file mode 100644
index 0000000..fbdbebe
--- /dev/null
+++ b/includes/js/dojox/dtl/demos/templates/countrychildren.html
@@ -0,0 +1 @@
+<li>{{ country.type }}: {{ country.name }}{% if country.children %}<ul>{% for country in country.childrens %}{% include countrychildren %}{% endfor %}</ul>{% endif %}</li> \ No newline at end of file
diff --git a/includes/js/dojox/dtl/demos/templates/gallery.html b/includes/js/dojox/dtl/demos/templates/gallery.html
new file mode 100644
index 0000000..7fe6d8c
--- /dev/null
+++ b/includes/js/dojox/dtl/demos/templates/gallery.html
@@ -0,0 +1,16 @@
+{% load dojox.dtl.contrib.data %}
+{% bind_data items to store as flickr %}
+<div>
+ <input dojoAttachEvent="onkeypress: keyUp">
+ <table>
+ <tr>
+ {% for item in flickr %}<td><img src="{{ item.imageUrlThumb }}" dojoAttachEvent="onclick: selectThumbnail" class="{{ item.imageUrl }}" /></td>{% endfor %}
+ <td width="100%"></td>
+ </tr>
+ <tr>
+ <td colspan="{{ flickr|length|add:1 }}">
+ {% if selected %}<img src="{{ selected }}" />{% endif %}
+ </td>
+ </tr>
+ </table>
+</div> \ No newline at end of file
diff --git a/includes/js/dojox/dtl/demos/templates/nodelist.html b/includes/js/dojox/dtl/demos/templates/nodelist.html
new file mode 100644
index 0000000..ddf7def
--- /dev/null
+++ b/includes/js/dojox/dtl/demos/templates/nodelist.html
@@ -0,0 +1,5 @@
+<div>
+ <ul>
+ {% for item in items %}<li>{{ item }}</li>{% endfor %}
+ </ul>
+</div> \ No newline at end of file