Mercurial > dive4elements > gnv-client
changeset 718:5c36da3d9e17
Fixed missing legends of parameter select boxes. The measurement matrix will be rendered for a single parameter as well, now. (issue225)
gnv/trunk@993 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 27 Apr 2010 08:44:22 +0000 |
parents | 7731cbb3c7b6 |
children | 3b70886b399b |
files | gnv/ChangeLog gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl |
diffstat | 2 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv/ChangeLog Mon Apr 26 14:27:40 2010 +0000 +++ b/gnv/ChangeLog Tue Apr 27 08:44:22 2010 +0000 @@ -1,3 +1,12 @@ +2010-04-27 Ingo Weinzierl <ingo.weinzierl@intevation.de> + + Issue225 + + * src/main/webapp/WEB-INF/config/templates/describe-ui.xsl: Render a + parameter matrix if there is just a single parameter as well. This allows + us to render a legend for multi select boxes at another place - this fixes + the missing legend for parameter select boxes. + 2010-04-26 Ingo Weinzierl <ingo.weinzierl@intevation.de> * src/main/webapp/images/img.gif,
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Mon Apr 26 14:27:40 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Tue Apr 27 08:44:22 2010 +0000 @@ -23,6 +23,9 @@ <xsl:template match="xform:select"> <xsl:variable name="selectName" select="@ref"/> <xsl:variable name="items" select="count(//xform:item)"/> + <legend> + <xsl:value-of select="xform:label"/> + </legend> <xsl:choose> <xsl:when test="$items = 1"> @@ -79,7 +82,7 @@ </legend> <xsl:choose> - <xsl:when test="$selectcount < '2'"> + <xsl:when test="$selectcount < '1'"> <table class="dynamic"> <xsl:apply-templates/> </table>