Added name and id to handle errors
authorThierry Florac <tflorac@ulthar.net>
Sat, 21 Mar 2015 01:36:10 +0100
changeset 5 7a354809b65b
parent 4 a80dffc48eb6
child 6 08740e98e109
Added name and id to handle errors
src/pyams_i18n/widget/templates/i18n-input.pt
--- a/src/pyams_i18n/widget/templates/i18n-input.pt	Fri Mar 20 23:24:09 2015 +0100
+++ b/src/pyams_i18n/widget/templates/i18n-input.pt	Sat Mar 21 01:36:10 2015 +0100
@@ -1,4 +1,5 @@
-<tal:var define="langs view/langs">
+<div tal:define="langs view/langs"
+	 tal:attributes="id view/id; name view/name;">
 	<tal:if condition="python:len(langs) == 1">
 		<div class="clearfix">
 			<tal:var replace="structure python:view.get_widget(tuple(langs)[0]).render()" />
@@ -29,4 +30,4 @@
 			</tal:loop>
 		</div>
 	</tal:if>
-</tal:var>
+</div>