diff gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 993:9b126bceb0b2

gnv/issue219: Added rendering of direct links. gnv/trunk@1194 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 10 Jun 2010 22:01:23 +0000
parents 13de46229f63
children 27029f0ec7e1
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Thu Jun 10 16:48:30 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Thu Jun 10 22:01:23 2010 +0000
@@ -11,19 +11,45 @@
 
     <xsl:param name="example-linestring"/>
     <xsl:param name="example-polygon"/>
+    <xsl:param name="next-url">/gnv/next.do</xsl:param>
+    <xsl:param name="further">false</xsl:param>
+    <xsl:param name="exception"/>
+    <xsl:param name="gnviewer-select-button-src">./images/auswaehlen.png</xsl:param>
+
+    <xsl:template match="node()">
+        <div id="timeseriesfilter"> 
+            <form id="fisSelectionForm" 
+                  onsubmit="displayOverlay()" 
+                  action="{$next-url}" 
+                  method="post">
+                <fieldset>
+                    <xsl:if test="$exception != ''">
+                         <div class="inputException"><xsl:value-of select="$exception"/></div>
+                    </xsl:if>
+                    <xsl:apply-templates mode="basic"/>
+                    <h2>Here i am</h2>
+                    <h2>"<xsl:value-of select="$further"/>"</h2>
+                    <xsl:if test="$further = 'true'">
+                        <br/>
+                        <input style="margin-top: 5px;" type="image" src="{$gnviewer-select-button-src}"/>
+                    </xsl:if>
+                </fieldset>
+            </form>
+        </div>
+    </xsl:template>
 
     <!-- single select -->
-    <xsl:template match="xform:select1">
+    <xsl:template match="xform:select1" mode="basic">
         <xsl:variable name="selectName" select="@ref"/>
         <legend><xsl:value-of select="xform:label"/></legend>
         <select name="{$selectName}">
-            <xsl:apply-templates />
+            <xsl:apply-templates  mode="basic"/>
         </select>
     </xsl:template>
 
 
     <!-- multi select -->
-    <xsl:template match="xform:select">
+    <xsl:template match="xform:select" mode="basic">
         <xsl:variable name="selectName" select="@ref"/>
         <xsl:variable name="items" select="count(//xform:item)"/>
         <legend>
@@ -38,12 +64,12 @@
             </xsl:when>
             <xsl:when test="$items &lt; 5">
                 <select name="{$selectName}" multiple="multiple" size="{$items}">
-                    <xsl:apply-templates/>
+                    <xsl:apply-templates mode="basic"/>
                 </select>
             </xsl:when>
             <xsl:otherwise>
                 <select name="{$selectName}" multiple="multiple" size="5">
-                    <xsl:apply-templates />
+                    <xsl:apply-templates  mode="basic"/>
                 </select>
             </xsl:otherwise>
         </xsl:choose>
@@ -51,7 +77,7 @@
 
 
     <!-- options for select -->
-    <xsl:template match="xform:item">
+    <xsl:template match="xform:item" mode="basic">
         <xsl:variable name="optionValue" select="xform:value"/>
         <xsl:choose>
             <xsl:when test="@selected = 'true'">
@@ -77,7 +103,7 @@
 
 
 
-    <xsl:template match="xform:group">
+    <xsl:template match="xform:group" mode="basic">
         <xsl:variable name="selectcount" select="count(xform:select)"/>
 
         <legend>
@@ -87,7 +113,7 @@
         <xsl:choose>
             <xsl:when test="$selectcount &lt; '1'">
                 <table class="dynamic">
-                    <xsl:apply-templates/>
+                    <xsl:apply-templates mode="basic"/>
                 </table>
             </xsl:when>
             <xsl:otherwise>
@@ -152,7 +178,7 @@
     </xsl:template>
 
 
-    <xsl:template match="xform:input">
+    <xsl:template match="xform:input" mode="basic">
         <xsl:variable name="inputValue" select="xform:value"/>
         <xsl:variable name="inputName" select="@ref"/>
         <xsl:variable name="label" select="xform:label"/>
@@ -181,7 +207,7 @@
     </xsl:template>
 
 
-    <xsl:template match="xform:label">
+    <xsl:template match="xform:label" mode="basic">
         <!-- do nothing here -->
     </xsl:template>
 

http://dive4elements.wald.intevation.org