Updated widgets templates
authorThierry Florac <thierry.florac@onf.fr>
Tue, 28 Aug 2018 09:27:26 +0200
changeset 129 e8517c877cce
parent 128 2965f72df55b
child 130 60e915dfc693
Updated widgets templates
src/pyams_file/widget/templates/file-input.pt
src/pyams_file/widget/templates/media-input.pt
--- a/src/pyams_file/widget/templates/file-input.pt	Mon Aug 27 11:05:37 2018 +0200
+++ b/src/pyams_file/widget/templates/file-input.pt	Tue Aug 28 09:27:26 2018 +0200
@@ -1,12 +1,12 @@
 <i18n:block domain="pyams_file">
-	<div class="input-file">
+	<label class="input-file">
 		<div class="button">
 			<input type="file" onchange="this.parentNode.nextSibling.value = this.value;"
 				   tal:attributes="name view/name;
 								   id view/id;" />
 			<tal:var i18n:translate="">Browse...</tal:var>
 		</div><input type="text" placeholder="Please select a file..." readonly i18n:attributes="placeholder" />
-	</div>
+	</label>
 	<div class="current-value"
 		 tal:define="value view/current_value"
 		 tal:condition="value">
--- a/src/pyams_file/widget/templates/media-input.pt	Mon Aug 27 11:05:37 2018 +0200
+++ b/src/pyams_file/widget/templates/media-input.pt	Tue Aug 28 09:27:26 2018 +0200
@@ -1,12 +1,12 @@
 <i18n:block domain="pyams_file">
-	<div class="input-file">
+	<label class="input-file">
 		<div class="button">
 			<input type="file" onchange="this.parentNode.nextSibling.value = this.value;"
 				   tal:attributes="name view/name;
 								   id view/id;" />
 			<tal:var i18n:translate="">Browse...</tal:var>
 		</div><input type="text" placeholder="Please select a file..." readonly i18n:attributes="placeholder" />
-	</div>
+	</label>
 	<div class="current-value"
 		 tal:define="value view/current_value"
 		 tal:condition="value">