comparison gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl @ 404:3a286c9e186c

Disabled step-back functionality. gnv/trunk@575 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 19 Jan 2010 16:34:28 +0000
parents 002a4d38c16d
children 02dc597b9b9a
comparison
equal deleted inserted replaced
403:24a6c0cb0a62 404:3a286c9e186c
20 20
21 <!-- match multi select boxes --> 21 <!-- match multi select boxes -->
22 <xsl:template match="xform:select"> 22 <xsl:template match="xform:select">
23 <xsl:variable name="state" select="@art:state" /> 23 <xsl:variable name="state" select="@art:state" />
24 <tr> 24 <tr>
25 <!-- TODO Remove this link to render links to jump back in history
25 <td class="historyback"> 26 <td class="historyback">
26 <xsl:if test="$state != ''"> 27 <xsl:if test="$state != ''">
27 <a href="{$back-url}?target={$state}">[X]</a> 28 <a href="{$back-url}?target={$state}">[X]</a>
28 </xsl:if> 29 </xsl:if>
29 </td> 30 </td>
31 -->
30 <th class="parameter"><xsl:value-of select="xform:label" /></th> 32 <th class="parameter"><xsl:value-of select="xform:label" /></th>
31 <td><xsl:apply-templates select="xform:choices" /></td> 33 <td><xsl:apply-templates select="xform:choices" /></td>
32 </tr> 34 </tr>
33 </xsl:template> 35 </xsl:template>
34 36
36 <!-- match select boxes --> 38 <!-- match select boxes -->
37 <xsl:template match="xform:select1"> 39 <xsl:template match="xform:select1">
38 <xsl:variable name="state" select="@art:state" /> 40 <xsl:variable name="state" select="@art:state" />
39 <xsl:variable name="fis" select="@art:fis" /> 41 <xsl:variable name="fis" select="@art:fis" />
40 <tr> 42 <tr>
43 <!-- TODO Remove this link to render links to jump back in history
41 <td class="historyback"> 44 <td class="historyback">
42 <xsl:if test="$state != ''"> 45 <xsl:if test="$state != ''">
43 <a href="{$back-url}?target={$state}">[X]</a> 46 <a href="{$back-url}?target={$state}">[X]</a>
44 </xsl:if> 47 </xsl:if>
45 <xsl:if test="$fis"> 48 <xsl:if test="$fis">
46 <a href="{$selectfis}">[X]</a> 49 <a href="{$selectfis}">[X]</a>
47 </xsl:if> 50 </xsl:if>
48 </td> 51 </td>
49 <th class="parameter"><xsl:value-of select="xform:label" /></th> 52 -->
50 <td><xsl:apply-templates select="xform:choices" /></td> 53 <!-- TODO Remove when-clause which disables the fis select box .
54 TODO Just render the 'otherwise' part -->
55 <xsl:choose>
56 <xsl:when test="$fis">
57 <th></th>
58 <td></td>
59 </xsl:when>
60 <xsl:otherwise>
61 <th class="parameter"><xsl:value-of select="xform:label" /></th>
62 <td><xsl:apply-templates select="xform:choices" /></td>
63 </xsl:otherwise>
64 </xsl:choose>
51 </tr> 65 </tr>
52 </xsl:template> 66 </xsl:template>
53 67
54 68
55 <!-- match item list of select boxes or multi select boxes --> 69 <!-- match item list of select boxes or multi select boxes -->
68 82
69 <!-- match group items --> 83 <!-- match group items -->
70 <xsl:template match="xform:group"> 84 <xsl:template match="xform:group">
71 <xsl:variable name="state" select="@art:state" /> 85 <xsl:variable name="state" select="@art:state" />
72 <tr> 86 <tr>
87 <!-- TODO Remove this link to render links to jump back in history
73 <td class="historyback"> 88 <td class="historyback">
74 <xsl:if test="$state != ''"> 89 <xsl:if test="$state != ''">
75 <a href="{$back-url}?target={$state}">[X]</a> 90 <a href="{$back-url}?target={$state}">[X]</a>
76 </xsl:if> 91 </xsl:if>
77 </td> 92 </td>
93 -->
78 <th class="parameter"><xsl:value-of select="xform:label" /></th> 94 <th class="parameter"><xsl:value-of select="xform:label" /></th>
79 <td> 95 <td>
80 <table><xsl:apply-templates select="xform:input" /></table> 96 <table><xsl:apply-templates select="xform:input" /></table>
81 </td> 97 </td>
82 </tr> 98 </tr>

http://dive4elements.wald.intevation.org