common/tags.py
branchtls-sprint
changeset 861 7985b5db2284
parent 846 e449f1da7d09
child 895 e78ae38506db
--- a/common/tags.py	Thu Feb 19 20:33:50 2009 +0100
+++ b/common/tags.py	Thu Feb 19 21:31:18 2009 +0100
@@ -13,3 +13,10 @@
 span = tag('span')
 img = tag('img')
 label = tag('label')
+
+def select(name, options=[]):
+    html = [u'<select name="%s">' % name]
+    html += options
+    html.append(u'</select>')
+    return u'\n'.join(html)
+