]> git.pond.sub.org Git - eow/blobdiff - static/dojo-release-1.1.1/dojox/dtl/demos/templates/gallery.html
add Dojo 1.1.1
[eow] / static / dojo-release-1.1.1 / dojox / dtl / demos / templates / gallery.html
diff --git a/static/dojo-release-1.1.1/dojox/dtl/demos/templates/gallery.html b/static/dojo-release-1.1.1/dojox/dtl/demos/templates/gallery.html
new file mode 100644 (file)
index 0000000..7fe6d8c
--- /dev/null
@@ -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