Updated internal form objects templates
authorThierry Florac <tflorac@ulthar.net>
Wed, 17 Oct 2018 16:09:48 +0200
changeset 62 2c4dc7ef5ccb
parent 61 b47c3b6eacd0
child 63 77c839e343af
Updated internal form objects templates
src/pyams_gis/zmi/widget/templates/geoarea-input.pt
src/pyams_gis/zmi/widget/templates/geopoint-input.pt
--- a/src/pyams_gis/zmi/widget/templates/geoarea-input.pt	Tue Sep 18 16:22:29 2018 +0200
+++ b/src/pyams_gis/zmi/widget/templates/geoarea-input.pt	Wed Oct 17 16:09:48 2018 +0200
@@ -63,7 +63,7 @@
 						<span>
 							<tal:var content="python:request.localizer.translate(widget.label)" />
 							<i class="fa fa-question-circle hint" title="Input hint"
-							   tal:define="description python:getattr(widget, 'description', widget.field.description)"
+							   tal:define="description python:getattr(widget, 'description', None) or widget.field.description"
 							   tal:condition="description"
 							   tal:attributes="title description;
 											   data-ams-hint-html python:'<' in description;"></i>
--- a/src/pyams_gis/zmi/widget/templates/geopoint-input.pt	Tue Sep 18 16:22:29 2018 +0200
+++ b/src/pyams_gis/zmi/widget/templates/geopoint-input.pt	Wed Oct 17 16:09:48 2018 +0200
@@ -65,7 +65,7 @@
 						<span>
 							<tal:var content="python:request.localizer.translate(widget.label)" />
 							<i class="fa fa-question-circle hint" title="Input hint"
-							   tal:define="description python:getattr(widget, 'description', widget.field.description)"
+							   tal:define="description python:getattr(widget, 'description', None) or widget.field.description"
 							   tal:condition="description"
 							   tal:attributes="title description;
 											   data-ams-hint-html python:'<' in description;"></i>