Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata editor / Avoid displaying the tooltip icon next to buttons to add new elements, when the toolstip mode is icon #8664

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions web/src/main/webapp/xslt/ui-metadata/form-builder.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -934,11 +934,24 @@
id="gn-el-{$id}"
data-gn-cardinality="{$childEditInfo/@min}-{$childEditInfo/@max}"
data-gn-field-highlight="">
<label class="col-sm-2 control-label"
data-gn-field-tooltip="{$schema}|{$qualifiedName}|{$parentName}|">
<xsl:value-of select="if (normalize-space($label) != '')

<xsl:choose>
<xsl:when test="$viewConfig/@displayTooltipsMode = 'icon'">
<!-- Avoid displaying the help icon next to buttons when the toolstip mode is icon -->
<label class="col-sm-2 control-label">
<xsl:value-of select="if (normalize-space($label) != '')
then $label else '&#160;'"/>
</label>
</label>
</xsl:when>
<xsl:otherwise>
<label class="col-sm-2 control-label"
data-gn-field-tooltip="{$schema}|{$qualifiedName}|{$parentName}|">
<xsl:value-of select="if (normalize-space($label) != '')
then $label else '&#160;'"/>
</label>
</xsl:otherwise>
</xsl:choose>

<div class="col-sm-9">

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