Mercurial > dive4elements > river
comparison flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl @ 2505:87ac5c532523
First part of the UI for fixing analysis parameter.
flys-client/trunk@4350 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 07 May 2012 13:22:43 +0000 |
parents | f905c936ffff |
children | 1b6270b00c91 |
comparison
equal
deleted
inserted
replaced
2504:425bc486a40f | 2505:87ac5c532523 |
---|---|
5 | 5 |
6 <xsl:output method="html" encoding="UTF-8"/> | 6 <xsl:output method="html" encoding="UTF-8"/> |
7 | 7 |
8 <xsl:param name="project-uuid">de3f3307-3429-4ff9-8f43-3fb2fcf21b27</xsl:param> | 8 <xsl:param name="project-uuid">de3f3307-3429-4ff9-8f43-3fb2fcf21b27</xsl:param> |
9 <xsl:param name="render-checkboxes" select="true()"/> | 9 <xsl:param name="render-checkboxes" select="true()"/> |
10 <xsl:param name="callback"/> | |
10 | 11 |
11 <xsl:template name="percent"> | 12 <xsl:template name="percent"> |
12 <xsl:param name="sector"/> | 13 <xsl:param name="sector"/> |
13 <xsl:variable name="rfrom" select="number(/fixings/river/@from)"/> | 14 <xsl:variable name="rfrom" select="number(/fixings/river/@from)"/> |
14 <xsl:variable name="rto" select="number(/fixings/river/@to)"/> | 15 <xsl:variable name="rto" select="number(/fixings/river/@to)"/> |
84 <xsl:text disable-output-escaping="yes"><![CDATA[ ]]></xsl:text> | 85 <xsl:text disable-output-escaping="yes"><![CDATA[ ]]></xsl:text> |
85 </div> | 86 </div> |
86 </xsl:template> | 87 </xsl:template> |
87 | 88 |
88 <xsl:template match="event"> | 89 <xsl:template match="event"> |
89 <tr> | 90 <tr id="{@cid}"> |
90 <xsl:if test="$render-checkboxes"> | 91 <xsl:if test="$render-checkboxes"> |
91 <td> | 92 <td> |
92 <input type="checkbox" name="{$project-uuid}:{@cid}"/> | 93 <input type="checkbox" name="{$project-uuid}:{@cid}" onclick="{$callback}"/> |
93 </td> | 94 </td> |
94 </xsl:if> | 95 </xsl:if> |
95 <td> | 96 <td> |
96 <xsl:apply-templates mode="sectors"/> | 97 <xsl:apply-templates mode="sectors"/> |
97 </td> | 98 </td> |
105 <xsl:template match="events"> | 106 <xsl:template match="events"> |
106 <table width="95%" border="1" cellspacing="0" cellpadding="0" | 107 <table width="95%" border="1" cellspacing="0" cellpadding="0" |
107 style="font-size: 11pt;font-family:Arial;Verdana,sans-serif"> | 108 style="font-size: 11pt;font-family:Arial;Verdana,sans-serif"> |
108 <colgroup> | 109 <colgroup> |
109 <xsl:if test="$render-checkboxes"> | 110 <xsl:if test="$render-checkboxes"> |
110 <col width="1em"/> | 111 <col width="20px"/> |
111 </xsl:if> | 112 </xsl:if> |
112 <col width="*"/> | 113 <col width="*"/> |
113 <col width="11em"/> | 114 <col width="90px"/> |
114 </colgroup> | 115 </colgroup> |
115 <xsl:apply-templates/> | 116 <xsl:apply-templates/> |
116 </table> | 117 </table> |
117 </xsl:template> | 118 </xsl:template> |
118 | 119 |