--- 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">