Mercurial > dive4elements > gnv-client
diff gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 152:330871ca1fd3
Added uniform Visualization of Single Input-Elements in GUI. issue55
gnv/trunk@246 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 19 Oct 2009 13:31:51 +0000 |
parents | 9b7f74e58f8d |
children | 3be414dc974a |
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Mon Oct 19 12:49:58 2009 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Mon Oct 19 13:31:51 2009 +0000 @@ -37,7 +37,13 @@ <xsl:template match="*[local-name() = 'input']"> <xsl:variable name="inputValue" select="*[local-name() = 'value']"/> <xsl:variable name="inputName" select="@ref"/> - <xsl:value-of select="*[local-name() = 'label']"/>: <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/> + + <xsl:choose> + <xsl:when test="*[local-name() = 'label']!= ''"> + <xsl:value-of select="*[local-name() = 'label']"/>: + </xsl:when> + </xsl:choose> + <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/> </xsl:template> <xsl:template match="*[local-name() = 'label']">