Mercurial > dive4elements > gnv-client
changeset 387:6de60d996475
First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
gnv/trunk@502 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 04 Jan 2010 15:15:38 +0000 (2010-01-04) |
parents | 6b0ef2324d02 |
children | 6e16dc005704 |
files | gnv/ChangeLog gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl gnv/src/main/webapp/styles/default.css |
diffstat | 3 files changed, 60 insertions(+), 35 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv/ChangeLog Thu Dec 17 18:28:20 2009 +0000 +++ b/gnv/ChangeLog Mon Jan 04 15:15:38 2010 +0000 @@ -1,3 +1,11 @@ +2010-01-04 Ingo Weinzierl <ingo.weinzierl@intevation.de> + + * src/main/webapp/styles/default.css: Added new classes for displaying + parameters and values in left panel. + + * src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl: Static + nodes will be rendered as text instead of disabled xforms. + 2009-12-17 Sascha L. Teichmann <sascha.teichmann@intevation.de> RELEASE 0.3
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl Thu Dec 17 18:28:20 2009 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl Mon Jan 04 15:15:38 2010 +0000 @@ -8,48 +8,52 @@ <xsl:template match="*[local-name() = 'select']"> <xsl:variable name="selectName" select="@ref"/> - <div id="timeseriesfilter"> - <form id="{$selectName}Form" method="post"> - <fieldset> - <legend><xsl:value-of select="*[local-name() = 'label']"/></legend> - <select name="{$selectName}" multiple="multiple" size="6" disabled="disabled"> <xsl:apply-templates/></select> - </fieldset> - </form> + <div id="timeseriesfilter"> + <table> + <tr> + <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th> + <td> + <table> + <xsl:for-each select="./choices/item"> + <xsl:if test="@selected = 'true'"> + <tr><td class="value"><xsl:value-of select="./label"/></td></tr> + </xsl:if> + </xsl:for-each> + </table> + </td> + </tr> + </table> </div> </xsl:template> <xsl:template match="*[local-name() = 'select1']"> <xsl:variable name="selectName" select="@ref"/> <div id="timeseriesfilter"> - <form id="{$selectName}Form" method="post"> - <fieldset> - <legend><xsl:value-of select="*[local-name() = 'label']"/></legend> - <select name="{$selectName}" disabled="disabled"> <xsl:apply-templates/></select> - </fieldset> - </form> + <table> + <tr> + <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th> + <td><xsl:value-of select="./choices/item/label" /></td> + </tr> + </table> </div> </xsl:template> - <xsl:template match="*[local-name() = 'item']"> - <xsl:variable name="optionValue" select="*[local-name() = 'value']"/> - <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> - <xsl:template match="*[local-name() = 'group']"> <xsl:variable name="inputName" select="*[local-name() = 'label']"/> - <div id="timeseriesfilter"> - <form id="{$inputName}Form" method="post"> - <fieldset> - <legend><xsl:value-of select="*[local-name() = 'label']"/></legend> - <xsl:apply-templates/> - </fieldset> - </form> + <div id="timeseriesfilter"> + <table> + <tr> + <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th> + <td> + <table> + <xsl:for-each select="./input"> + <tr><td class="value"> + <xsl:value-of select="./label"/> <xsl:value-of select="./value"/> + </td></tr> + </xsl:for-each> + </table> + </td> + </tr> + </table> </div> </xsl:template> @@ -61,9 +65,9 @@ <xsl:value-of select="*[local-name() = 'label']"/>: </xsl:when> </xsl:choose> - <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" disabled="disabled"/> + <xsl:value-of select="*[local-name() = 'value']"/> </xsl:template> <xsl:template match="*[local-name() = 'label']"> </xsl:template> -</xsl:stylesheet> \ No newline at end of file +</xsl:stylesheet>
--- a/gnv/src/main/webapp/styles/default.css Thu Dec 17 18:28:20 2009 +0000 +++ b/gnv/src/main/webapp/styles/default.css Mon Jan 04 15:15:38 2010 +0000 @@ -97,6 +97,19 @@ padding: 0; font-size: 0.8em; } + +.parameter { + font-size: 0.8em; + padding-left: 10px; + text-align: left; + vertical-align: top; + width: 100px; +} + +.value { + font-size: 1.2em; +} + .submitbutton{ cursor:pointer; border:outset 1px #ccc; @@ -352,4 +365,4 @@ } -/* ----------------------------------- */ \ No newline at end of file +/* ----------------------------------- */