comparison gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.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 6c46f9b16166
children 9b35599f50bb
comparison
equal deleted inserted replaced
151:30f0af26b086 152:330871ca1fd3
26 <select name="{$selectName}" disabled="disabled"> <xsl:apply-templates/></select> 26 <select name="{$selectName}" disabled="disabled"> <xsl:apply-templates/></select>
27 </fieldset> 27 </fieldset>
28 </form> 28 </form>
29 </div> 29 </div>
30 </xsl:template> 30 </xsl:template>
31
31 <xsl:template match="*[local-name() = 'item']"> 32 <xsl:template match="*[local-name() = 'item']">
32 <xsl:variable name="optionValue" select="*[local-name() = 'value']"/> 33 <xsl:variable name="optionValue" select="*[local-name() = 'value']"/>
33 <xsl:choose> 34 <xsl:choose>
34 <xsl:when test="@selected = 'true'"> 35 <xsl:when test="@selected = 'true'">
35 <option value="{$optionValue}" selected="selected"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option> 36 <option value="{$optionValue}" selected="selected"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
38 <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option> 39 <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
39 </xsl:otherwise> 40 </xsl:otherwise>
40 </xsl:choose> 41 </xsl:choose>
41 </xsl:template> 42 </xsl:template>
42 43
43 44 <xsl:template match="*[local-name() = 'group']">
44 <xsl:template match="*[local-name() = 'input']">
45 <xsl:variable name="inputValue" select="*[local-name() = 'value']"/>
46 <xsl:variable name="inputName" select="*[local-name() = 'label']"/> 45 <xsl:variable name="inputName" select="*[local-name() = 'label']"/>
47 <div id="timeseriesfilter"> 46 <div id="timeseriesfilter">
48 <form id="{$inputName}Form" method="post"> 47 <form id="{$inputName}Form" method="post">
49 <fieldset> 48 <fieldset>
50 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend> 49 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
51 <xsl:value-of select="*[local-name() = 'label']"/>: <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/> 50 <xsl:apply-templates/>
52 </fieldset> 51 </fieldset>
53 </form> 52 </form>
54 </div> 53 </div>
55 </xsl:template> 54 </xsl:template>
56 55
56 <xsl:template match="*[local-name() = 'input']">
57 <xsl:variable name="inputValue" select="*[local-name() = 'value']"/>
58 <xsl:variable name="inputName" select="*[local-name() = 'label']"/>
59 <xsl:choose>
60 <xsl:when test="*[local-name() = 'label']!= ''">
61 <xsl:value-of select="*[local-name() = 'label']"/>:
62 </xsl:when>
63 </xsl:choose>
64 <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/>
65 </xsl:template>
66
57 <xsl:template match="*[local-name() = 'label']"> 67 <xsl:template match="*[local-name() = 'label']">
58 </xsl:template> 68 </xsl:template>
59 </xsl:stylesheet> 69 </xsl:stylesheet>

http://dive4elements.wald.intevation.org