comparison 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
comparison
equal deleted inserted replaced
407:55dae5bb76db 408:b5733f9f386b
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" 2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns="http://www.w3.org/2002/xforms" 4 xmlns="http://www.w3.org/2002/xforms"
5 xmlns:xform="http://www.w3.org/2002/xforms" 5 xmlns:xform="http://www.w3.org/2002/xforms"
6 xmlns:art="http://www.intevation.de/2009/artifacts"> 6 xmlns:art="http://www.intevation.de/2009/artifacts"
7 exclude-result-prefixes="xform art">
7 8
8 <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" /> 9 <xsl:output
10 method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" />
9 11
10 <xsl:param name="back-url"/> 12 <xsl:param name="back-url"/>
11 <xsl:param name="selectfis"/> 13 <xsl:param name="selectfis"/>
14 <xsl:param name="edit">bearbeiten</xsl:param>
12 15
13 <!-- start parsing document --> 16 <!-- start parsing document -->
14 <xsl:template match="*"> 17 <xsl:template match="*">
15 <table class="static"> 18 <div id="down">
16 <xsl:apply-templates /> 19 <table class="static">
17 </table> 20 <xsl:apply-templates />
21 </table>
22 </div>
18 </xsl:template> 23 </xsl:template>
19 24
20 25
21 <!-- match multi select boxes --> 26 <!-- match multi select boxes -->
22 <xsl:template match="xform:select"> 27 <xsl:template match="xform:select">
23 <xsl:variable name="state" select="@art:state" /> 28 <xsl:variable name="state" select="@art:state" />
24 <tr> 29 <tr>
25 <!-- TODO Remove this link to render links to jump back in history
26 <td class="historyback">
27 <xsl:if test="$state != ''">
28 <a href="{$back-url}?target={$state}">[X]</a>
29 </xsl:if>
30 </td>
31 -->
32 <th class="parameter"><xsl:value-of select="xform:label" /></th> 30 <th class="parameter"><xsl:value-of select="xform:label" /></th>
33 <td><xsl:apply-templates select="xform:choices" /></td> 31 <td><xsl:apply-templates select="xform:choices" /></td>
32 <td class="historyback">
33 <!--
34 <xsl:if test="$state != ''">
35 <a href="{$back-url}?target={$state}">
36 <img title="{$edit}" alt="{$edit}" src="images/back_button.png"/>
37 </a>
38 </xsl:if>
39 -->
40 </td>
34 </tr> 41 </tr>
35 </xsl:template> 42 </xsl:template>
36 43
37 44
38 <!-- match select boxes --> 45 <!-- match select boxes -->
39 <xsl:template match="xform:select1"> 46 <xsl:template match="xform:select1">
40 <xsl:variable name="state" select="@art:state" /> 47 <xsl:variable name="state" select="@art:state" />
41 <xsl:variable name="fis" select="@art:fis" /> 48 <xsl:variable name="fis" select="@art:fis" />
42 <tr> 49 <tr>
43 <!-- TODO Remove this link to render links to jump back in history 50 <th class="parameter"><xsl:value-of select="xform:label" /></th>
51 <td><xsl:apply-templates select="xform:choices" /></td>
44 <td class="historyback"> 52 <td class="historyback">
53 <!--
45 <xsl:if test="$state != ''"> 54 <xsl:if test="$state != ''">
46 <a href="{$back-url}?target={$state}">[X]</a> 55 <a href="{$back-url}?target={$state}">
56 <img title="{$edit}" alt="{$edit}" src="images/back_button.png"/>
57 </a>
47 </xsl:if> 58 </xsl:if>
59 -->
48 <xsl:if test="$fis"> 60 <xsl:if test="$fis">
49 <a href="{$selectfis}">[X]</a> 61 <a href="{$selectfis}"><img title="{$edit}" alt="{$edit}" src="images/back_button.png"/></a>
50 </xsl:if> 62 </xsl:if>
51 </td> 63 </td>
52 -->
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 </xsl:when>
58 <xsl:otherwise>
59 <th class="parameter"><xsl:value-of select="xform:label" /></th>
60 <td><xsl:apply-templates select="xform:choices" /></td>
61 </xsl:otherwise>
62 </xsl:choose>
63 </tr> 64 </tr>
64 </xsl:template> 65 </xsl:template>
65 66
66 67
67 <!-- match item list of select boxes or multi select boxes --> 68 <!-- match item list of select boxes or multi select boxes -->
80 81
81 <!-- match group items --> 82 <!-- match group items -->
82 <xsl:template match="xform:group"> 83 <xsl:template match="xform:group">
83 <xsl:variable name="state" select="@art:state" /> 84 <xsl:variable name="state" select="@art:state" />
84 <tr> 85 <tr>
85 <!-- TODO Remove this link to render links to jump back in history
86 <td class="historyback">
87 <xsl:if test="$state != ''">
88 <a href="{$back-url}?target={$state}">[X]</a>
89 </xsl:if>
90 </td>
91 -->
92 <th class="parameter"><xsl:value-of select="xform:label" /></th> 86 <th class="parameter"><xsl:value-of select="xform:label" /></th>
93 <td> 87 <td>
94 <table><xsl:apply-templates select="xform:input" /></table> 88 <table><xsl:apply-templates select="xform:input" /></table>
89 </td>
90 <td class="historyback">
91 <!--
92 <xsl:if test="$state != ''">
93 <a href="{$back-url}?target={$state}"><img title="{$edit}" alt="{$edit}" src="images/back_button.png"/></a>
94 </xsl:if>
95 -->
95 </td> 96 </td>
96 </tr> 97 </tr>
97 </xsl:template> 98 </xsl:template>
98 99
99 100

http://dive4elements.wald.intevation.org