N°6179 - Tooltip attribute in field component (in Twig)

This commit is contained in:
jf-cbd
2023-04-12 14:25:06 +02:00
parent a1a9ffe192
commit ddc9952ec1
3 changed files with 35 additions and 3 deletions

View File

@@ -23,6 +23,9 @@
{% endif %}
>
<div class="ibo-field--label">{{ oUIBlock.GetLabel()|raw }}
{% if oUIBlock.HasTooltip() %}
<span class="ibo-has-description" data-tooltip-content="{{ oUIBlock.GetTooltip() }}" data-tooltip-max-width="600px" ></span>
{% endif %}
{% if oUIBlock.GetLayout() == constant("Combodo\\iTop\\Application\\UI\\Base\\Component\\Field\\Field::ENUM_FIELD_LAYOUT_LARGE") %}
{% if oUIBlock.GetComments() %}
<div class="ibo-field--comments">{{ oUIBlock.GetComments()|raw }}</div>