comparison 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
comparison
equal deleted inserted replaced
717:7731cbb3c7b6 718:5c36da3d9e17
21 21
22 <!-- multi select --> 22 <!-- multi select -->
23 <xsl:template match="xform:select"> 23 <xsl:template match="xform:select">
24 <xsl:variable name="selectName" select="@ref"/> 24 <xsl:variable name="selectName" select="@ref"/>
25 <xsl:variable name="items" select="count(//xform:item)"/> 25 <xsl:variable name="items" select="count(//xform:item)"/>
26 <legend>
27 <xsl:value-of select="xform:label"/>
28 </legend>
26 29
27 <xsl:choose> 30 <xsl:choose>
28 <xsl:when test="$items = 1"> 31 <xsl:when test="$items = 1">
29 <select name="{$selectName}" multiple="multiple" size="{$items}"> 32 <select name="{$selectName}" multiple="multiple" size="{$items}">
30 <xsl:apply-templates mode="selected"/> 33 <xsl:apply-templates mode="selected"/>
77 <legend> 80 <legend>
78 <xsl:value-of select="xform:label"/> 81 <xsl:value-of select="xform:label"/>
79 </legend> 82 </legend>
80 83
81 <xsl:choose> 84 <xsl:choose>
82 <xsl:when test="$selectcount &lt; '2'"> 85 <xsl:when test="$selectcount &lt; '1'">
83 <table class="dynamic"> 86 <table class="dynamic">
84 <xsl:apply-templates/> 87 <xsl:apply-templates/>
85 </table> 88 </table>
86 </xsl:when> 89 </xsl:when>
87 <xsl:otherwise> 90 <xsl:otherwise>

http://dive4elements.wald.intevation.org