Added application note in terms selection widget
authorThierry Florac <tflorac@ulthar.net>
Tue, 24 Nov 2020 15:33:38 +0100
changeset 126 e76c8179e1a6
parent 125 53d8795a704d
child 127 bae94df79fda
Added application note in terms selection widget
src/pyams_thesaurus/zmi/widget/templates/terms-tree-input.pt
--- a/src/pyams_thesaurus/zmi/widget/templates/terms-tree-input.pt	Tue Nov 24 15:00:04 2020 +0100
+++ b/src/pyams_thesaurus/zmi/widget/templates/terms-tree-input.pt	Tue Nov 24 15:33:38 2020 +0100
@@ -25,6 +25,12 @@
 								<i></i>
 								<div class="${python:'' if published else 'bold margin-top-10'}">
 									${python:subterm.alt or subterm.label}
+									<tal:if condition="subterm/note">
+										<b tal:define="note subterm/note;
+													   note tales:html(note);"
+										   class="fa fa-fw fa-question-circle hint"
+										   title="${note}" data-ams-hint-html="true"></b>
+									</tal:if>
 								</div>
 							</label>
 						</div>