Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 998:27029f0ec7e1
Reverted the changes of rev1194.
gnv/trunk@1199 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 11 Jun 2010 10:28:50 +0000 |
parents | 9b126bceb0b2 |
children | b1eea43ba133 |
comparison
equal
deleted
inserted
replaced
997:f55692e3e0ce | 998:27029f0ec7e1 |
---|---|
9 <xsl:output | 9 <xsl:output |
10 method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" /> | 10 method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" /> |
11 | 11 |
12 <xsl:param name="example-linestring"/> | 12 <xsl:param name="example-linestring"/> |
13 <xsl:param name="example-polygon"/> | 13 <xsl:param name="example-polygon"/> |
14 <xsl:param name="next-url">/gnv/next.do</xsl:param> | |
15 <xsl:param name="further">false</xsl:param> | |
16 <xsl:param name="exception"/> | |
17 <xsl:param name="gnviewer-select-button-src">./images/auswaehlen.png</xsl:param> | |
18 | |
19 <xsl:template match="node()"> | |
20 <div id="timeseriesfilter"> | |
21 <form id="fisSelectionForm" | |
22 onsubmit="displayOverlay()" | |
23 action="{$next-url}" | |
24 method="post"> | |
25 <fieldset> | |
26 <xsl:if test="$exception != ''"> | |
27 <div class="inputException"><xsl:value-of select="$exception"/></div> | |
28 </xsl:if> | |
29 <xsl:apply-templates mode="basic"/> | |
30 <h2>Here i am</h2> | |
31 <h2>"<xsl:value-of select="$further"/>"</h2> | |
32 <xsl:if test="$further = 'true'"> | |
33 <br/> | |
34 <input style="margin-top: 5px;" type="image" src="{$gnviewer-select-button-src}"/> | |
35 </xsl:if> | |
36 </fieldset> | |
37 </form> | |
38 </div> | |
39 </xsl:template> | |
40 | 14 |
41 <!-- single select --> | 15 <!-- single select --> |
42 <xsl:template match="xform:select1" mode="basic"> | 16 <xsl:template match="xform:select1"> |
43 <xsl:variable name="selectName" select="@ref"/> | 17 <xsl:variable name="selectName" select="@ref"/> |
44 <legend><xsl:value-of select="xform:label"/></legend> | 18 <legend><xsl:value-of select="xform:label"/></legend> |
45 <select name="{$selectName}"> | 19 <select name="{$selectName}"> |
46 <xsl:apply-templates mode="basic"/> | 20 <xsl:apply-templates /> |
47 </select> | 21 </select> |
48 </xsl:template> | 22 </xsl:template> |
49 | 23 |
50 | 24 |
51 <!-- multi select --> | 25 <!-- multi select --> |
52 <xsl:template match="xform:select" mode="basic"> | 26 <xsl:template match="xform:select"> |
53 <xsl:variable name="selectName" select="@ref"/> | 27 <xsl:variable name="selectName" select="@ref"/> |
54 <xsl:variable name="items" select="count(//xform:item)"/> | 28 <xsl:variable name="items" select="count(//xform:item)"/> |
55 <legend> | 29 <legend> |
56 <xsl:value-of select="xform:label"/> | 30 <xsl:value-of select="xform:label"/> |
57 </legend> | 31 </legend> |
62 <xsl:apply-templates mode="selected"/> | 36 <xsl:apply-templates mode="selected"/> |
63 </select> | 37 </select> |
64 </xsl:when> | 38 </xsl:when> |
65 <xsl:when test="$items < 5"> | 39 <xsl:when test="$items < 5"> |
66 <select name="{$selectName}" multiple="multiple" size="{$items}"> | 40 <select name="{$selectName}" multiple="multiple" size="{$items}"> |
67 <xsl:apply-templates mode="basic"/> | 41 <xsl:apply-templates/> |
68 </select> | 42 </select> |
69 </xsl:when> | 43 </xsl:when> |
70 <xsl:otherwise> | 44 <xsl:otherwise> |
71 <select name="{$selectName}" multiple="multiple" size="5"> | 45 <select name="{$selectName}" multiple="multiple" size="5"> |
72 <xsl:apply-templates mode="basic"/> | 46 <xsl:apply-templates /> |
73 </select> | 47 </select> |
74 </xsl:otherwise> | 48 </xsl:otherwise> |
75 </xsl:choose> | 49 </xsl:choose> |
76 </xsl:template> | 50 </xsl:template> |
77 | 51 |
78 | 52 |
79 <!-- options for select --> | 53 <!-- options for select --> |
80 <xsl:template match="xform:item" mode="basic"> | 54 <xsl:template match="xform:item"> |
81 <xsl:variable name="optionValue" select="xform:value"/> | 55 <xsl:variable name="optionValue" select="xform:value"/> |
82 <xsl:choose> | 56 <xsl:choose> |
83 <xsl:when test="@selected = 'true'"> | 57 <xsl:when test="@selected = 'true'"> |
84 <option value="{$optionValue}" selected="selected"> | 58 <option value="{$optionValue}" selected="selected"> |
85 <xsl:value-of select="xform:label"/> | 59 <xsl:value-of select="xform:label"/> |
101 </option> | 75 </option> |
102 </xsl:template> | 76 </xsl:template> |
103 | 77 |
104 | 78 |
105 | 79 |
106 <xsl:template match="xform:group" mode="basic"> | 80 <xsl:template match="xform:group"> |
107 <xsl:variable name="selectcount" select="count(xform:select)"/> | 81 <xsl:variable name="selectcount" select="count(xform:select)"/> |
108 | 82 |
109 <legend> | 83 <legend> |
110 <xsl:value-of select="xform:label"/> | 84 <xsl:value-of select="xform:label"/> |
111 </legend> | 85 </legend> |
112 | 86 |
113 <xsl:choose> | 87 <xsl:choose> |
114 <xsl:when test="$selectcount < '1'"> | 88 <xsl:when test="$selectcount < '1'"> |
115 <table class="dynamic"> | 89 <table class="dynamic"> |
116 <xsl:apply-templates mode="basic"/> | 90 <xsl:apply-templates/> |
117 </table> | 91 </table> |
118 </xsl:when> | 92 </xsl:when> |
119 <xsl:otherwise> | 93 <xsl:otherwise> |
120 <table class="static"> | 94 <table class="static"> |
121 <tr> | 95 <tr> |
176 </xsl:choose> | 150 </xsl:choose> |
177 </td> | 151 </td> |
178 </xsl:template> | 152 </xsl:template> |
179 | 153 |
180 | 154 |
181 <xsl:template match="xform:input" mode="basic"> | 155 <xsl:template match="xform:input"> |
182 <xsl:variable name="inputValue" select="xform:value"/> | 156 <xsl:variable name="inputValue" select="xform:value"/> |
183 <xsl:variable name="inputName" select="@ref"/> | 157 <xsl:variable name="inputName" select="@ref"/> |
184 <xsl:variable name="label" select="xform:label"/> | 158 <xsl:variable name="label" select="xform:label"/> |
185 | 159 |
186 <!-- TODO: Remove this when we have the GIS interface. (slt) --> | 160 <!-- TODO: Remove this when we have the GIS interface. (slt) --> |
205 </td> | 179 </td> |
206 </tr> | 180 </tr> |
207 </xsl:template> | 181 </xsl:template> |
208 | 182 |
209 | 183 |
210 <xsl:template match="xform:label" mode="basic"> | 184 <xsl:template match="xform:label"> |
211 <!-- do nothing here --> | 185 <!-- do nothing here --> |
212 </xsl:template> | 186 </xsl:template> |
213 | 187 |
214 </xsl:stylesheet> | 188 </xsl:stylesheet> |