diff gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 718:5c36da3d9e17

Fixed missing legends of parameter select boxes. The measurement matrix will be rendered for a single parameter as well, now. (issue225) gnv/trunk@993 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 27 Apr 2010 08:44:22 +0000
parents 271ec4d11a9f
children 13de46229f63
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Mon Apr 26 14:27:40 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Tue Apr 27 08:44:22 2010 +0000
@@ -23,6 +23,9 @@
     <xsl:template match="xform:select">
         <xsl:variable name="selectName" select="@ref"/>
         <xsl:variable name="items" select="count(//xform:item)"/>
+        <legend>
+            <xsl:value-of select="xform:label"/>
+        </legend>
 
         <xsl:choose>
             <xsl:when test="$items = 1">
@@ -79,7 +82,7 @@
         </legend>
 
         <xsl:choose>
-            <xsl:when test="$selectcount &lt; '2'">
+            <xsl:when test="$selectcount &lt; '1'">
                 <table class="dynamic">
                     <xsl:apply-templates/>
                 </table>

http://dive4elements.wald.intevation.org