Changed title attribute value for image widgets
authorThierry Florac <tflorac@ulthar.net>
Sun, 26 Nov 2017 10:02:49 +0100
changeset 67 2a9b54ee7dd3
parent 66 77cd904a8683
child 68 68e169f03e5e
Changed title attribute value for image widgets
src/pyams_file/widget/templates/image-display.pt
src/pyams_file/widget/templates/image-input.pt
--- a/src/pyams_file/widget/templates/image-display.pt	Fri Oct 13 10:15:26 2017 +0200
+++ b/src/pyams_file/widget/templates/image-display.pt	Sun Nov 26 10:02:49 2017 +0100
@@ -13,7 +13,7 @@
 			<img class="thumbnail"
 				 tal:define="thumbnail python:thumbnails.get_thumbnail('128x128', 'jpeg');"
 				 tal:attributes="src extension:absolute_url(thumbnail);
-								 title i18n:context.title;" title="" src="" alt="" />
+								 title i18n:value.title;" title="" src="" alt="" />
 		</a>
 		<div class="margin-top-5">
 			<span i18n:translate="">Current value: </span>
--- a/src/pyams_file/widget/templates/image-input.pt	Fri Oct 13 10:15:26 2017 +0200
+++ b/src/pyams_file/widget/templates/image-input.pt	Sun Nov 26 10:02:49 2017 +0100
@@ -30,7 +30,7 @@
 			<img class="thumbnail"
 				 tal:define="thumbnail python:thumbnails.get_thumbnail('128x128', 'jpeg');"
 				 tal:attributes="src extension:absolute_url(thumbnail);
-								 title i18n:context.title;" title="" src="" alt="" />
+								 title i18n:value.title;" title="" src="" alt="" />
 		</a>
 		<div class="margin-top-5">
 			<span i18n:translate="">Current value: </span>