Revision 4258
Added by daigle over 16 years ago
lib/admin/admin.css | ||
---|---|---|
73 | 73 |
margin-right: auto; |
74 | 74 |
} |
75 | 75 |
|
76 |
.config-section-header { |
|
77 |
font-size: 16pt; |
|
78 |
font-weight: bold; |
|
79 |
border-bottom: solid #dddddd 1px; |
|
80 |
} |
|
81 |
|
|
82 | 76 |
.config-line { |
83 | 77 |
color: #dddddd; |
84 | 78 |
background-color: #dddddd; |
85 | 79 |
height: 1px; |
86 | 80 |
} |
87 | 81 |
|
88 |
.config-section { |
|
89 |
display: table; |
|
90 |
width: 100% |
|
91 |
} |
|
92 |
|
|
93 |
.config-section-hiding { |
|
94 |
display: none; |
|
95 |
width: 100% |
|
96 |
} |
|
97 |
|
|
98 |
.config-checkbox { |
|
99 |
width: 25px; |
|
100 |
vertical-align: middle; |
|
101 |
} |
|
102 |
|
|
103 |
.config-checkbox-label { |
|
104 |
text-align: left; |
|
105 |
vertical-align: middle; |
|
106 |
width: 600px; |
|
107 |
} |
|
108 |
|
|
109 |
.config-property-label { |
|
110 |
text-align: right; |
|
111 |
vertical-align: middle; |
|
112 |
width: 200px; |
|
113 |
padding-right: 8px; |
|
114 |
padding-top: 5px; |
|
115 |
} |
|
116 |
|
|
117 |
.config-property-input { |
|
118 |
text-align: left; |
|
119 |
vertical-align: middle; |
|
120 |
width: 418px; |
|
121 |
padding-top: 5px; |
|
122 |
} |
|
123 |
|
|
124 |
.config-property-description { |
|
125 |
text-align: left; |
|
126 |
font-size: 12; |
|
127 |
border-bottom: solid #C0C0C0; |
|
128 |
border-bottom-width: 1px; |
|
129 |
border-left: solid #C0C0C0; |
|
130 |
border-left-width: 1px; |
|
131 |
vertical-align: middle; |
|
132 |
} |
|
133 |
|
|
134 |
.config-question-mark { |
|
135 |
text-align: left; |
|
136 |
vertical-align: middle; |
|
137 |
padding-top: 5px; |
|
138 |
} |
|
139 |
|
|
140 | 82 |
.login-input { |
141 | 83 |
width: 150px; |
142 | 84 |
} |
... | ... | |
251 | 193 |
|
252 | 194 |
.configure-link { |
253 | 195 |
font-size: 11pt; |
254 |
} |
|
196 |
} |
|
197 |
|
|
198 |
.hiding-section { |
|
199 |
display: none; |
|
200 |
width: 100%; |
|
201 |
margin-left: 2em; |
|
202 |
} |
|
203 |
|
|
204 |
.checkradio { |
|
205 |
text-align: left; |
|
206 |
vertical-align: middle; |
|
207 |
width: 3em; |
|
208 |
} |
|
209 |
|
|
210 |
.checkradio-label { |
|
211 |
text-align: left; |
|
212 |
vertical-align: middle; |
|
213 |
margin-left: 1em; |
|
214 |
} |
|
215 |
|
|
216 |
.checkradio-label-inline { |
|
217 |
display: inline; |
|
218 |
vertical-align: middle; |
|
219 |
} |
|
220 |
|
|
221 |
.checkradio-description { |
|
222 |
margin-left: 4.25em; |
|
223 |
color: gray; |
|
224 |
font-size: 11; |
|
225 |
} |
|
226 |
|
|
227 |
.textinput { |
|
228 |
margin-left: 1em; |
|
229 |
vertical-align: middle; |
|
230 |
width: 30em; |
|
231 |
} |
|
232 |
|
|
233 |
.textinput-label { |
|
234 |
text-align: right; |
|
235 |
vertical-align: middle; |
|
236 |
float: left; |
|
237 |
width: 200px; |
|
238 |
} |
|
239 |
|
|
240 |
.textinput-description { |
|
241 |
margin-left: 210px; |
|
242 |
color: gray; |
|
243 |
font-size: 11; |
|
244 |
} |
|
245 |
|
|
246 |
.question-mark { |
|
247 |
float: right; |
|
248 |
vertical-align: middle; |
|
249 |
} |
|
250 |
|
|
251 |
.form-row { |
|
252 |
margin-top: .5em; |
|
253 |
} |
|
254 |
|
lib/admin/ldap-configuration.jsp | ||
---|---|---|
60 | 60 |
%> |
61 | 61 |
<h3><%= metaDataGroup.getName() %></h3> |
62 | 62 |
<hr class="config-line"> |
63 |
<table class="config-section"> |
|
64 | 63 |
<% |
65 | 64 |
// get all the properties in this group |
66 | 65 |
Map<Integer, MetaDataProperty> propertyMap = |
... | ... | |
72 | 71 |
String fieldType = metaDataProperty.getFieldType(); |
73 | 72 |
if (fieldType.equals("select")) { |
74 | 73 |
%> |
75 |
<tr> |
|
76 |
<td class="config-property-label"> |
|
77 |
<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
78 |
</td> |
|
79 |
<td class="config-property-input" > |
|
80 |
<select name="<%= metaDataProperty.getKey() %>"> |
|
74 |
<div class="form-row"> |
|
75 |
<img class="question-mark" src="style/images/question-mark.gif" |
|
76 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
77 |
<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %>"><%= metaDataProperty.getLabel() %></label></div> |
|
78 |
<select class="textinput" name="<%= metaDataProperty.getKey() %>"> |
|
81 | 79 |
<% |
82 | 80 |
Vector<String> fieldOptionValues = metaDataProperty.getFieldOptionValues(); |
83 | 81 |
Vector<String> fieldOptionNames = metaDataProperty.getFieldOptionNames(); |
84 | 82 |
for (int i = 0; i < fieldOptionNames.size(); i++) { |
85 | 83 |
%> |
86 |
<option value="<%= fieldOptionValues.elementAt(i) %>"> <%= fieldOptionNames.elementAt(i) %> |
|
84 |
<option value="<%= fieldOptionValues.elementAt(i) %>"> <%= fieldOptionNames.elementAt(i) %>
|
|
87 | 85 |
<% |
88 |
} |
|
86 |
}
|
|
89 | 87 |
%> |
90 | 88 |
</select> |
91 |
</td> |
|
92 |
<td class="config-question-mark"> |
|
93 |
<img src="style/images/question-mark.gif" |
|
94 |
alt="<%= metaDataProperty.getDescription() %>" |
|
95 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
96 |
</td> |
|
97 |
</tr> |
|
98 |
|
|
89 |
</div> |
|
90 |
<% |
|
91 |
if (metaDataProperty.getDescription() != null) { |
|
92 |
%> |
|
93 |
<div class="textinput-description">[<%= metaDataProperty.getDescription() %>]</div> |
|
99 | 94 |
<% |
95 |
} |
|
100 | 96 |
} else if (fieldType.equals("password")) { |
101 | 97 |
%> |
102 |
<tr> |
|
103 |
<td class="config-property-label"> |
|
104 |
<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
105 |
</td> |
|
106 |
<td class="config-property-input" > |
|
107 |
<input id="<%= metaDataProperty.getKey() %>" name="<%= metaDataProperty.getKey() %>" |
|
98 |
<div class="form-row"> |
|
99 |
<img class="question-mark" src="style/images/question-mark.gif" |
|
100 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
101 |
<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %>"><%= metaDataProperty.getLabel() %></label></div> |
|
102 |
<input class="textinput" id="<%= metaDataProperty.getKey() %>" name="<%= metaDataProperty.getKey() %>" |
|
108 | 103 |
value="<%= request.getAttribute(metaDataProperty.getKey()) %>" |
109 |
type="<%= fieldType %>" |
|
110 |
alt="<%= metaDataProperty.getDescription() %>"/> |
|
111 |
</td> |
|
112 |
<td class="config-question-mark"> |
|
113 |
<img src="style/images/question-mark.gif" |
|
114 |
alt="<%= metaDataProperty.getDescription() %>" |
|
115 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
116 |
</td> |
|
117 |
</tr> |
|
104 |
type="<%= fieldType %>"/> |
|
105 |
</div> |
|
106 |
<% |
|
107 |
if (metaDataProperty.getDescription() != null) { |
|
108 |
%> |
|
109 |
<div class="textinput-description">[<%= metaDataProperty.getDescription() %>]</div> |
|
118 | 110 |
<% |
111 |
} |
|
119 | 112 |
} else { |
120 | 113 |
%> |
121 |
<tr> |
|
122 |
<td class="config-property-label"> |
|
123 |
<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
124 |
</td> |
|
125 |
<td class="config-property-input" > |
|
126 |
<input id="<%= metaDataProperty.getKey() %>" name="<%= metaDataProperty.getKey() %>" |
|
114 |
<div class="form-row"> |
|
115 |
<img class="question-mark" src="style/images/question-mark.gif" |
|
116 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
117 |
<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %>"><%= metaDataProperty.getLabel() %></label></div> |
|
118 |
<input class="textinput" id="<%= metaDataProperty.getKey() %>" name="<%= metaDataProperty.getKey() %>" |
|
127 | 119 |
value="<%= request.getAttribute(metaDataProperty.getKey()) %>" |
128 |
type="<%= fieldType %> " |
|
129 |
alt="<%= metaDataProperty.getDescription() %>"/> |
|
130 |
</td> |
|
131 |
<td class="config-question-mark"> |
|
132 |
<img src="style/images/question-mark.gif" |
|
133 |
alt="<%= metaDataProperty.getDescription() %>" |
|
134 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
135 |
</td> |
|
136 |
</tr> |
|
137 |
<% |
|
120 |
type="<%= fieldType %> "/> |
|
121 |
</div> |
|
122 |
<% |
|
123 |
if (metaDataProperty.getDescription() != null) { |
|
124 |
%> |
|
125 |
<div class="textinput-description">[<%= metaDataProperty.getDescription() %>]</div> |
|
126 |
<% |
|
127 |
} |
|
138 | 128 |
} |
139 |
|
|
140 |
if (metaDataProperty.getDescription() != null) { |
|
141 |
%> |
|
142 |
<tr> |
|
143 |
<td></td> |
|
144 |
<td class="config-property-description" colspan="2" > |
|
145 |
<%= metaDataProperty.getDescription() %> |
|
146 |
</td> |
|
147 |
</tr> |
|
148 |
<% |
|
149 |
} |
|
150 | 129 |
} |
151 |
%> |
|
152 |
|
|
153 |
</table> |
|
154 |
<% |
|
155 | 130 |
} |
156 | 131 |
} |
157 | 132 |
%> |
lib/admin/geoserver-configuration.jsp | ||
---|---|---|
39 | 39 |
</head> |
40 | 40 |
<body> |
41 | 41 |
<img src="<%= request.getContextPath() %>/metacat-logo.png" width="100px" align="right"/> |
42 |
<h2>MetaCat Properties Configuration</h2>
|
|
42 |
<h2>Geoserver Configuration</h2>
|
|
43 | 43 |
|
44 | 44 |
<p>Reset the geoserver password here. If there are any issues, or you want to defer the password |
45 | 45 |
reset until later, choose to bypass this screen. You can configure the password later by |
... | ... | |
55 | 55 |
|
56 | 56 |
<h3>Geoserver Password Configuration</h3> |
57 | 57 |
<hr class="config-line"> |
58 |
<table class="config-section"> |
|
59 |
<tr> |
|
60 |
<td class="config-property-label"> |
|
61 |
<label for="geoserver.username" title="Geoserver user name">User Name</label> |
|
62 |
</td> |
|
63 |
<td class="config-property-input" > |
|
64 |
<input id="geoserver.username" |
|
58 |
|
|
59 |
<div class="form-row"> |
|
60 |
<img class="question-mark" src="style/images/question-mark.gif" |
|
61 |
onClick="helpWindow('<%= request.getContextPath() %>','geoserverconfiguration.html')"/> |
|
62 |
<div class="textinput-label"><label for="geoserver.username" title="Geoserver user name">User Name</label></div> |
|
63 |
<input class="textinput" id="geoserver.username" |
|
65 | 64 |
name="geoserver.username" |
66 | 65 |
value="<%= request.getAttribute("geoserver.username") %>"/> |
67 |
</td> |
|
68 |
<td class="config-question-mark"> |
|
69 |
<img src="style/images/question-mark.gif" |
|
70 |
alt="Geoserver user name" |
|
66 |
</div> |
|
67 |
<div class="form-row"> |
|
68 |
<img class="question-mark" src="style/images/question-mark.gif" |
|
71 | 69 |
onClick="helpWindow('<%= request.getContextPath() %>','geoserverconfiguration.html')"/> |
72 |
</td> |
|
73 |
</tr> |
|
74 |
<tr> |
|
75 |
<td class="config-property-label"> |
|
76 |
<label for="geoserver.password" title="Geoserver user name">Password</label> |
|
77 |
</td> |
|
78 |
<td class="config-property-input" > |
|
79 |
<input id="geoserver.password" |
|
70 |
<div class="textinput-label"><label for="geoserver.password" title="Geoserver user name">Password</label></div> |
|
71 |
<input class="textinput" id="geoserver.password" |
|
80 | 72 |
name="geoserver.password" |
81 | 73 |
type="password" |
82 | 74 |
value="<%= request.getAttribute("geoserver.password") %>"/> |
83 |
</td> |
|
84 |
<td class="config-question-mark"> |
|
85 |
<img src="style/images/question-mark.gif" |
|
86 |
alt="Geoserver user name" |
|
87 |
onClick="helpWindow('<%= request.getContextPath() %>','geoserverconfiguration.html')"/> |
|
88 |
</td> |
|
89 |
</tr> |
|
90 |
</table> |
|
75 |
</div> |
|
91 | 76 |
|
92 | 77 |
<input type="hidden" name="configureType" value="geoserver"/> |
93 | 78 |
<input type="hidden" name="processForm" value="true"/> |
lib/admin/skins-configuration.jsp | ||
---|---|---|
69 | 69 |
|
70 | 70 |
for (String skinName : skinNames) { |
71 | 71 |
%> |
72 |
<table class="config-section"> |
|
73 |
<tr> |
|
74 |
<td class="config-checkbox"> |
|
75 |
<input type="checkbox" |
|
72 |
<div> |
|
73 |
<input class="checkradio" type="checkbox" |
|
76 | 74 |
<% |
77 | 75 |
if (skinName.equals(defaultStyle)) { |
78 | 76 |
%> |
79 |
checked="yes"
|
|
77 |
checked="yes" |
|
80 | 78 |
<% |
81 | 79 |
} |
82 | 80 |
%> |
83 |
name="<%= skinName %>.cb" id="<%= skinName %>.cb"onClick="toggleHiddenTable(this, 'hiding-section-<%= skinName %>')"/> |
|
84 |
</td> |
|
85 |
<td class="config-checkbox-label"> |
|
86 |
<label for="<%= skinName %>.cb %>"><%= skinName %></label> |
|
81 |
name="<%= skinName %>.cb" id="<%= skinName %>.cb"onClick="toggleHiddenTable(this, 'hiding-section-<%= skinName %>')"/> |
|
82 |
<label class="checkradio-label" for="<%= skinName %>.cb %>"><%= skinName %></label> |
|
87 | 83 |
<% |
88 | 84 |
if (skinName.equals(defaultStyle)) { |
89 | 85 |
%> |
90 |
<div style="display: inline;" id="hiding-default-<%= skinName %>"> (default)<div>
|
|
86 |
<div class="checkradio-label-inline" id="hiding-default-<%= skinName %>"> (default)</div>
|
|
91 | 87 |
<% |
92 | 88 |
} else { |
93 | 89 |
%> |
94 |
<div style="display: none;" id="hiding-default-<%= skinName %>"> (default)<div>
|
|
90 |
<div class="checkradio-label-inline" style="display: none;" id="hiding-default-<%= skinName %>"> (default)</div>
|
|
95 | 91 |
<% |
96 | 92 |
} |
97 | 93 |
%> |
98 |
</td> |
|
99 |
</tr> |
|
100 |
</table> |
|
101 |
<table class="config-section-hiding" |
|
94 |
</div> |
|
95 |
<div class="hiding-section" |
|
102 | 96 |
<% |
103 | 97 |
if (skinName.equals(defaultStyle)) { |
104 | 98 |
%> |
105 |
style="display: table;"
|
|
99 |
style="display: block;"
|
|
106 | 100 |
<% |
107 | 101 |
} |
108 | 102 |
%> |
... | ... | |
116 | 110 |
SortedMap<Integer, MetaDataProperty> propertyMap = metaData.getPropertiesInGroup(groupkey); |
117 | 111 |
Set<Integer> propertyKeys = propertyMap.keySet(); |
118 | 112 |
%> |
119 |
<tr> |
|
120 |
<td class="config-property-label" > |
|
121 |
<label for="<%= skinName %>-radio"> Make "<%= skinName %>" default </label> |
|
122 |
</td> |
|
123 |
<td class="config-property-input" > |
|
124 |
<input type="radio" |
|
113 |
<input class="checkradio" type="radio" |
|
125 | 114 |
<% |
126 | 115 |
if (skinName.equals(defaultStyle)) { |
127 | 116 |
%> |
... | ... | |
130 | 119 |
} |
131 | 120 |
%> |
132 | 121 |
name="default-flag" id="<%= skinName %>-radio" value="<%= skinName %>" onChange="toggleHiddenDefaultText('default-flag', '<%= skinName %>')"/> |
133 |
</td> |
|
134 |
</tr> |
|
122 |
<label class="checkradio-label" for="<%= skinName %>-radio"> Make "<%= skinName %>" default </label> |
|
135 | 123 |
<% |
136 | 124 |
for (Integer propertyKey : propertyKeys) { |
137 | 125 |
%> |
138 |
<tr> |
|
139 | 126 |
<% |
140 | 127 |
MetaDataProperty metaDataProperty = propertyMap.get(propertyKey); |
141 | 128 |
String fieldType = metaDataProperty.getFieldType(); |
142 | 129 |
if (fieldType.equals("select")) { |
143 |
%> |
|
144 |
<td class="config-property-label"> |
|
145 |
<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
146 |
</td> |
|
147 |
<td class="config-property-input"> |
|
148 |
<select name="<%= skinName %>.<%= metaDataProperty.getKey() %>"> |
|
130 |
%> |
|
131 |
<div class="form-row"> |
|
132 |
<img class="question-mark" src="style/images/question-mark.gif" |
|
133 |
alt="<%= metaDataProperty.getDescription() %>" |
|
134 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')""/> |
|
135 |
<label class="textinput-label" for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
136 |
<select class="textinput" name="<%= skinName %>.<%= metaDataProperty.getKey() %>"> |
|
137 |
|
|
149 | 138 |
<% |
150 | 139 |
Vector<String> fieldOptionNames = metaDataProperty.getFieldOptionNames(); |
151 | 140 |
Vector<String> fieldOptionValues = metaDataProperty.getFieldOptionValues(); |
... | ... | |
156 | 145 |
} |
157 | 146 |
%> |
158 | 147 |
</select> |
159 |
</td> |
|
160 |
<td class="config-question-mark"> |
|
161 |
<img src="style/images/question-mark.gif" |
|
162 |
alt="<%= metaDataProperty.getDescription() %>" |
|
163 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')""/><br/> |
|
164 |
</td> |
|
165 |
|
|
148 |
</div> |
|
149 |
<% |
|
150 |
if (metaDataProperty.getDescription() != null) { |
|
151 |
%> |
|
152 |
<div class="textinput-description">[<%= metaDataProperty.getDescription() %>]</div> |
|
166 | 153 |
<% |
154 |
} |
|
167 | 155 |
} else if (fieldType.equals("password")) { |
168 |
%> |
|
169 |
<td class="config-property-label"> |
|
170 |
<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
171 |
</td> |
|
172 |
<td class="config-property-input"> |
|
173 |
<input id="<%= skinName %>.<%= metaDataProperty.getKey() %>" name="<%= skinName %>.<%= metaDataProperty.getKey() %>" |
|
156 |
%> |
|
157 |
<div class="form-row"> |
|
158 |
<img class="question-mark" src="style/images/question-mark.gif" |
|
159 |
alt="<%= metaDataProperty.getDescription() %>" |
|
160 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
161 |
<label class="textinput-label" for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
162 |
<input class="textinput" id="<%= skinName %>.<%= metaDataProperty.getKey() %>" name="<%= skinName %>.<%= metaDataProperty.getKey() %>" |
|
174 | 163 |
type="<%= fieldType %>" |
175 | 164 |
alt="<%= metaDataProperty.getDescription() %>"/> |
176 |
</td> |
|
177 |
<td class="config-question-mark"> |
|
178 |
<img src="style/images/question-mark.gif" |
|
165 |
</div> |
|
166 |
<% |
|
167 |
if (metaDataProperty.getDescription() != null) { |
|
168 |
%> |
|
169 |
<div class="textinput-description">[<%= metaDataProperty.getDescription() %>]</div> |
|
170 |
<% |
|
171 |
} |
|
172 |
} else if (fieldType.equals("checkbox")) { |
|
173 |
%> |
|
174 |
<div class="form-row"> |
|
175 |
<img class="question-mark" src="style/images/question-mark.gif" |
|
179 | 176 |
alt="<%= metaDataProperty.getDescription() %>" |
180 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/><br/> |
|
181 |
</td> |
|
177 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
178 |
<input class="checkradio" id="<%= skinName %>.<%= metaDataProperty.getKey() %>" name="<%= skinName %>.<%= metaDataProperty.getKey() %>" |
|
179 |
type="<%= fieldType %>" |
|
180 |
alt="<%= metaDataProperty.getDescription() %>"/> |
|
181 |
<label class="checkradio-label" for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
182 |
</div> |
|
183 |
<% |
|
184 |
if (metaDataProperty.getDescription() != null) { |
|
185 |
%> |
|
186 |
<div class="checkradio-description">[<%= metaDataProperty.getDescription() %>]</div> |
|
182 | 187 |
<% |
188 |
} |
|
183 | 189 |
} else { |
184 | 190 |
%> |
185 |
<td class="config-property-label"> |
|
186 |
<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
187 |
</td> |
|
188 |
<td class="config-property-input"> |
|
189 |
<input id="<%= skinName %>.<%= metaDataProperty.getKey() %>" name="<%= skinName %>.<%= metaDataProperty.getKey() %>" |
|
191 |
<div class="form-row"> |
|
192 |
<img class="question-mark" src="style/images/question-mark.gif" |
|
193 |
alt="<%= metaDataProperty.getDescription() %>" |
|
194 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
195 |
<label class="textinput-label" for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
196 |
<input class="textinput" id="<%= skinName %>.<%= metaDataProperty.getKey() %>" name="<%= skinName %>.<%= metaDataProperty.getKey() %>" |
|
190 | 197 |
value="<%= skinProperties.get(metaDataProperty.getKey()) %>" |
191 | 198 |
type="<%= fieldType %> " |
192 |
alt="<%= metaDataProperty.getDescription() %>"/> |
|
193 |
</td> |
|
194 |
<td class="config-question-mark"> |
|
195 |
<img src="style/images/question-mark.gif" |
|
196 |
alt="<%= metaDataProperty.getDescription() %>" |
|
197 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/><br/> |
|
198 |
</td> |
|
199 |
<% |
|
200 |
} |
|
201 |
%> |
|
202 |
</tr> |
|
199 |
alt="<%= metaDataProperty.getDescription() %>"/> |
|
200 |
</div> |
|
203 | 201 |
<% |
204 |
if (metaDataProperty.getDescription() != null) { |
|
202 |
if (metaDataProperty.getDescription() != null) {
|
|
205 | 203 |
%> |
206 |
<tr> |
|
207 |
<td></td> |
|
208 |
<td class="config-property-description" colspan="2" > |
|
209 |
<%= metaDataProperty.getDescription() %> |
|
210 |
</td> |
|
211 |
</tr> |
|
212 |
<% |
|
213 |
} |
|
204 |
<div class="textinput-description">[<%= metaDataProperty.getDescription() %>]</div> |
|
205 |
<% |
|
206 |
} |
|
207 |
} |
|
214 | 208 |
} |
215 | 209 |
} |
216 | 210 |
|
217 | 211 |
%> |
218 |
|
|
219 |
</table> |
|
212 |
</div> |
|
220 | 213 |
<% |
221 | 214 |
} |
222 | 215 |
%> |
lib/admin/properties-configuration.jsp | ||
---|---|---|
62 | 62 |
%> |
63 | 63 |
<h3><%= metaDataGroup.getName() %></h3> |
64 | 64 |
<hr class="config-line"> |
65 |
<table class="config-section"> |
|
66 | 65 |
<% |
67 | 66 |
// get all the properties in this group |
68 | 67 |
Map<Integer, MetaDataProperty> propertyMap = |
... | ... | |
74 | 73 |
String fieldType = metaDataProperty.getFieldType(); |
75 | 74 |
if (fieldType.equals("select")) { |
76 | 75 |
%> |
77 |
<tr> |
|
78 |
<td class="config-property-label"> |
|
79 |
<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
80 |
</td> |
|
81 |
<td class="config-property-input" > |
|
82 |
<select name="<%= metaDataProperty.getKey() %>"> |
|
76 |
<div class="form-row"> |
|
77 |
<img class="question-mark" src="style/images/question-mark.gif" |
|
78 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
79 |
<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %>"><%= metaDataProperty.getLabel() %></label></div> |
|
80 |
<select class="textinput" name="<%= metaDataProperty.getKey() %>"> |
|
83 | 81 |
<% |
84 | 82 |
Vector<String> fieldOptionValues = metaDataProperty.getFieldOptionValues(); |
85 | 83 |
Vector<String> fieldOptionNames = metaDataProperty.getFieldOptionNames(); |
... | ... | |
90 | 88 |
} |
91 | 89 |
%> |
92 | 90 |
</select> |
93 |
</td> |
|
94 |
<td class="config-question-mark"> |
|
95 |
<img src="style/images/question-mark.gif" |
|
96 |
alt="<%= metaDataProperty.getDescription() %>" |
|
97 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
98 |
</td> |
|
99 |
</tr> |
|
100 |
|
|
91 |
</div> |
|
101 | 92 |
<% |
102 | 93 |
} else if (fieldType.equals("password")) { |
103 | 94 |
%> |
104 |
<tr>
|
|
105 |
<td class="config-property-label">
|
|
106 |
<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label>
|
|
107 |
</td>
|
|
108 |
<td class="config-property-input" >
|
|
109 |
<input id="<%= metaDataProperty.getKey() %>" name="<%= metaDataProperty.getKey() %>"
|
|
95 |
<div class="form-row">
|
|
96 |
<img class="question-mark" src="style/images/question-mark.gif"
|
|
97 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/>
|
|
98 |
<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %>" ><%= metaDataProperty.getLabel() %></label></div>
|
|
99 |
<input class="textinput" id="<%= metaDataProperty.getKey() %>"
|
|
100 |
name="<%= metaDataProperty.getKey() %>"
|
|
110 | 101 |
value="<%= request.getAttribute(metaDataProperty.getKey()) %>" |
111 |
type="<%= fieldType %>" |
|
112 |
alt="<%= metaDataProperty.getDescription() %>"/> |
|
113 |
</td> |
|
114 |
<td class="config-question-mark"> |
|
115 |
<img src="style/images/question-mark.gif" |
|
116 |
alt="<%= metaDataProperty.getDescription() %>" |
|
117 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
|
118 |
</td> |
|
119 |
</tr> |
|
120 |
<% |
|
102 |
type="<%= fieldType %>"/> |
|
103 |
</div> |
|
104 |
<% |
|
121 | 105 |
} else { |
122 | 106 |
%> |
123 |
<tr> |
|
124 |
<td class="config-property-label"> |
|
125 |
<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label> |
|
126 |
</td> |
|
127 |
<td class="config-property-input" > |
|
128 |
<input id="<%= metaDataProperty.getKey() %>" name="<%= metaDataProperty.getKey() %>" |
|
129 |
value="<%= request.getAttribute(metaDataProperty.getKey()) %>" |
|
130 |
type="<%= fieldType %> " |
|
131 |
alt="<%= metaDataProperty.getDescription() %>"/> |
|
132 |
</td> |
|
133 |
<td class="config-question-mark"> |
|
134 |
<img class=question-mark |
|
107 |
<div class="form-row"> |
|
108 |
<img class="question-mark" class=question-mark |
|
135 | 109 |
src="style/images/question-mark.gif" |
136 | 110 |
onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/> |
137 |
</td> |
|
138 |
</tr> |
|
111 |
<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %> "><%= metaDataProperty.getLabel() %></label> </div> |
|
112 |
<input class="textinput" id="<%= metaDataProperty.getKey() %>" |
|
113 |
name="<%= metaDataProperty.getKey() %>" |
|
114 |
value="<%= request.getAttribute(metaDataProperty.getKey()) %>" |
|
115 |
type="<%= fieldType %> "/> |
|
116 |
</div> |
|
139 | 117 |
<% |
140 | 118 |
} |
141 | 119 |
|
142 | 120 |
if (metaDataProperty.getDescription() != null) { |
143 | 121 |
%> |
144 |
<tr> |
|
145 |
<td></td> |
|
146 |
<td class="config-property-description" colspan="2" > |
|
147 |
<%= metaDataProperty.getDescription() %> |
|
148 |
</td> |
|
149 |
</tr> |
|
122 |
|
|
123 |
<div class="textinput-description">[<%= metaDataProperty.getDescription() %>]</div> |
|
150 | 124 |
<% |
151 | 125 |
} |
152 | 126 |
} |
153 |
%> |
|
154 |
|
|
155 |
</table> |
|
156 |
<% |
|
157 | 127 |
} |
158 | 128 |
} |
159 | 129 |
%> |
Also available in: Unified diff
Replace tables with css