annotate gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl @ 161:9b35599f50bb

BugFix: Text-Inputfields will now be diabaled in static-ui issue81 gnv/trunk@320 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 11 Nov 2009 12:12:10 +0000
parents 330871ca1fd3
children 3be414dc974a
rev   line source
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
2 <xsl:stylesheet version="1.0"
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
4 xmlns="http://www.w3.org/2002/xforms"
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
5 xmlns:xform="http://www.w3.org/2002/xforms"
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
6 xmlns:art="http://www.intevation.de/2009/artifacts">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
7 <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
8
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
9 <xsl:template match="*[local-name() = 'select']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
10 <xsl:variable name="selectName" select="@ref"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
11 <div id="timeseriesfilter">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
12 <form id="{$selectName}Form" method="post">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
13 <fieldset>
39
6c46f9b16166 gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents: 21
diff changeset
14 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
15 <select name="{$selectName}" multiple="multiple" size="6" disabled="disabled"> <xsl:apply-templates/></select>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
16 </fieldset>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
17 </form>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
18 </div> 
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
19 </xsl:template>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
20 <xsl:template match="*[local-name() = 'select1']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
21 <xsl:variable name="selectName" select="@ref"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
22 <div id="timeseriesfilter">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
23 <form id="{$selectName}Form" method="post">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
24 <fieldset>
39
6c46f9b16166 gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents: 21
diff changeset
25 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
26 <select name="{$selectName}" disabled="disabled"> <xsl:apply-templates/></select>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
27 </fieldset>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
28 </form>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
29 </div>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
30 </xsl:template>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
31
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
32 <xsl:template match="*[local-name() = 'item']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
33 <xsl:variable name="optionValue" select="*[local-name() = 'value']"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
34 <xsl:choose>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
35 <xsl:when test="@selected = 'true'">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
36 <option value="{$optionValue}" selected="selected"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
37 </xsl:when>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
38 <xsl:otherwise>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
39 <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
40 </xsl:otherwise>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
41 </xsl:choose>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
42 </xsl:template>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
43
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
44 <xsl:template match="*[local-name() = 'group']">
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
45 <xsl:variable name="inputName" select="*[local-name() = 'label']"/>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
46 <div id="timeseriesfilter">
21
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
47 <form id="{$inputName}Form" method="post">
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
48 <fieldset>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
49 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
50 <xsl:apply-templates/>
21
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
51 </fieldset>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
52 </form>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
53 </div>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
54 </xsl:template>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
55
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
56 <xsl:template match="*[local-name() = 'input']">
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
57 <xsl:variable name="inputValue" select="*[local-name() = 'value']"/>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
58 <xsl:variable name="inputName" select="*[local-name() = 'label']"/>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
59 <xsl:choose>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
60 <xsl:when test="*[local-name() = 'label']!= ''">
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
61 <xsl:value-of select="*[local-name() = 'label']"/>:
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
62 </xsl:when>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
63 </xsl:choose>
161
9b35599f50bb BugFix: Text-Inputfields will now be diabaled in static-ui issue81
Tim Englich <tim.englich@intevation.de>
parents: 152
diff changeset
64 <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" disabled="disabled"/><br/>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
65 </xsl:template>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
66
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
67 <xsl:template match="*[local-name() = 'label']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
68 </xsl:template>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
69 </xsl:stylesheet>

http://dive4elements.wald.intevation.org