Mercurial > dive4elements > gnv-client
changeset 21:17c92f1f014b
Some GUI improvements done
gnv/trunk@116 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Wed, 23 Sep 2009 15:04:39 +0000 |
parents | 2f4ae7d9e058 |
children | 367a00e4b9ad |
files | gnv/Changelog gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl |
diffstat | 3 files changed, 24 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv/Changelog Tue Sep 22 13:09:09 2009 +0000 +++ b/gnv/Changelog Wed Sep 23 15:04:39 2009 +0000 @@ -1,4 +1,11 @@ -2009-09-22 Tim Englich <tim.englich@intevation.de> +2009-09-23 Tim Englich <tim.englich@intevation.de> + + * src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Edited: + Selection on Input-UI-Data will be fetched from the UI and visualized + in the GUI. + * src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl Edited: + Single Text Input-Elements now will be surround with an div and an form Element + 2009-09-22 Tim Englich <tim.englich@intevation.de> * src/main/java/de/intevation/gnv/util/XSLTransformer.java Edited: Logging reduced for a better Performance. XML-Nodes should not be logged because their size could
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl Tue Sep 22 13:09:09 2009 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl Wed Sep 23 15:04:39 2009 +0000 @@ -44,7 +44,14 @@ <xsl:template match="*[local-name() = 'input']"> <xsl:variable name="inputValue" select="*[local-name() = 'value']"/> <xsl:variable name="inputName" select="*[local-name() = 'label']"/> - <xsl:value-of select="*[local-name() = 'label']"/>: <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/> + <div id="timeseriesfilter"> + <form id="{$inputName}Form" method="post"> + <fieldset> + <legend><xsl:value-of select="*[local-name() = 'label']"/></legend> + <xsl:value-of select="*[local-name() = 'label']"/>: <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/> + </fieldset> + </form> + </div> </xsl:template> <xsl:template match="*[local-name() = 'label']">
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Tue Sep 22 13:09:09 2009 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Wed Sep 23 15:04:39 2009 +0000 @@ -18,7 +18,14 @@ </xsl:template> <xsl:template match="*[local-name() = 'item']"> <xsl:variable name="optionValue" select="*[local-name() = 'value']"/> - <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option> + <xsl:choose> + <xsl:when test="@selected = 'true'"> + <option value="{$optionValue}" selected="selected"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option> + </xsl:when> + <xsl:otherwise> + <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option> + </xsl:otherwise> + </xsl:choose> </xsl:template>