changeset 1004:a0d16ccb82ba

Render direct links as list. gnv/trunk@1214 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 15 Jun 2010 05:26:44 +0000
parents cf5ab5eaeb46
children 397b4cb8589b
files gnv/ChangeLog gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl
diffstat 2 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Mon Jun 14 21:10:14 2010 +0000
+++ b/gnv/ChangeLog	Tue Jun 15 05:26:44 2010 +0000
@@ -1,3 +1,8 @@
+2010-06-15	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/webapp/WEB-INF/config/templates/describe-ui.xsl:
+	  Render direct links as list.
+
 2010-06-14  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	* pom.xml: The svn revision number is written to MANIFEST.MF while creating
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Mon Jun 14 21:10:14 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Tue Jun 15 05:26:44 2010 +0000
@@ -48,7 +48,7 @@
         <legend><xsl:value-of select="xform:label"/></legend>
         <xsl:choose>
             <xsl:when test="$items &lt; 6">
-                <xsl:apply-templates mode="direct-link"/>
+                <ul><xsl:apply-templates mode="direct-link"/></ul>
             </xsl:when>
             <xsl:otherwise>
                 <select name="{$selectName}">
@@ -64,11 +64,8 @@
     <xsl:template match="xform:item" mode="direct-link">
         <xsl:variable name="optionValue" select="xform:value"/>
         <xsl:variable name="selectName" select="ancestor::xform:select1/@ref"/>
-        <a class="linkButton"
-            onclick="displayOverlay()"
-            href="{$next-url}?{$selectName}={$optionValue}"><xsl:value-of select="xform:label"/></a>
-        <br/>
-        <br/>
+        <li><a onclick="displayOverlay()"
+           href="{$next-url}?{$selectName}={$optionValue}"><xsl:value-of select="xform:label"/></a></li>
     </xsl:template>
 
     <!-- multi select -->

http://dive4elements.wald.intevation.org