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
<#--
24
NOTE: The 'header' stuff that follows is in this one file for checkbox due to the fact
25
that for checkboxes we do not want the label field to show up as checkboxes handle their own
26
lables
27
-->
28
<#assign hasFieldErrors = fieldErrors?exists && fieldErrors[parameters.name]?exists/>
29
<div <#rt/><#if parameters.id?exists>id="wwgrp_${parameters.id}"<#rt/></#if> class="wwgrp">
30
 
31
<#if hasFieldErrors>
32
<div <#rt/><#if parameters.id?exists>id="wwerr_${parameters.id}"<#rt/></#if> class="wwerr">
33
<#list fieldErrors[parameters.name] as error>
34
    <div<#rt/>
35
    <#if parameters.id?exists>
36
     errorFor="${parameters.id}"<#rt/>
37
    </#if>
38
    class="errorMessage">
39
             ${error?html}
40
    </div><#t/>
41
</#list>
42
</div><#t/>
43
</#if>
44
<#if parameters.labelposition?default("") == 'left'>
45
<span <#rt/>
46
<#if parameters.id?exists>id="wwlbl_${parameters.id}"<#rt/></#if> class="wwlbl">
47
<label<#t/>
48
<#if parameters.id?exists>
49
 for="${parameters.id?html}"<#rt/>
50
</#if>
51
<#if hasFieldErrors>
52
 class="checkboxErrorLabel"<#rt/>
53
<#else>
54
 class="label"<#rt/>
55
</#if>
56
>${parameters.label?html}</label><#rt/>
57
</span>
58
</#if>
59
 
60
<#if parameters.labelposition?default("top") == 'top'>
61
<div <#rt/>
62
<#else>
63
<span <#rt/>
64
</#if>
65
<#if parameters.id?exists>id="wwctrl_${parameters.id}"<#rt/></#if> class="wwctrl">
66
 
67
<#if parameters.required?default(false)>
68
        <span class="required">*</span><#t/>
69
</#if>
70
 
71
<#include "/${parameters.templateDir}/simple/checkbox.ftl" />
72
<#if parameters.labelposition?default("") != 'left'>
73
<#if parameters.labelposition?default("top") == 'top'>
74
</div> <#rt/>
75
<#else>
76
</span>  <#rt/>
77
</#if>
78
<#if parameters.label?exists>
79
<#if parameters.labelposition?default("top") == 'top'>
80
<div <#rt/>
81
<#else>
82
<span <#rt/>
83
</#if>
84
<#if parameters.id?exists>id="wwlbl_${parameters.id}"<#rt/></#if> class="wwlbl">
85
<label<#t/>
86
<#if parameters.id?exists>
87
 for="${parameters.id?html}"<#rt/>
88
</#if>
89
<#if hasFieldErrors>
90
 class="checkboxErrorLabel"<#rt/>
91
<#else>
92
 class="checkboxLabel"<#rt/>
93
</#if>
94
>${parameters.label?html}</label><#rt/>
95
</#if>
96
</#if>
97
<#if parameters.label?exists>
98
<#if parameters.labelposition?default("top") == 'top'>
99
</div> <#rt/>
100
<#else>
101
</span> <#rt/>
102
</#if>
103
</#if>
104
</div>