src/ztfy/myams/templates/forms/select-input.pt
changeset 154 0fff49179f6d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ztfy/myams/templates/forms/select-input.pt	Mon Dec 07 14:31:56 2015 +0100
@@ -0,0 +1,29 @@
+<select class="select2"
+		tal:attributes="id view/id;
+						name string:${view/name}:list;
+						class string:${view/klass} select2;
+						style view/style;
+						title view/title;
+						lang view/lang;
+						onclick view/onclick;
+						ondblclick view/ondblclick;
+						onmousedown view/onmousedown;
+						onmouseup view/onmouseup;
+						onmouseover view/onmouseover;
+						onmousemove view/onmousemove;
+						onmouseout view/onmouseout;
+						onkeypress view/onkeypress;
+						onkeydown view/onkeydown;
+						onkeyup view/onkeyup;
+						disabled view/disabled;
+						tabindex view/tabindex;
+						onfocus view/onfocus;
+						onblur view/onblur;
+						onchange view/onchange;
+						multiple view/multiple;
+						size view/size">
+	<option tal:repeat="entry view/items"
+			tal:attributes="value entry/value;
+						    selected python:entry['value'] in view.value;"
+			tal:content="python:view.get_content(entry) if hasattr(view, 'get_content') else entry['content']"></option>
+</select>