Mercurial > dive4elements > gnv-client
diff gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 688:f3f433053bdd
Changed the behavior of parameter-measurement-matrix (issue210).
gnv/trunk@893 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 09 Apr 2010 09:50:12 +0000 |
parents | ef1ff5fdab5b |
children | 271ec4d11a9f |
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Fri Apr 09 07:45:18 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Fri Apr 09 09:50:12 2010 +0000 @@ -92,6 +92,10 @@ <!-- take the first select node to render column labels --> <xsl:apply-templates select="xform:select[1]/xform:item" mode="matrixHeader"/> </tr> + <tr> + <td><!-- nothing here --></td> + <xsl:apply-templates select="xform:select[1]/xform:item" mode="matrixSelectable"/> + </tr> <!-- render matrix' body --> <xsl:apply-templates select="xform:select" mode="matrix" /> </table> @@ -106,6 +110,15 @@ </td> </xsl:template> + <!-- --> + <xsl:template match="xform:item" mode="matrixSelectable"> + <xsl:variable name="value" select="xform:value/text()"/> + <xsl:variable name="name" select="@ref"/> + <td class="matrixSelectableHeader"> + <input type="checkbox" name="{$name}" value="{$value}" /> + </td> + </xsl:template> + <!-- render the first column with parameter names into matrix --> <xsl:template match="xform:select" mode="matrix"> @@ -121,13 +134,13 @@ <xsl:template match="xform:item" mode="matrix"> <xsl:variable name="value" select="xform:value/text()"/> <xsl:variable name="name" select="@ref"/> - <td> + <td class="matrixContent"> <xsl:choose> <xsl:when test="@disabled = 'true'"> - <input type="checkbox" name="{$name}" value="{$value}" disabled="true"></input> + <img src="./images/delete.png"/> </xsl:when> <xsl:otherwise> - <input type="checkbox" name="{$name}" value="{$value}"></input> + <img src="./images/tick.png"/> </xsl:otherwise> </xsl:choose> </td>