Skip to content

Commit

Permalink
Metadata editor / Fix display of multiple choice elements with custom…
Browse files Browse the repository at this point in the history
… label
  • Loading branch information
josegar74 authored and fxprunayre committed Nov 12, 2024
1 parent 56a4069 commit 6dbaa47
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions web/src/main/webapp/xslt/ui-metadata/form-builder.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@
<xsl:attribute name="aria-haspopup">true</xsl:attribute>
<xsl:attribute name="aria-expanded">false</xsl:attribute>
</xsl:if>
<i class="{if ($btnClass != '') then $btnClass else 'fa fa-plus'}"/>
<i class="{if ($btnClass != '') then $btnClass else 'fa fa-plus'}"></i>
<xsl:if test="$btnLabel != ''">&#160;
<span>
<xsl:value-of select="$btnLabel"/>
Expand Down Expand Up @@ -934,9 +934,9 @@
<xsl:when test="$qualifiedName = 'gfc:code' and $schema='iso19110'">

<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle fa fa-plus gn-add" data-toggle="dropdown" title="{$i18n/addA} {$label}">
<span/>
<span class="caret"/>
<button type="button" class="btn btn-default dropdown-toggle gn-add" data-toggle="dropdown" title="{$i18n/addA} {$label}">
<i class="fa fa-plus"></i>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<xsl:variable name="name" select="'gco:CharacterString'"/>
Expand Down Expand Up @@ -982,10 +982,10 @@
<xsl:when test="count($childEditInfo/gn:choose) > 1">
<div class="btn-group">
<button type="button"
class="btn btn-default dropdown-toggle {if ($btnClass != '') then $btnClass else 'fa fa-plus'} gn-add"
class="btn btn-default dropdown-toggle gn-add"
data-toggle="dropdown"
title="{$i18n/addA} {$label}">
<span/>
<i class="{if ($btnClass != '') then $btnClass else 'fa fa-plus'}"></i>
<xsl:if test="$btnLabel != ''">&#160;
<span>
<xsl:value-of select="$btnLabel"/>
Expand Down Expand Up @@ -1019,7 +1019,7 @@
<a class="btn btn-default"
title="{$i18n/addA} {$label}"
data-gn-click-and-spin="add({$parentEditInfo/@ref}, '{if ($name != '') then $name else concat(@prefix, ':', @name)}', '{$id}', 'before');">
<i class="{if ($btnClass != '') then $btnClass else 'fa fa-plus'} gn-add"/>
<i class="{if ($btnClass != '') then $btnClass else 'fa fa-plus'} gn-add"></i>
<xsl:if test="$btnLabel != ''">&#160;
<span>
<xsl:value-of select="$btnLabel"/>
Expand Down Expand Up @@ -1477,7 +1477,7 @@
<a class="btn btn-default"
title="{$i18n/addA} {$name}"
data-gn-click-and-spin="add({$parentEditInfo/@parent}, '{$name}', {$editInfo/@ref})">
<i class="fa fa-plus gn-add"/>
<i class="fa fa-plus gn-add"></i>
</a>
</xsl:if>
</xsl:template>
Expand Down Expand Up @@ -1640,7 +1640,7 @@
id="gn-attr-add-button-{$fieldName}"
data-gn-click-and-spin="add('{$ref}', '{@name}', '{$insertRef}', null, true)"
title="{$attributeLabel/description}">
<i class="fa fa-plus fa-fw"/>
<i class="fa fa-plus fa-fw"></i>
<xsl:value-of select="$attributeLabel/label"/>
</button>
</xsl:template>
Expand Down

0 comments on commit 6dbaa47

Please sign in to comment.