diff 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
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl	Tue Jan 19 14:50:39 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl	Tue Jan 19 16:34:28 2010 +0000
@@ -22,11 +22,13 @@
     <xsl:template match="xform:select">
         <xsl:variable name="state" select="@art:state" />
         <tr>
+            <!-- TODO Remove this link to render links to jump back in history
             <td class="historyback">
                 <xsl:if test="$state != ''">
                     <a href="{$back-url}?target={$state}">[X]</a>
                 </xsl:if>
             </td>
+            -->
             <th class="parameter"><xsl:value-of select="xform:label" /></th>
             <td><xsl:apply-templates select="xform:choices" /></td>
         </tr>
@@ -38,6 +40,7 @@
         <xsl:variable name="state" select="@art:state" />
         <xsl:variable name="fis" select="@art:fis" />
         <tr>
+            <!-- TODO Remove this link to render links to jump back in history
             <td class="historyback">
                 <xsl:if test="$state != ''">
                     <a href="{$back-url}?target={$state}">[X]</a>
@@ -46,8 +49,19 @@
                     <a href="{$selectfis}">[X]</a>
                 </xsl:if>
             </td>
-            <th class="parameter"><xsl:value-of select="xform:label" /></th>
-            <td><xsl:apply-templates select="xform:choices" /></td>
+            -->
+            <!-- TODO Remove when-clause which disables the fis select box .
+                 TODO Just render the 'otherwise' part -->
+            <xsl:choose>
+                <xsl:when test="$fis">
+                    <th></th>
+                    <td></td>
+                </xsl:when>
+                <xsl:otherwise>
+                    <th class="parameter"><xsl:value-of select="xform:label" /></th>
+                    <td><xsl:apply-templates select="xform:choices" /></td>
+                </xsl:otherwise>
+            </xsl:choose>
         </tr>
     </xsl:template>
 
@@ -70,11 +84,13 @@
     <xsl:template match="xform:group">
         <xsl:variable name="state" select="@art:state" />
         <tr>
+            <!-- TODO Remove this link to render links to jump back in history
             <td class="historyback">
                 <xsl:if test="$state != ''">
                     <a href="{$back-url}?target={$state}">[X]</a>
                 </xsl:if>
             </td>
+            -->
             <th class="parameter"><xsl:value-of select="xform:label" /></th>
             <td>
                 <table><xsl:apply-templates select="xform:input" /></table>

http://dive4elements.wald.intevation.org