Mercurial > dive4elements > gnv-client
diff gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl @ 408:b5733f9f386b
Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
gnv/trunk@594 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 22 Jan 2010 09:49:34 +0000 |
parents | 02dc597b9b9a |
children | 8e39c74f9fb6 |
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl Wed Jan 20 14:44:39 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl Fri Jan 22 09:49:34 2010 +0000 @@ -3,18 +3,23 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/2002/xforms" xmlns:xform="http://www.w3.org/2002/xforms" - xmlns:art="http://www.intevation.de/2009/artifacts"> + xmlns:art="http://www.intevation.de/2009/artifacts" + exclude-result-prefixes="xform art"> - <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" /> + <xsl:output + method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" /> <xsl:param name="back-url"/> <xsl:param name="selectfis"/> + <xsl:param name="edit">bearbeiten</xsl:param> <!-- start parsing document --> <xsl:template match="*"> - <table class="static"> - <xsl:apply-templates /> - </table> + <div id="down"> + <table class="static"> + <xsl:apply-templates /> + </table> + </div> </xsl:template> @@ -22,15 +27,17 @@ <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> + <td class="historyback"> + <!-- + <xsl:if test="$state != ''"> + <a href="{$back-url}?target={$state}"> + <img title="{$edit}" alt="{$edit}" src="images/back_button.png"/> + </a> + </xsl:if> + --> + </td> </tr> </xsl:template> @@ -40,26 +47,20 @@ <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 + <th class="parameter"><xsl:value-of select="xform:label" /></th> + <td><xsl:apply-templates select="xform:choices" /></td> <td class="historyback"> + <!-- <xsl:if test="$state != ''"> - <a href="{$back-url}?target={$state}">[X]</a> + <a href="{$back-url}?target={$state}"> + <img title="{$edit}" alt="{$edit}" src="images/back_button.png"/> + </a> </xsl:if> + --> <xsl:if test="$fis"> - <a href="{$selectfis}">[X]</a> + <a href="{$selectfis}"><img title="{$edit}" alt="{$edit}" src="images/back_button.png"/></a> </xsl:if> </td> - --> - <!-- TODO Remove when-clause which disables the fis select box . - TODO Just render the 'otherwise' part --> - <xsl:choose> - <xsl:when test="$fis"> - </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> @@ -82,17 +83,17 @@ <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> </td> + <td class="historyback"> + <!-- + <xsl:if test="$state != ''"> + <a href="{$back-url}?target={$state}"><img title="{$edit}" alt="{$edit}" src="images/back_button.png"/></a> + </xsl:if> + --> + </td> </tr> </xsl:template>