Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
<#--
2
/*
3
 * $Id: Action.java 502296 2007-02-01 17:33:39Z niallp $
4
 *
5
 * Licensed to the Apache Software Foundation (ASF) under one
6
 * or more contributor license agreements.  See the NOTICE file
7
 * distributed with this work for additional information
8
 * regarding copyright ownership.  The ASF licenses this file
9
 * to you under the Apache License, Version 2.0 (the
10
 * "License"); you may not use this file except in compliance
11
 * with the License.  You may obtain a copy of the License at
12
 *
13
 *  http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing,
16
 * software distributed under the License is distributed on an
17
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
 * KIND, either express or implied.  See the License for the
19
 * specific language governing permissions and limitations
20
 * under the License.
21
 */
22
-->
23
<#assign hasFieldErrors = fieldErrors?exists && fieldErrors[parameters.name]?exists/>
24
<#if hasFieldErrors>
25
<#list fieldErrors[parameters.name] as error>
26
<tr<#rt/>
27
<#if parameters.id?exists>
28
 errorFor="${parameters.id}"<#rt/>
29
</#if>
30
>
31
    <td align="left" valign="top" colspan="2"><#rt/>
32
        <span class="errorMessage">${error?html}</span><#t/>
33
    </td><#lt/>
34
</tr>
35
</#list>
36
</#if>
37
<#if parameters.labelposition?default("") == 'top'>
38
<tr>
39
    <td colspan="2">
40
<#if parameters.label?exists> <label<#t/>
41
<#if parameters.id?exists>
42
 for="${parameters.id?html}"<#rt/>
43
</#if>
44
<#if hasFieldErrors>
45
 class="checkboxErrorLabel"<#rt/>
46
<#else>
47
 class="checkboxLabel"<#rt/>
48
</#if>
49
>
50
<#if parameters.required?default(false) && parameters.requiredposition?default("right") != 'right'>
51
        <span class="required">*</span><#t/>
52
</#if>
53
${parameters.label?html}<#t/>
54
<#if parameters.required?default(false) && parameters.requiredposition?default("right") == 'right'>
55
 <span class="required">*</span><#t/>
56
</#if>
57
:<#t/>
58
<#if parameters.tooltip?exists>
59
    <#include "/${parameters.templateDir}/xhtml/tooltip.ftl" />
60
</#if>
61
</label><#t/>
62
</#if>
63
    </td>
64
</tr>
65
<tr>
66
    <td colspan="2">
67
        <#include "/${parameters.templateDir}/simple/checkbox.ftl" />
68
<#else>
69
<tr>
70
	<td valign="top" align="right">
71
<#if parameters.labelposition?default("") == 'left'>
72
<#if parameters.label?exists> <label<#t/>
73
<#if parameters.id?exists>
74
 for="${parameters.id?html}"<#rt/>
75
</#if>
76
<#if hasFieldErrors>
77
 class="checkboxErrorLabel"<#rt/>
78
<#else>
79
 class="checkboxLabel"<#rt/>
80
</#if>
81
>
82
<#if parameters.required?default(false) && parameters.requiredposition?default("right") != 'right'>
83
        <span class="required">*</span><#t/>
84
</#if>
85
${parameters.label?html}<#t/>
86
<#if parameters.required?default(false) && parameters.requiredposition?default("right") == 'right'>
87
 <span class="required">*</span><#t/>
88
</#if>
89
:<#t/>
90
<#if parameters.tooltip?exists>
91
    <#include "/${parameters.templateDir}/xhtml/tooltip.ftl" />
92
</#if>
93
</label><#t/>
94
</#if>
95
</#if>
96
<#if parameters.labelposition?default("") == 'right'>
97
    <#if parameters.required?default(false)>
98
        <span class="required">*</span><#t/>
99
    </#if>
100
    <#if parameters.tooltip?exists>
101
        <#include "/${parameters.templateDir}/xhtml/tooltip.ftl" />
102
    </#if>
103
</#if>
104
    </td>
105
    <td valign="top" align="left">
106
 
107
<#if parameters.labelposition?default("") != 'top'>
108
                	<#include "/${parameters.templateDir}/simple/checkbox.ftl" />
109
</#if>                    
110
<#if parameters.labelposition?default("") != 'top' && parameters.labelposition?default("") != 'left'>
111
<#if parameters.label?exists> <label<#t/>
112
<#if parameters.id?exists>
113
 for="${parameters.id?html}"<#rt/>
114
</#if>
115
<#if hasFieldErrors>
116
 class="checkboxErrorLabel"<#rt/>
117
<#else>
118
 class="checkboxLabel"<#rt/>
119
</#if>
120
>${parameters.label?html}</label><#rt/>
121
</#if>
122
</#if>
123
</#if>
124
 <#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" /><#nt/>