Skip to content

Commit ea74d69

Browse files
authored
Metadata editor / Avoid displaying the tooltip icon next to buttons to add new elements, when the tooltips mode is icon (#8664)
1 parent 696699c commit ea74d69

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

web/src/main/webapp/xslt/ui-metadata/form-builder.xsl

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -935,11 +935,24 @@
935935
id="gn-el-{$id}"
936936
data-gn-cardinality="{$childEditInfo/@min}-{$childEditInfo/@max}"
937937
data-gn-field-highlight="">
938-
<label class="col-sm-2 control-label"
939-
data-gn-field-tooltip="{$schema}|{$qualifiedName}|{$parentName}|">
940-
<xsl:value-of select="if (normalize-space($label) != '')
938+
939+
<xsl:choose>
940+
<xsl:when test="$viewConfig/@displayTooltipsMode = 'icon'">
941+
<!-- Avoid displaying the help icon next to buttons when the toolstip mode is icon -->
942+
<label class="col-sm-2 control-label">
943+
<xsl:value-of select="if (normalize-space($label) != '')
941944
then $label else '&#160;'"/>
942-
</label>
945+
</label>
946+
</xsl:when>
947+
<xsl:otherwise>
948+
<label class="col-sm-2 control-label"
949+
data-gn-field-tooltip="{$schema}|{$qualifiedName}|{$parentName}|">
950+
<xsl:value-of select="if (normalize-space($label) != '')
951+
then $label else '&#160;'"/>
952+
</label>
953+
</xsl:otherwise>
954+
</xsl:choose>
955+
943956
<div class="col-sm-9">
944957

945958
<xsl:variable name="addDirective" select="$directive/@addDirective != ''"/>

0 commit comments

Comments
 (0)