--- a/src/pyams_form/interfaces/templates/form.pt Fri Oct 12 15:04:40 2018 +0200
+++ b/src/pyams_form/interfaces/templates/form.pt Wed Oct 17 16:10:30 2018 +0200
@@ -96,7 +96,7 @@
<span>
<tal:var content="widget.label" />
<i class="fa fa-question-circle hint" title="Input hint"
- tal:define="description getattr(widget, '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>
--- a/src/pyams_form/interfaces/templates/inner-form.pt Fri Oct 12 15:04:40 2018 +0200
+++ b/src/pyams_form/interfaces/templates/inner-form.pt Wed Oct 17 16:10:30 2018 +0200
@@ -80,7 +80,7 @@
<span>
<tal:var content="widget.label" />
<i class="fa fa-question-circle hint" title="Input hint"
- tal:define="description getattr(widget, '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>
--- a/src/pyams_form/interfaces/templates/widget-form.pt Fri Oct 12 15:04:40 2018 +0200
+++ b/src/pyams_form/interfaces/templates/widget-form.pt Wed Oct 17 16:10:30 2018 +0200
@@ -75,7 +75,7 @@
<span>
<tal:var content="widget.label" />
<i class="fa fa-question-circle hint" title="Input hint"
- tal:define="description getattr(widget, '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>
--- a/src/pyams_form/widget/templates/object-subform.pt Fri Oct 12 15:04:40 2018 +0200
+++ b/src/pyams_form/widget/templates/object-subform.pt Wed Oct 17 16:10:30 2018 +0200
@@ -12,7 +12,7 @@
<span>
<tal:var content="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 getattr(widget, 'description', None) or widget.field.description"
tal:condition="description"
tal:attributes="title description;
data-ams-hint-html python:'<' in description;"></i>