| 1 | {% load dojox.dtl.contrib.data %} |
| 2 | {% bind_data items to store as flickr %} |
| 3 | <div> |
| 4 | Type a tag and press enter: <input dojoAttachEvent="onkeypress: keyUp" value="beach"> |
| 5 | <table> |
| 6 | <tr> |
| 7 | {% for item in flickr %}<td><img src="{{ item.imageUrlThumb }}" dojoAttachEvent="onclick: selectThumbnail" class="{{ item.imageUrl }}" /></td>{% endfor %} |
| 8 | <td width="100%"></td> |
| 9 | </tr> |
| 10 | <tr> |
| 11 | <td colspan="{{ flickr|length|add:1 }}"> |
| 12 | {% if selected %}<img src="{{ selected }}" />{% endif %} |
| 13 | </td> |
| 14 | </tr> |
| 15 | </table> |
| 16 | </div> |