Updated form template
authorThierry Florac <tflorac@ulthar.net>
Wed, 17 Oct 2018 16:05:20 +0200
changeset 208 b6733706f70a
parent 207 fa0a0a4b379b
child 209 0b7d87141afa
Updated form template
src/pyams_portal/zmi/templates/portlet.pt
--- a/src/pyams_portal/zmi/templates/portlet.pt	Mon Oct 15 12:19:35 2018 +0200
+++ b/src/pyams_portal/zmi/templates/portlet.pt	Wed Oct 17 16:05:20 2018 +0200
@@ -107,7 +107,7 @@
 												<span>
 													<tal:var content="widget.label" />
 													<i class="fa fa-question-circle hint" title="Input hint"
-													   tal:define="description widget.field.description"
+													   tal:define="description getattr(widget, 'description', None) or widget.field.description"
 													   tal:condition="description"
 													   tal:attributes="title description;
 																	   data-ams-hint-html '<' in description;"></i>