Added application note to first level term
authorThierry Florac <tflorac@ulthar.net>
Tue, 01 Dec 2020 09:06:50 +0100
changeset 130 7450df87a47e
parent 129 26ebfe6d8a73
child 131 415faf6d09ed
Added application note to first level term
src/pyams_thesaurus/zmi/widget/templates/terms-tree-input.pt
--- a/src/pyams_thesaurus/zmi/widget/templates/terms-tree-input.pt	Tue Dec 01 09:06:15 2020 +0100
+++ b/src/pyams_thesaurus/zmi/widget/templates/terms-tree-input.pt	Tue Dec 01 09:06:50 2020 +0100
@@ -6,7 +6,15 @@
 			<div class="ams-widget" data-ams-widget-toggle-button="false"
 				 id="them_${repeat/term/index}">
 				<header class="no-margin">
-					<h2>${python:term.alt or term.label}</h2>
+					<h2>
+						${python:term.alt or term.label}
+						<tal:if condition="term/note">
+							<b tal:define="note term/note;
+										   note tales:html(note);"
+							   class="fa fa-fw fa-question-circle hint"
+							   title="${note}" data-ams-hint-html="true"></b>
+						</tal:if>
+					</h2>
 				</header>
 				<div class="widget-body no-padding viewport-y viewport-200 viewport-x-none"
 					 style="height: 200px; width: calc(100% - 2px);">