Changeset 5921
- Timestamp:
- Jan 10, 2012, 1:30:57 PM (11 years ago)
- Location:
- trunk/www
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/admin/clients/edit_client.jsp
r5908 r5921 132 132 </base:head> 133 133 <base:body onload="init()"> 134 < p>134 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 135 135 <form action="index.jsp?ID=<%=ID%>" method="post" name="client" onsubmit="return false;"> 136 136 <input type="hidden" name="cmd" value="UpdateItem"> 137 137 138 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>139 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*160)+"px;"%>"138 <t:tabcontrol id="settings" 139 subclass="content dialogtabcontrol" 140 140 position="bottom" remember="<%=client != null%>" 141 141 extensions="<%=invoker%>"> 142 142 <t:tab id="info" title="Client application" validate="validateClient()" helpid="client.edit"> 143 <table class="f orm" cellspacing=0>143 <table class="fullform input100 smaller"> 144 144 <tr> 145 <t d class="prompt">Name</td>145 <th>Name</th> 146 146 <td><input <%=requiredClazz%> type="text" name="name" 147 147 value="<%=HTML.encodeTags(client == null ? Values.getString(cc.getPropertyValue("name"), "New client application") : client.getName())%>" 148 size="40" maxlength="<%=Client.MAX_NAME_LENGTH%>"></td> 148 maxlength="<%=Client.MAX_NAME_LENGTH%>"></td> 149 <td></td> 149 150 </tr> 150 151 <tr> 151 <t d class="prompt">External Id</td>152 <th>External Id</th> 152 153 <td><input <%=requiredClazz%> type="text" name="external_id" 153 154 value="<%=HTML.encodeTags(client == null ? cc.getPropertyValue("externalId") : client.getExternalId())%>" 154 size="40" maxlength="<%=Client.MAX_EXTERNAL_ID_LENGTH%>"></td> 155 maxlength="<%=Client.MAX_EXTERNAL_ID_LENGTH%>"></td> 156 <td></td> 155 157 </tr> 156 <tr >157 <t d class="prompt">Description</td>158 <td nowrap>159 <textarea <%=clazz%> rows=" 4" cols="40" name="description"158 <tr class="dynamic"> 159 <th>Description</th> 160 <td> 161 <textarea <%=clazz%> rows="6" name="description" 160 162 ><%=HTML.encodeTags(client == null ? cc.getPropertyValue("description") : client.getDescription())%></textarea> 161 <a href="javascript:Main.zoom('Description', 'client', 'description')" 162 title="Edit in larger window"><base:icon image="zoom.png" /></a> 163 </td> 164 <td style="width: 20px;"> 165 <base:icon image="zoom.png" 166 onclick="Main.zoom('Description', 'client', 'description')" 167 tooltip="Edit in larger window" 168 /> 163 169 </td> 164 170 </tr> 165 171 </table> 166 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>167 172 </t:tab> 168 173 </t:tabcontrol> 174 </form> 175 176 <div class="legend"> 177 <base:icon image="required.gif" /> = required information 178 </div> 169 179 170 <table align="center"> 171 <tr> 172 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td> 173 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 174 </tr> 175 </table> 176 </form> 180 <base:buttongroup subclass="dialogbuttons"> 181 <base:button onclick="saveSettings()" title="Save" /> 182 <base:button onclick="window.close()" title="Cancel" /> 183 </base:buttongroup> 177 184 </base:body> 178 185 </base:page> -
trunk/www/admin/clients/help/edit_help.jsp
r5908 r5921 295 295 /> 296 296 </m:menu> 297 < p>297 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 298 298 <form action="index.jsp?ID=<%=ID%>" method="post" name="help" onsubmit="return false;"> 299 299 <input type="hidden" name="cmd" value="UpdateItem"> 300 300 <input type="hidden" name="client_id" value="<%=clientId%>"> 301 301 302 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>303 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*360)+"px;"%>"302 <t:tabcontrol id="settings" 303 subclass="content dialogtabcontrol" 304 304 position="bottom" remember="<%=help != null%>" 305 305 extensions="<%=invoker%>"> 306 306 <t:tab id="info" title="Help text" validate="validateHelp()" helpid="help.edit"> 307 <table class="f orm" cellspacing=0>307 <table class="fullform input100 smaller"> 308 308 <tr> 309 <t d class="prompt">Title</td>309 <th>Title</th> 310 310 <td><input <%=requiredClazz%> type="text" name="name" 311 311 value="<%=HTML.encodeTags(help == null ? Values.getString(cc.getPropertyValue("name"), "New help") : help.getName())%>" 312 size="40" maxlength="<%=Help.MAX_NAME_LENGTH%>"></td> 312 maxlength="<%=Help.MAX_NAME_LENGTH%>"></td> 313 <td></td> 313 314 </tr> 314 315 <tr> 315 <t d class="prompt">External ID</td>316 <th>External ID</th> 316 317 <td><input <%=requiredClazz%> type="text" name="external_id" 317 318 value="<%=HTML.encodeTags(externalId)%>" 318 size="40" maxlength="<%=Help.MAX_EXTERNAL_ID_LENGTH%>"></td> 319 maxlength="<%=Help.MAX_EXTERNAL_ID_LENGTH%>"></td> 320 <td></td> 319 321 </tr> 320 321 <tr > 322 <td class="prompt">Help text</td> 323 <td> 324 <tbl:toolbar style="border-right:none;width:176px;"> 322 <tr> 323 <th>Help text</th> 324 <td colspan="2" style="padding: 0px;"> 325 <tbl:toolbar subclass="bottomborder topborder"> 325 326 <tbl:button 326 327 tooltip="Bold" … … 379 380 /> 380 381 </tbl:toolbar> 381 <textarea <%=clazz%> rows="16" cols="60" name="description" 382 </td> 383 </tr> 384 <tr class="dynamic"> 385 <th class="subprompt"></th> 386 <td> 387 <textarea <%=clazz%> rows="16" name="description" 382 388 ><%=HTML.encodeTags(help == null ? cc.getPropertyValue("description") : help.getDescription())%></textarea> 383 <a href="javascript:Main.zoom('Help text', 'help', 'description')" 384 title="Edit in larger window"><base:icon image="zoom.png" /></a> 389 </td> 390 <td style="width: 20px;"> 391 <base:icon image="zoom.png" 392 onclick="Main.zoom('Help text', 'help', 'description')" 393 tooltip="Edit in larger window" 394 /> 385 395 </td> 386 396 </tr> 387 397 </table> 388 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>389 398 </t:tab> 390 399 </t:tabcontrol> 391 392 <table align="center">393 <tr>394 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>395 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>396 </tr>397 </table>398 400 </form> 401 402 <div class="legend"> 403 <base:icon image="required.gif" /> = required information 404 </div> 405 406 <base:buttongroup subclass="dialogbuttons"> 407 <base:button onclick="saveSettings()" title="Save" /> 408 <base:button onclick="window.close()" title="Cancel" /> 409 </base:buttongroup> 399 410 </base:body> 400 411 </base:page> -
trunk/www/admin/groups/edit_group.jsp
r5908 r5921 263 263 </base:head> 264 264 <base:body onload="init()"> 265 <p> 265 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 266 266 267 <form action="index.jsp?ID=<%=ID%>" method="post" name="group" onsubmit="return false;"> 267 268 <input type="hidden" name="cmd" value="UpdateItem"> 268 269 269 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>270 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*280)+"px;"%>"270 <t:tabcontrol id="settings" 271 subclass="content dialogtabcontrol" 271 272 position="bottom" remember="<%=group != null%>" 272 273 extensions="<%=invoker%>"> 273 274 <t:tab id="info" title="Group" validate="validateGroup()" helpid="group.edit"> 274 <table class="f orm" cellspacing=0>275 <table class="fullform input100 smaller"> 275 276 <tr> 276 <t d class="prompt">Name</td>277 <th>Name</th> 277 278 <td><input <%=requiredClazz%> type="text" name="name" 278 279 value="<%=HTML.encodeTags(group == null ? Values.getString(cc.getPropertyValue("name"), "New group") : group.getName())%>" 279 size="40" maxlength="<%=Group.MAX_NAME_LENGTH%>"></td> 280 maxlength="<%=Group.MAX_NAME_LENGTH%>"></td> 281 <td></td> 280 282 </tr> 281 283 <tr> 282 <t d class="prompt">Default</td>284 <th>Default</th> 283 285 <td> 284 286 <input type="radio" name="is_default" id="defaultNo" value="0" <%=!isDefault ? "checked" : ""%>><label for="defaultNo">no</label> 285 287 <input type="radio" name="is_default" id="defaultYes" value="1" <%=isDefault ? "checked" : ""%>><label for="defaultYes">yes</label> 286 288 </td> 289 <td></td> 287 290 </tr> 288 291 <tr> 289 <t d class="prompt">Hidden members</td>292 <th>Hidden members</th> 290 293 <td> 291 294 <input type="radio" name="hidden_members" id="hiddenNo" value="0" <%=!hiddenMembers ? "checked" : ""%>><label for="hiddenNo">no</label> 292 295 <input type="radio" name="hidden_members" id="hiddenYes" value="1" <%=hiddenMembers ? "checked" : ""%>><label for="hiddenYes">yes</label> 293 296 </td> 297 <td></td> 294 298 </tr> 295 <tr 296 <t d class="prompt">Quota</td>299 <tr> 300 <th>Quota</th> 297 301 <td> 298 302 <select name="quota_id" <%=isEveryone || !useQuota ? "disabled readonly class=\"disabled\"" : ""%>> … … 327 331 %> 328 332 </td> 333 <td></td> 329 334 </tr> 330 <tr >331 <t d class="prompt">Description</td>332 <td nowrap>333 <textarea <%=clazz%> rows=" 4" cols="40" name="description"335 <tr class="dynamic"> 336 <th>Description</th> 337 <td> 338 <textarea <%=clazz%> rows="6" name="description" 334 339 ><%=HTML.encodeTags(group == null ? cc.getPropertyValue("description") : group.getDescription())%></textarea> 335 <a href="javascript:Main.zoom('Description', 'group', 'description')" 336 title="Edit in larger window"><base:icon image="zoom.png" /></a> 340 </td> 341 <td style="width: 20px;"> 342 <base:icon image="zoom.png" 343 onclick="Main.zoom('Description', 'group', 'description')" 344 tooltip="Edit in larger window" 345 /> 337 346 </td> 338 347 </tr> 339 348 </table> 340 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>341 349 </t:tab> 342 350 343 351 <t:tab id="members" title="Members" tooltip="Add/remove members of this group" 344 352 validate="validateMembers()" helpid="group.edit.membership"> 345 <table > 346 <tr > 347 <td> 348 <b>Members</b><br> 349 <select name="members" size="14" multiple <%=isEveryone || !writeMembers ? "disabled readonly class=\"disabled\"" : ""%> style="width: 15em;"> 350 </select> 351 <input type="hidden" name="removeUsers" value=""> 352 <input type="hidden" name="addUsers" value=""> 353 <input type="hidden" name="removeGroups" value=""> 354 <input type="hidden" name="addGroups" value=""> 355 </td> 356 <td> 357 <br> 358 <table width="150"> 359 <tr><td><base:button 360 clazz="leftaligned buttonclass" 361 onclick="addUsersOnClick()" 362 title="Add users…" 363 tooltip="Add users to this group" 364 disabled="<%=isEveryone || !writeMembers %>" 365 /></td></tr> 366 <tr><td><base:button 367 clazz="leftaligned buttonclass" 368 onclick="addGroupsOnClick()" 369 title="Add groups…" 370 tooltip="Add child groups to this group" 371 disabled="<%=isEveryone || !writeMembers %>" 372 /></td></tr> 373 <tr><td><base:button 374 clazz="leftaligned buttonclass" 375 onclick="removeOnClick()" 376 title="Remove" 377 tooltip="Remove the selected items from this group" 378 disabled="<%=isEveryone || !writeMembers%>" 379 /></td></tr> 353 <table class="fullform smaller"> 354 <tr class="dynamic"> 355 <th>Members</th> 356 <td> 357 <div class="selectionlist"> 358 <table> 359 <tr> 360 <td> 361 <select name="members" size="14" multiple <%=isEveryone || !writeMembers ? "disabled readonly class=\"disabled\"" : ""%>> 362 </select> 363 <input type="hidden" name="removeUsers" value=""> 364 <input type="hidden" name="addUsers" value=""> 365 <input type="hidden" name="removeGroups" value=""> 366 <input type="hidden" name="addGroups" value=""> 367 </td> 368 <td style="vertical-align: top;"> 369 370 <base:buttongroup vertical="true"> 371 <base:button 372 subclass="leftaligned" 373 style="width: 12em;" 374 onclick="addUsersOnClick()" 375 title="Add users…" 376 tooltip="Add users to this group" 377 disabled="<%=isEveryone || !writeMembers %>" 378 /> 379 <base:button 380 subclass="leftaligned" 381 style="width: 12em;" 382 onclick="addGroupsOnClick()" 383 title="Add groups…" 384 tooltip="Add child groups to this group" 385 disabled="<%=isEveryone || !writeMembers %>" 386 /> 387 <base:button 388 subclass="leftaligned" 389 style="width: 12em;" 390 onclick="removeOnClick()" 391 title="Remove" 392 tooltip="Remove the selected items from this group" 393 disabled="<%=isEveryone || !writeMembers%>" 394 /> 395 </base:buttongroup> 396 </td> 397 </tr> 398 </table> 399 </div> 400 </td> 401 </tr> 380 402 </table> 381 </td>382 </tr>383 </table>384 403 </t:tab> 385 404 </t:tabcontrol> 386 387 <table align="center">388 <tr>389 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>390 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>391 </tr>392 </table>393 405 </form> 406 407 <div class="legend"> 408 <base:icon image="required.gif" /> = required information 409 </div> 410 411 <base:buttongroup subclass="dialogbuttons"> 412 <base:button onclick="saveSettings()" title="Save" /> 413 <base:button onclick="window.close()" title="Cancel" /> 414 </base:buttongroup> 394 415 </base:body> 395 416 </base:page> -
trunk/www/admin/hardware/edit_hardware.jsp
r5908 r5921 146 146 </base:head> 147 147 <base:body onload="init()"> 148 < p>148 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 149 149 <form action="index.jsp?ID=<%=ID%>" method="post" name="hardware" onsubmit="return false;"> 150 150 <input type="hidden" name="cmd" value="UpdateItem"> 151 151 152 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>153 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*180)+"px;"%>"152 <t:tabcontrol id="settings" 153 subclass="content dialogtabcontrol" 154 154 position="bottom" remember="<%=hardware != null%>" 155 155 extensions="<%=invoker%>"> 156 156 <t:tab id="info" title="Hardware" validate="validateHardware()" helpid="hardware.edit"> 157 <table class="f orm" cellspacing=0>157 <table class="fullform input100 smaller"> 158 158 <tr> 159 <t d class="prompt">Name</td>159 <th>Name</th> 160 160 <td><input <%=requiredClazz%> type="text" name="name" 161 161 value="<%=HTML.encodeTags(hardware == null ? Values.getString(cc.getPropertyValue("name"), "New hardware") : hardware.getName())%>" 162 size="40" maxlength="<%=Hardware.MAX_NAME_LENGTH%>"></td> 163 </tr> 164 <tr > 165 <td class="prompt">Type</td> 166 <td colspan="2"> 162 maxlength="<%=Hardware.MAX_NAME_LENGTH%>"></td> 163 <td></td> 164 </tr> 165 <tr> 166 <th>Type</th> 167 <td> 167 168 <select name="subtype_id" 168 169 <%=!readCurrentSubtype ? "disabled readonly class=\"disabled selectionlist\"" : "class=\"selectionlist\""%>> … … 194 195 </select> 195 196 </td> 197 <td></td> 196 198 </tr> 197 199 <tr> 198 <t d class="prompt">Version</td>200 <th>Version</th> 199 201 <td><input <%=clazz%> type="text" name="version" 200 202 value="<%=HTML.encodeTags(hardware == null ? cc.getPropertyValue("versionString") : hardware.getVersionString())%>" 201 size="40" maxlength="<%=Hardware.MAX_VERSIONSTRING_LENGTH%>"></td> 202 </tr> 203 <tr > 204 <td class="prompt">Description</td> 205 <td nowrap> 206 <textarea <%=clazz%> rows="4" cols="40" name="description" 203 maxlength="<%=Hardware.MAX_VERSIONSTRING_LENGTH%>"></td> 204 <td></td> 205 </tr> 206 <tr class="dynamic"> 207 <th>Description</th> 208 <td> 209 <textarea <%=clazz%> rows="6" name="description" 207 210 ><%=HTML.encodeTags(hardware == null ? cc.getPropertyValue("description") : hardware.getDescription())%></textarea> 208 <a href="javascript:Main.zoom('Description', 'hardware', 'description')"209 title="Edit in larger window"><base:icon image="zoom.png" /></a>210 211 </td> 212 <td style="width: 20px;"> 213 <base:icon image="zoom.png" 214 onclick="Main.zoom('Description', 'hardware', 'description')" 215 tooltip="Edit in larger window" 216 /> 217 </td> 211 218 </tr> 212 219 </table> 213 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>214 220 </t:tab> 215 221 </t:tabcontrol> 216 217 <table align="center">218 <tr>219 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>220 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>221 </tr>222 </table>223 222 </form> 223 224 <div class="legend"> 225 <base:icon image="required.gif" /> = required information 226 </div> 227 228 <base:buttongroup subclass="dialogbuttons"> 229 <base:button onclick="saveSettings()" title="Save" /> 230 <base:button onclick="window.close()" title="Cancel" /> 231 </base:buttongroup> 224 232 </base:body> 225 233 </base:page> -
trunk/www/admin/news/edit_news.jsp
r5908 r5921 155 155 </base:head> 156 156 <base:body onload="init()"> 157 < p>157 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 158 158 <form action="index.jsp?ID=<%=ID%>" method="post" name="news" onsubmit="return false;"> 159 159 <input type="hidden" name="cmd" value="UpdateItem"> 160 160 161 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>162 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*280)+"px;"%>"161 <t:tabcontrol id="settings" 162 subclass="content dialogtabcontrol" 163 163 position="bottom" remember="<%=news != null%>" 164 164 extensions="<%=invoker%>"> 165 165 <t:tab id="info" title="News" validate="validateNews()" helpid="news.edit"> 166 <table class="f orm" cellspacing=0>167 <tr> 168 <t d class="prompt">Title</td>169 <td colspan="2"><input <%=requiredClazz%> type="text" name="title"166 <table class="fullform input100 smaller"> 167 <tr> 168 <th>Title</th> 169 <td><input <%=requiredClazz%> type="text" name="title" 170 170 value="<%=HTML.encodeTags(news == null ? Values.getString(cc.getPropertyValue("name"), "New news") : news.getName())%>" 171 size="40" maxlength="<%=News.MAX_NAME_LENGTH%>"></td> 172 </tr> 173 <tr> 174 <td class="prompt">Start date</td> 175 <td> 176 <input <%=requiredClazz%> type="text" name="start_date" 177 value="<%=HTML.encodeTags(dateFormatter.format(startDate == null ? new Date() : startDate))%>" 178 size="20" maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 179 </td> 180 <td> 181 <base:button 182 onclick="<%="Dates.selectDate('Start date', 'news', 'start_date', null, '"+jsDateFormat+"')"%>" 183 image="calendar.png" 184 title="Calendar…" 185 tooltip="Select a date from a calendar" 171 maxlength="<%=News.MAX_NAME_LENGTH%>"></td> 172 <td></td> 173 </tr> 174 <tr> 175 <th>Start date</th> 176 <td> 177 <table> 178 <tr> 179 <td> 180 <input <%=requiredClazz%> type="text" name="start_date" style="width: 15em;" 181 value="<%=HTML.encodeTags(dateFormatter.format(startDate == null ? new Date() : startDate))%>" 182 maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 183 </td> 184 <td> 185 <base:button 186 onclick="<%="Dates.selectDate('Start date', 'news', 'start_date', null, '"+jsDateFormat+"')"%>" 187 image="calendar.png" 188 title="Calendar…" 189 tooltip="Select a date from a calendar" 190 /> 191 </td> 192 </tr> 193 </table> 194 </td> 195 <td></td> 196 </tr> 197 <tr> 198 <th>News date</th> 199 <td> 200 <table> 201 <tr> 202 <td> 203 <input <%=requiredClazz%> type="text" name="news_date" style="width: 15em;" 204 value="<%=HTML.encodeTags(dateFormatter.format(newsDate == null ? new Date() : newsDate))%>" 205 maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 206 </td> 207 <td> 208 <base:button 209 onclick="<%="Dates.selectDate('News date', 'news', 'news_date', null, '"+jsDateFormat+"')"%>" 210 image="calendar.png" 211 title="Calendar…" 212 tooltip="Select a date from a calendar" 213 /> 214 </td> 215 </tr> 216 </table> 217 </td> 218 <td></td> 219 </tr> 220 <tr> 221 <th>End date</th> 222 <td> 223 <table> 224 <tr> 225 <td> 226 <input <%=clazz%> type="text" name="end_date" style="width: 15em;" 227 value="<%=dateFormatter.format(news == null ? 228 (Date)cc.getPropertyObject("endDate") : news.getEndDate())%>" 229 maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 230 </td> 231 <td> 232 <base:button 233 onclick="<%="Dates.selectDate('End date', 'news', 'end_date', null, '"+jsDateFormat+"')"%>" 234 image="calendar.png" 235 title="Calendar…" 236 tooltip="Select a date from a calendar" 237 /> 238 </td> 239 </tr> 240 </table> 241 </td> 242 <td></td> 243 </tr> 244 <tr class="dynamic"> 245 <th>Description</th> 246 <td> 247 <textarea <%=clazz%> rows="4"name="description" 248 ><%=HTML.encodeTags(news == null ? cc.getPropertyValue("description") : news.getDescription())%></textarea> 249 </td> 250 <td style="width: 20px;"> 251 <base:icon image="zoom.png" 252 onclick="Main.zoom('Description', 'news', 'description')" 253 tooltip="Edit in larger window" 186 254 /> 187 255 </td> 188 256 </tr> 189 <tr>190 <td class="prompt">News date</td>191 <td>192 <input <%=requiredClazz%> type="text" name="news_date"193 value="<%=HTML.encodeTags(dateFormatter.format(newsDate == null ? new Date() : newsDate))%>"194 size="20" maxlength="20" title="Enter date in format: <%=htmlDateFormat%>">195 </td>196 <td>197 <base:button198 onclick="<%="Dates.selectDate('News date', 'news', 'news_date', null, '"+jsDateFormat+"')"%>"199 image="calendar.png"200 title="Calendar…"201 tooltip="Select a date from a calendar"202 />203 </td>204 </tr>205 <tr>206 <td class="prompt">End date</td>207 <td>208 <input <%=clazz%> type="text" name="end_date"209 value="<%=dateFormatter.format(news == null ?210 (Date)cc.getPropertyObject("endDate") : news.getEndDate())%>"211 size="20" maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"><br>212 </td>213 <td>214 <base:button215 onclick="<%="Dates.selectDate('End date', 'news', 'end_date', null, '"+jsDateFormat+"')"%>"216 image="calendar.png"217 title="Calendar…"218 tooltip="Select a date from a calendar"219 />220 </td>221 </tr>222 <tr >223 <td class="prompt">Description</td>224 <td colspan="2" nowrap>225 <textarea <%=clazz%> rows="4" cols="40" name="description"226 ><%=HTML.encodeTags(news == null ? cc.getPropertyValue("description") : news.getDescription())%></textarea>227 <a href="javascript:Main.zoom('Description', 'news', 'description')"228 title="Edit in larger window"><base:icon image="zoom.png" /></a>229 </td>230 </tr>231 257 </table> 232 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>233 258 </t:tab> 234 259 </t:tabcontrol> 235 236 <table align="center">237 <tr>238 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>239 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>240 </tr>241 </table>242 260 </form> 261 262 <div class="legend"> 263 <base:icon image="required.gif" /> = required information 264 </div> 265 266 <base:buttongroup subclass="dialogbuttons"> 267 <base:button onclick="saveSettings()" title="Save" /> 268 <base:button onclick="window.close()" title="Cancel" /> 269 </base:buttongroup> 243 270 </base:body> 244 271 </base:page> -
trunk/www/admin/protocols/edit_protocol.jsp
r5908 r5921 254 254 </base:head> 255 255 <base:body onload="init()"> 256 < p>256 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 257 257 <form action="index.jsp?ID=<%=ID%>" method="post" name="protocol" onsubmit="return false;"> 258 258 <input type="hidden" name="cmd" value="UpdateItem"> 259 259 260 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>261 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"260 <t:tabcontrol id="settings" 261 subclass="content dialogtabcontrol" 262 262 position="bottom" remember="<%=protocol != null%>" switch="switchTab" 263 263 extensions="<%=invoker%>"> 264 264 <t:tab id="info" title="Protocol" validate="validateProtocol()" helpid="protocol.edit"> 265 <table class="f orm" cellspacing=0>265 <table class="fullform input100 smaller"> 266 266 <tr> 267 <t d class="prompt">Name</td>267 <th>Name</th> 268 268 <td><input <%=requiredClazz%> type="text" name="name" 269 269 value="<%=HTML.encodeTags(protocol == null ? Values.getString(cc.getPropertyValue("name"), "New protocol") : protocol.getName())%>" 270 size="40" maxlength="<%=Protocol.MAX_NAME_LENGTH%>"></td> 271 </tr> 272 <tr > 273 <td class="prompt">Type</td> 274 <td colspan="2"> 270 maxlength="<%=Protocol.MAX_NAME_LENGTH%>"></td> 271 <td></td> 272 </tr> 273 <tr> 274 <th>Type</th> 275 <td> 275 276 <select name="subtype_id" 276 277 <%=!readCurrentSubtype ? "disabled readonly class=\"disabled selectionlist\"" : "class=\"selectionlist\""%>> … … 302 303 </select> 303 304 </td> 305 <td></td> 304 306 </tr> 305 307 <tr> 306 <t d class="prompt">External ID</td>308 <th>External ID</th> 307 309 <td><input <%=clazz%> type="text" name="external_id" 308 310 value="<%=HTML.encodeTags(protocol == null ? Values.getString(cc.getPropertyValue("externalId"), "") : protocol.getExternalId())%>" 309 size="40" maxlength="<%=Protocol.MAX_EXTERNAL_ID_LENGTH%>"></td> 311 maxlength="<%=Protocol.MAX_EXTERNAL_ID_LENGTH%>"></td> 312 <td></td> 310 313 </tr> 311 314 <tr> 312 <t d class="prompt">File</td>315 <th>File</th> 313 316 <td> 314 317 <base:select … … 323 326 /> 324 327 </td> 325 </tr>326 327 <tr >328 <t d class="prompt">Description</td>329 <td nowrap>330 <textarea <%=clazz%> rows=" 4" cols="40" name="description"328 <td></td> 329 </tr> 330 <tr class="dynamic"> 331 <th>Description</th> 332 <td> 333 <textarea <%=clazz%> rows="6" name="description" 331 334 ><%=HTML.encodeTags(protocol == null ? cc.getPropertyValue("description") : protocol.getDescription())%></textarea> 332 <a href="javascript:Main.zoom('Description', 'protocol', 'description')"333 title="Edit in larger window"><base:icon image="zoom.png" /></a>334 335 </td> 336 <td style="width: 20px;"> 337 <base:icon image="zoom.png" 338 onclick="Main.zoom('Description', 'protocol', 'description')" 339 tooltip="Edit in larger window" 340 /> 341 </td> 335 342 </tr> 336 343 </table> 337 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>338 344 </t:tab> 339 345 340 346 <t:tab id="parameters" title="Parameters" 341 347 validate="validateParameters()" helpid="protocol.edit.parameters"> 342 <table class="form" cellspacing=0> 343 344 <tr > 345 <td><b>Annotation types</b> 346 <table border="0" cellspacing="0" cellpadding="0"> 347 <tr > 348 <table class="fullform input100"> 349 <tr class="big"> 350 <th>Annotation types</th> 348 351 <td> 349 <select name="annotationTypes" size="10" multiple style="width: 20em;"> 350 </select> 351 <input type="hidden" name="addedAnnotationTypes" value=""> 352 <input type="hidden" name="removedAnnotationTypes" value=""> 352 <div class="selectionlist"> 353 <table> 354 <tr> 355 <td> 356 <select name="annotationTypes" size="20" multiple> 357 </select> 358 </td> 359 <td style="vertical-align: top;"> 360 <base:buttongroup vertical="true"> 361 <base:button 362 subclass="leftaligned" 363 style="width: 15em;" 364 onclick="addAnnotationTypesOnClick()" 365 title="Add annotation types…" 366 tooltip="Add annotation types" 367 /> 368 <base:button 369 subclass="leftaligned" 370 style="width: 15em;" 371 onclick="removeAnnotationTypesOnClick()" 372 title="Remove" 373 tooltip="Remove the selected annotation types" 374 /> 375 </base:buttongroup> 376 <input type="hidden" name="addedAnnotationTypes" value=""> 377 <input type="hidden" name="removedAnnotationTypes" value=""> 378 </td> 379 </tr> 380 </table> 381 </div> 353 382 </td> 354 <td> 355 <table border="0"> 356 <tr><td width="150"><base:button 357 clazz="leftaligned buttonclass" 358 onclick="addAnnotationTypesOnClick()" 359 title="Add annotation types…" 360 tooltip="Add annotation types" 361 /></td></tr> 362 <tr><td width="150"><base:button 363 clazz="leftaligned buttonclass" 364 onclick="removeAnnotationTypesOnClick()" 365 title="Remove" 366 tooltip="Remove the selected annotation types" 367 /></td></tr> 368 </table> 369 </td> 370 </tr> 371 </table> 372 </td> 373 </tr> 374 </table> 383 </tr> 384 <tr class="dynamic"> 385 <th></th> 386 <td></td> 387 </tr> 388 </table> 375 389 </t:tab> 376 390 377 <t:tab id="annotations" title="Annotations" 378 helpid="annotations.edit" tooltip="Enter values for annotations"> 379 <iframe name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 380 width="100%" height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0 381 marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe> 382 </t:tab> 383 391 <t:tab id="annotations" title="Annotations" helpid="annotations.edit"><iframe 392 name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 393 style="width: 100%; height: 100%;"></iframe></t:tab> 394 384 395 </t:tabcontrol> 385 386 <table align="center">387 <tr>388 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>389 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>390 </tr>391 </table>392 396 </form> 397 398 <div class="legend"> 399 <base:icon image="required.gif" /> = required information 400 </div> 401 402 <base:buttongroup subclass="dialogbuttons"> 403 <base:button onclick="saveSettings()" title="Save" /> 404 <base:button onclick="window.close()" title="Cancel" /> 405 </base:buttongroup> 393 406 </base:body> 394 407 </base:page> -
trunk/www/admin/quota/edit_quota.jsp
r5908 r5921 74 74 StringBuilder sb = new StringBuilder(); 75 75 sb.append("<input type=\"text\" class=\"").append(clazz).append("\""); 76 sb.append(" size=\"16\" maxlength=\"16\"");76 sb.append(" maxlength=\"16\" style=\"width: 16em;\""); 77 77 sb.append(" name=\"").append(location.name()).append(type.getId()).append("\""); 78 78 sb.append(" value=\"").append(fBytes).append("\""); … … 149 149 return false; 150 150 } 151 return true;152 }153 // Validate the "Quota values" tab154 function validateValues()155 {156 var frm = document.forms['quota'];157 151 if (Main.trimString(frm.<%=Location.PRIMARY.name()+total.getId()%>.value) == '') 158 152 { … … 171 165 if (TabControl.validateActiveTab('settings')) 172 166 { 173 if (!validateValues()) return;174 167 frm.submit(); 175 168 } … … 211 204 </base:head> 212 205 <base:body onload="init()"> 213 < p>206 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 214 207 <form action="index.jsp?ID=<%=ID%>" method="post" name="quota" onsubmit="return false;"> 215 208 <input type="hidden" name="cmd" value="UpdateItem"> 216 209 217 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>218 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*320)+"px;"%>"210 <t:tabcontrol id="settings" 211 subclass="content dialogtabcontrol" 219 212 position="bottom" remember="<%=quota != null%>" 220 213 extensions="<%=invoker%>"> 221 214 <t:tab id="info" title="Quota" validate="validateQuota()" helpid="quota.edit"> 222 <table class="f orm" cellspacing=0>223 <tr> 224 <t d class="prompt">Name</td>225 <td ><input <%=requiredClazz%> type="text" name="name"215 <table class="fullform input100 smaller"> 216 <tr> 217 <th>Name</th> 218 <td colspan="2"><input <%=requiredClazz%> type="text" name="name" 226 219 value="<%=HTML.encodeTags(quota == null ? Values.getString(cc.getPropertyValue("name"), "New quota") : quota.getName())%>" 227 size="40" maxlength="<%=Quota.MAX_NAME_LENGTH%>"></td> 228 </tr> 229 <tr > 230 <td class="prompt">Description</td> 231 <td nowrap> 232 <textarea <%=clazz%> rows="4" cols="40" name="description" 233 ><%=HTML.encodeTags(quota == null ? cc.getPropertyValue("description") : quota.getDescription())%></textarea> 234 <a href="javascript:Main.zoom('Description', 'quota', 'description')" 235 title="Edit in larger window"><base:icon image="zoom.png" /></a> 236 </td> 237 </tr> 238 </table> 239 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div> 240 </t:tab> 241 242 <t:tab id="values" title="Quota values" tooltip="Specify maximum disk usage values" 243 validate="validateValues()" helpid="quota.edit.values"> 244 <table class="form" width="100%"> 245 <tr> 220 maxlength="<%=Quota.MAX_NAME_LENGTH%>"></td> 246 221 <td></td> 222 </tr> 223 <tr> 224 <th></th> 247 225 <td><b>Primary location</b></td> 248 226 <td><b>Secondary location</b></td> 249 </tr> 250 <tr> 251 <td class="prompt">Total quota</td> 227 <td></td> 228 </tr> 229 <tr> 230 <th style="border-top: 0px; border-bottom: 1px dotted #A0A0A0;">Total quota</th> 252 231 <td><%=getQuotaInput(quota, total, Location.PRIMARY)%></td> 253 232 <td><%=getQuotaInput(quota, total, Location.SECONDARY)%></td> 254 </tr> 255 <tr> 256 <td colspan="3" style="border-top: 1px solid #cccccc"></td> 233 <td></td> 257 234 </tr> 258 235 <% … … 262 239 %> 263 240 <tr> 264 <td><%=HTML.encodeTags(current.getName())%></td> 265 <td><%=getQuotaInput(quota, current, Location.PRIMARY)%></td> 266 <td><%=getQuotaInput(quota, current, Location.SECONDARY)%></td> 241 <th class="subprompt"><%=HTML.encodeTags(current.getName())%></th> 242 <td><%=getQuotaInput(quota, current, Location.PRIMARY)%></td> 243 <td><%=getQuotaInput(quota, current, Location.SECONDARY)%></td> 244 <td></td> 267 245 </tr> 268 246 <% … … 270 248 %> 271 249 <tr> 250 <th class="subprompt"></th> 272 251 <td colspan="3"> 273 <div align="right"> <i><base:icon image="required.gif" /> = required information</i></div> 274 <br> 252 <div class="messagecontainer help" style="margin: 0.5em 0px 0.5em 0px;"> 275 253 The individual quota values doesn't have to sum up to the total value. 276 254 The most restrictive value is always used. … … 282 260 <li><b>bytes</b> or <b>b</b> for byte values (<code>50 bytes</code>) 283 261 </ul> 262 </div> 284 263 </td> 285 264 </tr> 265 <tr class="dynamic"> 266 <th>Description</th> 267 <td colspan="2"> 268 <textarea <%=clazz%> rows="6" name="description" 269 ><%=HTML.encodeTags(quota == null ? cc.getPropertyValue("description") : quota.getDescription())%></textarea> 270 </td> 271 <td style="width: 20px;"> 272 <base:icon image="zoom.png" 273 onclick="Main.zoom('Description', 'quota', 'description')" 274 tooltip="Edit in larger window" 275 /> 276 </td> 277 </tr> 286 278 </table> 287 288 279 </t:tab> 280 </t:tabcontrol> 281 </form> 289 282 290 </t:tabcontrol> 291 292 <table align="center"> 293 <tr> 294 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td> 295 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 296 </tr> 297 </table> 298 </form> 283 <div class="legend"> 284 <base:icon image="required.gif" /> = required information 285 </div> 286 287 <base:buttongroup subclass="dialogbuttons"> 288 <base:button onclick="saveSettings()" title="Save" /> 289 <base:button onclick="window.close()" title="Cancel" /> 290 </base:buttongroup> 299 291 </base:body> 300 292 </base:page> -
trunk/www/admin/reporterclonetemplates/edit_template.jsp
r5908 r5921 156 156 </base:head> 157 157 <base:body onload="init()"> 158 < p>158 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 159 159 <form action="index.jsp?ID=<%=ID%>" method="post" name="template" onsubmit="return false;"> 160 160 <input type="hidden" name="cmd" value="UpdateItem"> 161 161 162 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>163 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*320)+"px;"%>"162 <t:tabcontrol id="settings" 163 subclass="content dialogtabcontrol" 164 164 position="bottom" remember="<%=template != null%>" switch="switchTab" 165 165 extensions="<%=invoker%>"> 166 166 <t:tab id="info" title="Reporter clone template" validate="validateTemplate()" helpid="reporterclonetemplate.edit"> 167 <table class="f orm" cellspacing=0>167 <table class="fullform input100 smaller"> 168 168 <tr> 169 <t d class="prompt">Name</td>169 <th>Name</th> 170 170 <td><input <%=requiredClazz%> type="text" name="name" 171 171 value="<%=HTML.encodeTags(template == null ? Values.getString(cc.getPropertyValue("name"), "New reporter clone template") : template.getName())%>" 172 size="40" maxlength="<%=ReporterCloneTemplate.MAX_NAME_LENGTH%>"></td> 172 maxlength="<%=ReporterCloneTemplate.MAX_NAME_LENGTH%>"></td> 173 <td></td> 173 174 </tr> 174 <tr >175 <t d class="prompt">Properties</td>175 <tr class="big"> 176 <th>Properties</th> 176 177 <td> 177 <table border="0" cellspacing="0" cellpadding="0" width="100%">178 <table style="width: 100%;"> 178 179 <tr> 179 <td width="45%">180 <td style="width: 47%;"> 180 181 <b>Cloned</b><br> 181 182 <select name="cloned_properties" multiple size="12" style="width: 100%;" … … 194 195 </td> 195 196 196 <td style="vertical-align: middle; padding: 5px;" width="10%"> 197 <br> 198 <base:button 199 onclick="moveBetween(document.forms['template'].uncloned_properties, document.forms['template'].cloned_properties)" 200 title="<img src='../../images/move_left.png' alt='' style='vertical-align: middle;'>" 201 tooltip="Clone the selected uncloned properties" 202 /><p> 203 <base:button 204 onclick="moveBetween(document.forms['template'].cloned_properties, document.forms['template'].uncloned_properties, true)" 205 title="<img src='../../images/move_right.png' alt='' style='vertical-align: middle;'>" 206 tooltip="Do not cloned the selected properties" 207 /> 208 <br> 197 <td style="vertical-align: middle; padding: 5px;" style="width: 6%;"> 198 <base:buttongroup vertical="true"> 199 <base:button 200 onclick="moveBetween(document.forms['template'].uncloned_properties, document.forms['template'].cloned_properties)" 201 image="move_left.png" 202 tooltip="Clone the selected uncloned properties" 203 subclass="square" 204 /> 205 <base:button 206 onclick="moveBetween(document.forms['template'].cloned_properties, document.forms['template'].uncloned_properties, true)" 207 image="move_right.png" 208 tooltip="Do not cloned the selected properties" 209 subclass="square" 210 /> 211 </base:buttongroup> 209 212 </td> 210 213 211 <td width="45%">214 <td style="width: 47%;"> 212 215 <b>Not cloned</b><br> 213 216 <select name="uncloned_properties" multiple size="12" style="width: 100%;" … … 230 233 </table> 231 234 </td> 235 <td></td> 232 236 </tr> 233 <tr >234 <t d class="prompt">Description</td>235 <td nowrap>236 <textarea <%=clazz%> rows=" 4" cols="40" name="description"237 <tr class="dynamic"> 238 <th>Description</th> 239 <td> 240 <textarea <%=clazz%> rows="6" name="description" 237 241 ><%=HTML.encodeTags(template == null ? cc.getPropertyValue("description") : template.getDescription())%></textarea> 238 <a href="javascript:Main.zoom('Description', 'template', 'description')" 239 title="Edit in larger window"><base:icon image="zoom.png" /></a> 242 </td> 243 <td style="width: 20px;"> 244 <base:icon image="zoom.png" 245 onclick="Main.zoom('Description', 'template', 'description')" 246 tooltip="Edit in larger window" 247 /> 240 248 </td> 241 249 </tr> 242 250 </table> 243 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>244 251 </t:tab> 252 </t:tabcontrol> 253 </form> 245 254 246 </t:tabcontrol> 247 248 <table align="center"> 249 <tr> 250 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td> 251 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 252 </tr> 253 </table> 254 </form> 255 <div class="legend"> 256 <base:icon image="required.gif" /> = required information 257 </div> 258 259 <base:buttongroup subclass="dialogbuttons"> 260 <base:button onclick="saveSettings()" title="Save" /> 261 <base:button onclick="window.close()" title="Cancel" /> 262 </base:buttongroup> 255 263 </base:body> 256 264 </base:page> -
trunk/www/admin/roles/edit_role.jsp
r5908 r5921 351 351 </base:head> 352 352 <base:body onload="init()"> 353 < p>353 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 354 354 <form action="index.jsp?ID=<%=ID%>" method="post" name="role" onsubmit="return false;"> 355 355 <input type="hidden" name="cmd" value="UpdateItem"> 356 356 357 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>358 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*300)+"px;"%>"357 <t:tabcontrol id="settings" 358 subclass="content dialogtabcontrol" 359 359 position="bottom" remember="<%=role != null%>" 360 360 extensions="<%=invoker%>"> 361 361 <t:tab id="info" title="Role" validate="validateRole()" helpid="role.edit"> 362 <table class="f orm" cellspacing=0>362 <table class="fullform input100"> 363 363 <tr> 364 <t d class="prompt">Name</td>364 <th>Name</th> 365 365 <td><input <%=requiredClazz%> type="text" name="name" 366 366 value="<%=HTML.encodeTags(role == null ? Values.getString(cc.getPropertyValue("name"), "New role") : role.getName())%>" 367 size="40" maxlength="<%=Role.MAX_NAME_LENGTH%>"></td> 367 maxlength="<%=Role.MAX_NAME_LENGTH%>"></td> 368 <td></td> 368 369 </tr> 369 <tr >370 <t d class="prompt">System-level<br>permissions</td>370 <tr class="big"> 371 <th>System-level<br>permissions</th> 371 372 <td> 372 <input type="checkbox" value="1" name="share_to_everyone" 373 <input type="checkbox" value="1" name="share_to_everyone" id="share_to_everyone" 373 374 <%=hasShareToEveryone ? "checked" : ""%> 374 > Share to Everyone<br>375 <input type="checkbox" value="1" name="act_as_another_user" 375 ><label for="share_to_everyone">Share to Everyone</label><br> 376 <input type="checkbox" value="1" name="act_as_another_user" id="act_as_another_user" 376 377 <%=hasActAsAnotherUser ? "checked" : ""%> 377 > Act as another user<br>378 <input type="checkbox" value="1" name="select_jobagent" 378 ><label for="act_as_another_user">Act as another user</label><br> 379 <input type="checkbox" value="1" name="select_jobagent" id="select_jobagent" 379 380 <%=hasSelectJobagent ? "checked" : ""%> 380 > Select job agent for jobs<br>381 ><label for="select_jobagent">Select job agent for jobs</label><br> 381 382 </td> 383 <td></td> 382 384 </tr> 383 385 <tr> 384 <t d class="prompt">Default</td>386 <th>Default</th> 385 387 <td> 386 388 <input type="radio" name="is_default" id="defaultNo" value="0" … … 389 391 <%=isDefault ? "checked" : ""%>><label for="defaultYes">yes</label> 390 392 </td> 393 <td></td> 391 394 </tr> 392 395 393 <tr >394 <t d class="prompt">Description</td>396 <tr class="dynamic"> 397 <th>Description</th> 395 398 <td nowrap> 396 <textarea <%=clazz%> rows=" 4" cols="40" name="description"399 <textarea <%=clazz%> rows="6" name="description" 397 400 ><%=HTML.encodeTags(role == null ? cc.getPropertyValue("description") : role.getDescription())%></textarea> 398 <a href="javascript:Main.zoom('Description', 'role', 'description')" 399 title="Edit in larger window"><base:icon image="zoom.png" /></a> 401 </td> 402 <td style="width: 20px;"> 403 <base:icon image="zoom.png" 404 onclick="Main.zoom('Description', 'role', 'description')" 405 tooltip="Edit in larger window" 406 /> 400 407 </td> 401 408 </tr> 402 409 </table> 403 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>404 410 </t:tab> 405 411 406 412 <t:tab id="permissions" title="Permissions" 407 413 tooltip="Set permissions for this role" helpid="role.edit.permissions"> 408 <table > 409 <tr > 410 <td> 411 <b>Item types</b><br> 412 <select name="items" size="15" onChange="showPermissions(this[this.selectedIndex].value);" multiple> 413 <% 414 Map<String, List<Item>> permissionGroups = PermissionUtil.getPermissionGroups(); 415 for (Map.Entry<String, List<Item>> entry : permissionGroups.entrySet()) 416 { 417 String name = entry.getKey(); 418 List<Item> items = entry.getValue(); 419 %> 420 <option class="selectoptionheader" value="">-- <%=name%> 421 <% 422 for (Item item : items) 423 { 414 <table class="fullform"> 415 <tr class="dynamic"> 416 <th>Item types</th> 417 <td> 418 <table> 419 <tr> 420 <td> 421 <select name="items" size="15" onChange="showPermissions(this[this.selectedIndex].value);" multiple> 422 <% 423 Map<String, List<Item>> permissionGroups = PermissionUtil.getPermissionGroups(); 424 for (Map.Entry<String, List<Item>> entry : permissionGroups.entrySet()) 425 { 426 String name = entry.getKey(); 427 List<Item> items = entry.getValue(); 428 %> 429 <option class="selectoptionheader" value="">-- <%=name%> 430 <% 431 for (Item item : items) 432 { 433 %> 434 <%=getOption(dc, role, item)%> 435 <% 436 } 437 } 424 438 %> 425 <%=getOption(dc, role, item)%> 426 <% 427 } 428 } 429 %> 430 </select> 431 </td> 432 <td> 433 <b>Permissions</b><br> 434 <input type="checkbox" name="deny" onClick="setPermissions(this.checked, true)">Deny<br> 435 <input type="checkbox" name="create" onClick="setPermissions(this.checked)">Create<br> 436 <input type="checkbox" name="read" onClick="setPermissions(this.checked)">Read<br> 437 <input type="checkbox" name="use" onClick="setPermissions(this.checked)">Use<br> 438 <input type="checkbox" name="write" onClick="setPermissions(this.checked)">Write<br> 439 <input type="checkbox" name="delete" onClick="setPermissions(this.checked)">Delete<br> 440 <input type="checkbox" name="set_owner" onClick="setPermissions(this.checked)">Set owner<br> 441 <input type="checkbox" name="set_permission" onClick="setPermissions(this.checked)">Set permission<br> 439 </select> 440 </td> 441 <td style="vertical-align: top; padding-left: 2px;"> 442 <b>Permissions</b><br> 443 <input type="checkbox" name="deny" id="deny" onClick="setPermissions(this.checked, true)"><label for="deny">Deny</label><br> 444 <input type="checkbox" name="create" id="create" onClick="setPermissions(this.checked)"><label for="create">Create</label><br> 445 <input type="checkbox" name="read" id="read" onClick="setPermissions(this.checked)"><label for="read">Read</label><br> 446 <input type="checkbox" name="use" id="use" onClick="setPermissions(this.checked)"><label for="use">Use</label><br> 447 <input type="checkbox" name="write" id="write" onClick="setPermissions(this.checked)"><label for="write">Write</label><br> 448 <input type="checkbox" name="delete" id="delete" onClick="setPermissions(this.checked)"><label for="delete">Delete</label><br> 449 <input type="checkbox" name="set_owner" id="set_owner" onClick="setPermissions(this.checked)"><label for="set_owner">Set owner</label><br> 450 <input type="checkbox" name="set_permission" id="set_permission" onClick="setPermissions(this.checked)"><label for="set_permission">Set permission</label><br> 451 </td> 452 </tr> 453 </table> 442 454 </td> 443 </tr>444 </table>455 </tr> 456 </table> 445 457 </t:tab> 446 458 447 459 <t:tab id="members" title="Members" tooltip="Add/remove members of this role" 448 460 validate="validateMembers()" helpid="role.edit.members"> 449 <table > 450 <tr > 451 <td> 452 <b>Members</b><br> 453 <select name="members" size="15" multiple 454 <%=!useUsers ? "disabled readonly class=\"disabled\"" : ""%> style="width: 15em;"> 455 </select> 456 <input type="hidden" name="removeUsers" value=""> 457 <input type="hidden" name="addUsers" value=""> 458 </td> 459 <td> 460 <br> 461 <table width="150"> 462 <tr><td><base:button 463 clazz="leftaligned buttonclass" 464 onclick="addUsersOnClick()" 465 title="Add users…" 466 tooltip="Add users to this role" 467 disabled="<%=!useUsers %>" 468 /></td></tr> 469 <tr><td><base:button 470 clazz="leftaligned buttonclass" 471 onclick="removeOnClick()" 472 title="Remove" 473 tooltip="Remove the selected items from this role" 474 disabled="<%=!useUsers%>" 475 /></td></tr> 461 <table class="fullform"> 462 <tr class="dynamic"> 463 <th>Members</th> 464 <td> 465 <div class="selectionlist"> 466 <table> 467 <tr> 468 <td> 469 <select name="members" size="15" multiple <%=!useUsers ? "disabled readonly class=\"disabled\"" : ""%>> 470 </select> 471 </td> 472 <td style="vertical-align: top;"> 473 <base:buttongroup vertical="true"> 474 <base:button 475 subclass="leftaligned" 476 style="width: 12em;" 477 onclick="addUsersOnClick()" 478 title="Add users…" 479 tooltip="Add users to this role" 480 disabled="<%=!useUsers %>" 481 /> 482 <base:button 483 subclass="leftaligned" 484 style="width: 12em;" 485 onclick="removeOnClick()" 486 title="Remove" 487 tooltip="Remove the selected items from this role" 488 disabled="<%=!useUsers%>" 489 /> 490 </base:buttongroup> 491 <input type="hidden" name="removeUsers" value=""> 492 <input type="hidden" name="addUsers" value=""> 493 </td> 494 </tr> 495 </table> 496 </div> 497 </td> 498 </tr> 476 499 </table> 477 </td>478 </tr>479 </table>480 500 </t:tab> 481 501 </t:tabcontrol> 482 483 <table align="center">484 <tr>485 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>486 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>487 </tr>488 </table>489 502 <% 490 503 ItemResultList<RoleKey> roleKeys = roleKeyQuery.list(dc); … … 501 514 %> 502 515 </form> 516 517 <div class="legend"> 518 <base:icon image="required.gif" /> = required information 519 </div> 520 521 <base:buttongroup subclass="dialogbuttons"> 522 <base:button onclick="saveSettings()" title="Save" /> 523 <base:button onclick="window.close()" title="Cancel" /> 524 </base:buttongroup> 525 526 <table align="center"> 527 <tr> 528 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td> 529 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 530 </tr> 531 </table> 532 503 533 </base:body> 504 534 </base:page> -
trunk/www/admin/software/edit_software.jsp
r5908 r5921 146 146 </base:head> 147 147 <base:body onload="init()"> 148 < p>148 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 149 149 <form action="index.jsp?ID=<%=ID%>" method="post" name="software" onsubmit="return false;"> 150 150 <input type="hidden" name="cmd" value="UpdateItem"> 151 151 152 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>153 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*180)+"px;"%>"152 <t:tabcontrol id="settings" 153 subclass="content dialogtabcontrol" 154 154 position="bottom" remember="<%=software != null%>" 155 155 extensions="<%=invoker%>"> 156 156 <t:tab id="info" title="Software" validate="validateSoftware()" helpid="software.edit"> 157 <table class="f orm" cellspacing=0>157 <table class="fullform input100 smaller"> 158 158 <tr> 159 <t d class="prompt">Name</td>159 <th>Name</th> 160 160 <td><input <%=requiredClazz%> type="text" name="name" 161 161 value="<%=HTML.encodeTags(software == null ? Values.getString(cc.getPropertyValue("name"), "New software") : software.getName())%>" 162 size="40" maxlength="<%=Software.MAX_NAME_LENGTH%>"></td> 163 </tr> 164 <tr > 165 <td class="prompt">Type</td> 166 <td colspan="2"> 162 maxlength="<%=Software.MAX_NAME_LENGTH%>"></td> 163 <td></td> 164 </tr> 165 <tr> 166 <th>Type</th> 167 <td> 167 168 <select name="subtype_id" 168 169 <%=!readCurrentSubtype ? "disabled readonly class=\"disabled selectionlist\"" : "class=\"selectionlist\""%>> … … 194 195 </select> 195 196 </td> 197 <td></td> 196 198 </tr> 197 199 <tr> 198 <t d class="prompt">Version</td>200 <th>Version</th> 199 201 <td><input <%=clazz%> type="text" name="version" 200 202 value="<%=HTML.encodeTags(software == null ? cc.getPropertyValue("versionString") : software.getVersionString())%>" 201 size="40" maxlength="<%=Software.MAX_VERSIONSTRING_LENGTH%>"></td> 203 maxlength="<%=Software.MAX_VERSIONSTRING_LENGTH%>"></td> 204 <td></td> 202 205 </tr> 203 206 204 <tr >205 <t d class="prompt">Description</td>206 <td nowrap>207 <textarea <%=clazz%> rows=" 4" cols="40" name="description"207 <tr class="dynamic"> 208 <th>Description</th> 209 <td> 210 <textarea <%=clazz%> rows="6" name="description" 208 211 ><%=HTML.encodeTags(software == null ? cc.getPropertyValue("description") : software.getDescription())%></textarea> 209 <a href="javascript:Main.zoom('Description', 'software', 'description')"210 title="Edit in larger window"><base:icon image="zoom.png" /></a>211 212 </td> 213 <td style="width: 20px;"> 214 <base:icon image="zoom.png" 215 onclick="Main.zoom('Description', 'software', 'description')" 216 tooltip="Edit in larger window" 217 /> 218 </td> 212 219 </tr> 213 220 </table> 214 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>215 221 </t:tab> 216 222 </t:tabcontrol> 217 218 <table align="center">219 <tr>220 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>221 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>222 </tr>223 </table>224 223 </form> 224 225 <div class="legend"> 226 <base:icon image="required.gif" /> = required information 227 </div> 228 229 <base:buttongroup subclass="dialogbuttons"> 230 <base:button onclick="saveSettings()" title="Save" /> 231 <base:button onclick="window.close()" title="Cancel" /> 232 </base:buttongroup> 225 233 </base:body> 226 234 </base:page> -
trunk/www/admin/users/edit_default_membership.jsp
r5905 r5921 115 115 { 116 116 var frm = document.forms['user']; 117 if ( TabControl.validateActiveTab('settings'))117 if (validateMembership()) 118 118 { 119 119 frm.addRoles.value = Link.getActionIds(1, 'R').join(','); … … 188 188 </base:head> 189 189 <base:body onload="init()"> 190 < p>190 <h1><%=title%> <base:help helpid="user.edit.default_membership" /></h1> 191 191 <form action="index.jsp?ID=<%=ID%>" method="post" name="user" onsubmit="return false;"> 192 192 <input type="hidden" name="cmd" value="UpdateDefaultMembership"> 193 193 194 <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3> 195 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*280)+"px;"%>" 196 position="bottom"> 197 198 <t:tab id="members" title="Membership" tooltip="Default group and role membership" 199 validate="validateMembership()" helpid="user.edit.default_membership"> 200 <table > 201 <tr > 194 <div class="content filled"> 195 <div> 196 <table class="fullform smaller bottomborder"> 197 <tr class="dynamic"> 198 <th>Member in</th> 202 199 <td> 203 <b>Member in</b><br> 204 <select name="membership" size="14" multiple <%=!writeMembership ? "disabled readonly class=\"disabled\"" : ""%> style="width: 15em;"> 205 </select> 206 <input type="hidden" name="removeGroups" value=""> 207 <input type="hidden" name="addGroups" value=""> 208 <input type="hidden" name="removeRoles" value=""> 209 <input type="hidden" name="addRoles" value=""> 210 </td> 211 <td> 212 <br> 213 <table width="150"> 214 <tr><td><base:button 215 onclick="addGroupsOnClick()" 216 title="Add groups…" 217 tooltip="Add groups to this user" 218 disabled="<%=!writeMembership %>" 219 /></td></tr> 220 <tr><td><base:button 221 onclick="addRolesOnClick()" 222 title="Add roles…" 223 tooltip="Add roles to this user" 224 disabled="<%=!writeMembership %>" 225 /></td></tr> 226 <tr><td><base:button 227 onclick="removeOnClick()" 228 title="Remove" 229 tooltip="Remove the user from the selected items" 230 disabled="<%=!writeMembership%>" 231 /></td></tr> 232 </table> 200 <div class="selectionlist"> 201 <table> 202 <tr> 203 <td> 204 <select name="membership" size="12" multiple <%=!writeMembership ? "disabled readonly class=\"disabled\"" : ""%> style="width: 15em;"> 205 </select> 206 <input type="hidden" name="removeGroups" value=""> 207 <input type="hidden" name="addGroups" value=""> 208 <input type="hidden" name="removeRoles" value=""> 209 <input type="hidden" name="addRoles" value=""> 210 </td> 211 <td style="vertical-align: top;"> 212 <base:buttongroup vertical="true"> 213 <base:button 214 subclass="leftaligned" 215 style="width: 12em;" 216 onclick="addGroupsOnClick()" 217 title="Add groups…" 218 tooltip="Add groups to this user" 219 disabled="<%=!writeMembership %>" 220 /> 221 <base:button 222 subclass="leftaligned" 223 style="width: 12em;" 224 onclick="addRolesOnClick()" 225 title="Add roles…" 226 tooltip="Add roles to this user" 227 disabled="<%=!writeMembership %>" 228 /> 229 <base:button 230 subclass="leftaligned" 231 style="width: 12em;" 232 onclick="removeOnClick()" 233 title="Remove" 234 tooltip="Remove the user from the selected items" 235 disabled="<%=!writeMembership%>" 236 /> 237 </base:buttongroup> 238 </td> 239 </tr> 240 </table> 241 </div> 233 242 </td> 234 243 </tr> 235 244 </table> 236 237 </t:tab> 238 </t:tabcontrol> 239 240 <table align="center"> 241 <tr> 242 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td> 243 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 244 </tr> 245 </table> 245 </div> 246 247 <div class="padded"> 248 The selected roles and groups will automatically be assigned to new users. 249 </div> 250 </div> 246 251 </form> 252 <base:buttongroup subclass="dialogbuttons"> 253 <base:button onclick="saveSettings()" title="Save" /> 254 <base:button onclick="window.close()" title="Cancel" /> 255 </base:buttongroup> 247 256 </base:body> 248 257 </base:page> -
trunk/www/admin/users/edit_user.jsp
r5908 r5921 427 427 </base:head> 428 428 <base:body onload="init()"> 429 < p>429 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 430 430 <form action="index.jsp?ID=<%=ID%>" method="post" name="user" onsubmit="return false;"> 431 431 <input type="hidden" name="cmd" value="UpdateItem"> 432 432 433 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>434 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*300)+"px;"%>"433 <t:tabcontrol id="settings" 434 subclass="content dialogtabcontrol" 435 435 position="bottom" remember="<%=user != null%>" 436 436 extensions="<%=invoker%>"> 437 437 <t:tab id="info" title="User" validate="validateUser()" helpid="user.edit"> 438 <table class="f orm" cellspacing=0>439 <tr> 440 <t d class="prompt">Name</td>441 <td colspan="2"><input <%=requiredClazz%> type="text" name="name"438 <table class="fullform input100"> 439 <tr> 440 <th>Name</th> 441 <td><input <%=requiredClazz%> type="text" name="name" 442 442 value="<%=HTML.encodeTags(user == null ? Values.getString(cc.getPropertyValue("name"), "New user") : user.getName())%>" 443 443 size="40" maxlength="<%=User.MAX_NAME_LENGTH%>"></td> 444 </tr>445 446 <tr> 447 <t d class="prompt">Login</td>448 <td colspan="2"><input <%=requiredClazz%> type="text" name="login"444 <td></td> 445 </tr> 446 <tr> 447 <th>Login</th> 448 <td><input <%=requiredClazz%> type="text" name="login" 449 449 value="<%=HTML.encodeTags(user == null ? cc.getPropertyValue("login") : user.getLogin())%>" 450 size="40" maxlength="<%=User.MAX_LOGIN_LENGTH%>"></td> 451 </tr> 452 <tr> 453 <td class="prompt">External ID</td> 454 <td colspan="2"><input <%=clazz%> type="text" name="external_id" 450 maxlength="<%=User.MAX_LOGIN_LENGTH%>"></td> 451 <td></td> 452 </tr> 453 <tr> 454 <th>External ID</th> 455 <td><input <%=clazz%> type="text" name="external_id" 455 456 value="<%=HTML.encodeTags(user == null ? cc.getPropertyValue("externalId") : user.getExternalId())%>" 456 size="40" maxlength="<%=User.MAX_EXTERNAL_ID_LENGTH%>"></td> 457 </tr> 458 <tr> 459 <td class="prompt">New password</td> 460 <td colspan="2"><input <%=itemId == 0 ? requiredClazz : clazz%> type="password" name="new_password" value="" size="30" maxlength="30"></td> 461 </tr> 462 <tr> 463 <td class="prompt">Retype password</td> 464 <td colspan="2"><input <%=itemId == 0 ? requiredClazz : clazz%> type="password" name="retype_password" value="" size="30" maxlength="30"></td> 465 </tr> 466 <tr > 467 <td class="prompt">Quota</td> 468 <td colspan="2"> 469 <select name="quota_id" <%=!useQuota ? "disabled readonly class=\"disabled\"" : "class=\"required\""%>> 457 maxlength="<%=User.MAX_EXTERNAL_ID_LENGTH%>"></td> 458 <td></td> 459 </tr> 460 <tr> 461 <th>New password</th> 462 <td><input <%=itemId == 0 ? requiredClazz : clazz%> type="password" name="new_password" value="" maxlength="30" style="max-width: 20em;" 463 <%=itemId == 0 ? "" : "placeholder=\"leave empty to keep the password\"" %> 464 ></td> 465 <td></td> 466 </tr> 467 <tr> 468 <th class="subprompt">Retype password</th> 469 <td><input <%=itemId == 0 ? requiredClazz : clazz%> type="password" name="retype_password" value="" maxlength="30" style="max-width: 20em;"></td> 470 <td></td> 471 </tr> 472 <tr> 473 <th>Quota</th> 474 <td> 475 <select name="quota_id" <%=!useQuota ? "disabled readonly class=\"disabled\"" : "class=\"required selectionlist\""%>> 470 476 <% 471 477 if (!readQuota) … … 492 498 %> 493 499 </td> 494 </tr> 495 <tr > 496 <td class="prompt">Quota group</td> 497 <td colspan="2"> 498 <select name="quotagroup_id" <%=!useGroups ? "disabled readonly class=\"disabled\"" : ""%>> 500 <td></td> 501 </tr> 502 <tr> 503 <th>Quota group</th> 504 <td> 505 <select name="quotagroup_id" <%=!useGroups ? "disabled readonly class=\"disabled\"" : "class=\"selectionlist\""%>> 499 506 <% 500 507 if (!readGroups) … … 528 535 %> 529 536 </td> 530 </tr> 531 <tr > 532 <td class="prompt">Home directory</td> 533 <td colspan="2"> 534 <select name="homedirectory_id" <%=!readDirectories ? "disabled readonly class=\"disabled\"" : ""%>> 537 <td></td> 538 </tr> 539 <tr> 540 <th>Home directory</th> 541 <td> 542 <select name="homedirectory_id" <%=!readDirectories ? "disabled readonly class=\"disabled\"" : "class=\"selectionlist\""%>> 535 543 <% 536 544 if (!readDirectories) … … 568 576 %> 569 577 </td> 570 </tr> 571 <tr> 572 <td class="prompt">Expiration date</td> 578 <td></td> 579 </tr> 580 <tr> 581 <th>Expiration date</th> 573 582 <td> 574 <input <%=clazz%> type="text" name="expiration_date" 575 value="<%=HTML.encodeTags(dateFormatter.format( 576 user == null ? (Date)cc.getPropertyObject("expirationDate") : user.getExpirationDate()) 577 )%>" 578 size="20" maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 583 <table> 584 <tr> 585 <td> 586 <input <%=clazz%> type="text" name="expiration_date" style="width: 15em;" 587 value="<%=HTML.encodeTags(dateFormatter.format( 588 user == null ? (Date)cc.getPropertyObject("expirationDate") : user.getExpirationDate()) 589 )%>" 590 maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 591 </td> 592 <td> 593 <base:button 594 onclick="<%="Dates.selectDate('Expiration date', 'user', 'expiration_date', null, '"+jsDateFormat + "')"%>" 595 image="calendar.png" 596 title="Calendar…" 597 tooltip="Select a date from a calendar" 598 /> 599 </td> 600 </tr> 601 </table> 579 602 </td> 580 <td> 581 <base:button 582 onclick="<%="Dates.selectDate('Expiration date', 'user', 'expiration_date', null, '"+jsDateFormat + "')"%>" 583 image="calendar.png" 584 title="Calendar…" 585 tooltip="Select a date from a calendar" 586 /> 587 </td> 588 </tr> 589 <tr> 590 <td class="prompt">Multi-user account</td> 591 <td colspan="2"><input type="checkbox" name="multiuser_account" value="1" 603 <td></td> 604 </tr> 605 <tr> 606 <th><label for="multiuser_account">Multi-user account</label></th> 607 <td><input type="checkbox" name="multiuser_account" id="multiuser_account" value="1" 592 608 <%=(user != null && user.isMultiuserAccount()) || 593 609 (user == null && Values.getBoolean(cc.getPropertyValue("multiuserAccount"))) ? "checked" : ""%>></td> 594 </tr> 595 <tr> 596 <td class="prompt">Disabled</td> 597 <td colspan="2"><input type="checkbox" name="disabled" value="1" 610 <td></td> 611 </tr> 612 <tr> 613 <th><label for="disabled">Disabled</label></th> 614 <td><input type="checkbox" name="disabled" id="disabled" value="1" 598 615 <%=(user != null && user.isDisabled()) || 599 616 (user == null && Values.getBoolean(cc.getPropertyValue("disabled"))) ? "checked" : ""%>></td> 600 </tr> 601 617 <td></td> 618 </tr> 619 <tr class="dynamic"> 620 <th>Description</th> 621 <td> 622 <textarea <%=clazz%> rows="6" name="description" 623 ><%=HTML.encodeTags(user == null ? cc.getPropertyValue("description") : user.getDescription())%></textarea> 624 </td> 625 <td style="width: 20px;"> 626 <base:icon image="zoom.png" 627 onclick="Main.zoom('Description', 'user', 'description')" 628 tooltip="Edit in larger window" 629 /> 630 </td> 631 </tr> 602 632 </table> 603 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>604 633 </t:tab> 605 634 606 635 <t:tab id="contact" title="Contact information" 607 636 tooltip="Email, adress, organisation, etc." validate="validateContact()" helpid="user.edit.contact"> 608 <table class="f orm" cellspacing=0>609 <tr> 610 <t d class="prompt">Email</td>637 <table class="fullform input100"> 638 <tr> 639 <th>Email</th> 611 640 <td><input <%=clazz%> type="text" name="email" 612 641 value="<%=HTML.encodeTags(user == null ? cc.getPropertyValue("email") : user.getEmail())%>" 613 size="40" maxlength="<%=User.MAX_EMAIL_LENGTH%>"></td> 614 </tr> 615 <tr> 616 <td class="prompt">Organisation</td> 642 maxlength="<%=User.MAX_EMAIL_LENGTH%>"></td> 643 <td></td> 644 </tr> 645 <tr> 646 <th>Organisation</th> 617 647 <td><input <%=clazz%> type="text" name="organisation" 618 648 value="<%=HTML.encodeTags(user == null ? cc.getPropertyValue("organisation") : user.getOrganisation())%>" 619 size="40" maxlength="<%=User.MAX_ORGANISATION_LENGTH%>"></td> 620 </tr> 621 <tr > 622 <td class="prompt">Address</td> 649 maxlength="<%=User.MAX_ORGANISATION_LENGTH%>"></td> 650 <td></td> 651 </tr> 652 <tr class="big"> 653 <th>Address</th> 623 654 <td> 624 <textarea <%=clazz%> rows=" 4" cols="40" name="address"655 <textarea <%=clazz%> rows="6" name="address" 625 656 wrap="off"><%=HTML.encodeTags(user == null ? cc.getPropertyValue("address") : user.getAddress())%></textarea> 626 <a href="javascript:Main.zoom('Address', 'user', 'address')" title="Edit in larger window"><base:icon image="zoom.png" /></a>627 657 </td> 628 </tr> 629 <tr> 630 <td class="prompt">Phone</td> 658 <td style="width: 20px;"> 659 <base:icon image="zoom.png" 660 onclick="Main.zoom('Address', 'user', 'address')" 661 tooltip="Edit in larger window" 662 /> 663 </td> 664 </tr> 665 <tr> 666 <th>Phone</th> 631 667 <td><input <%=clazz%> type="text" name="phone" 632 668 value="<%=HTML.encodeTags(user == null ? cc.getPropertyValue("phone") : user.getPhone())%>" 633 size="40" maxlength="<%=User.MAX_PHONE_LENGTH%>"></td> 634 </tr> 635 <tr> 636 <td class="prompt">Fax</td> 669 maxlength="<%=User.MAX_PHONE_LENGTH%>"></td> 670 <td></td> 671 </tr> 672 <tr> 673 <th>Fax</th> 637 674 <td><input <%=clazz%> type="text" name="fax" 638 675 value="<%=HTML.encodeTags(user == null ? cc.getPropertyValue("fax") : user.getFax())%>" 639 size="40" maxlength="<%=User.MAX_FAX_LENGTH%>"></td> 640 </tr> 641 <tr> 642 <td class="prompt">Url</td> 676 maxlength="<%=User.MAX_FAX_LENGTH%>"></td> 677 <td></td> 678 </tr> 679 <tr> 680 <th>Url</th> 643 681 <td><input <%=clazz%> type="text" name="url" 644 682 value="<%=HTML.encodeTags(user == null ? cc.getPropertyValue("url") : user.getUrl())%>" 645 size="40" maxlength="<%=User.MAX_URL_LENGTH%>"></td> 646 </tr> 647 <tr > 648 <td class="prompt">Description</td> 649 <td nowrap> 650 <textarea <%=clazz%> rows="4" cols="40" name="description" 651 ><%=HTML.encodeTags(user == null ? cc.getPropertyValue("description") : user.getDescription())%></textarea> 652 <a href="javascript:Main.zoom('Description', 'user', 'description')" title="Edit in larger window"><base:icon image="zoom.png" /></a> 653 </td> 683 maxlength="<%=User.MAX_URL_LENGTH%>"></td> 684 <td></td> 685 </tr> 686 <tr class="dynamic"> 687 <th></th> 688 <td colspan="2"></td> 654 689 </tr> 655 690 </table> … … 661 696 <t:tab id="extended" title="Additional info" 662 697 validate="validateExtendedProperties()" helpid="user.edit.additional"> 663 <table class="f orm" cellspacing="0">698 <table class="fullform input100"> 664 699 <% 665 700 for (ExtendedProperty ep : ExtendedProperties.getProperties("UserData")) … … 670 705 Object value = user == null ? cc.getPropertyValue(name) : user.getExtended(name); 671 706 String theClazz = required ? requiredClazz : clazz; 707 boolean addZoom = false; 672 708 %> 673 <tr 674 <t d class="prompt"><%=HTML.encodeTags(ep.getTitle())%></td>709 <tr> 710 <th><%=HTML.encodeTags(ep.getTitle())%></th> 675 711 <td> 676 712 <% … … 678 714 { 679 715 %> 680 <input <%=theClazz%> type="text" name="<%=name%>" 716 <input <%=theClazz%> type="text" name="<%=name%>" style="width: 15m;" 681 717 value="<%=value == null ? "" : value%>" 682 size="20"maxlength="20" onkeypress="return Numbers.integerOnly(event)"718 maxlength="20" onkeypress="return Numbers.integerOnly(event)" 683 719 > 684 720 <% … … 688 724 %> 689 725 <input <%=theClazz%> type="text" name="<%=name%>" 690 value="<%=value == null ? "" : value%>" 691 size="20"maxlength="20" onkeypress="return Numbers.numberOnly(event)"726 value="<%=value == null ? "" : value%>" style="width: 15m;" 727 maxlength="20" onkeypress="return Numbers.numberOnly(event)" 692 728 > 693 729 <% … … 698 734 <input <%=theClazz%> type="text" name="<%=name%>" 699 735 value="<%=HTML.encodeTags((String)value)%>" 700 size="40"maxlength="<%=ep.getLength()%>"736 maxlength="<%=ep.getLength()%>" 701 737 > 702 738 <% … … 704 740 else if (type == Type.TEXT) 705 741 { 742 addZoom = true; 706 743 %> 707 <textarea <%=theClazz%> name="<%=name%>" rows="6" cols="40"744 <textarea <%=theClazz%> name="<%=name%>" rows="6" 708 745 ><%=HTML.encodeTags((String)value)%></textarea> 709 <a href="javascript:Main.zoom(710 '<%=HTML.javaScriptEncode(ep.getTitle())%>',711 'user', '<%=name%>')"712 title="Edit in larger window"><base:icon image="zoom.png" /></a>713 746 <% 714 747 } … … 740 773 <td> 741 774 <input <%=theClazz%> type="text" name="<%=name%>" 742 value="<%=dateFormatter.format((Date)value)%>" 743 size="20"maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"775 value="<%=dateFormatter.format((Date)value)%>" style="width: 15em;" 776 maxlength="20" title="Enter date in format: <%=htmlDateFormat%>" 744 777 > 745 778 </td> … … 763 796 <td> 764 797 <input <%=theClazz%> type="text" name="<%=name%>" 765 value="<%=dateTimeFormatter.format((Date)value)%>" 766 size="20"maxlength="20" title="Enter timestamp in format: <%=htmlDateTimeFormat%>"798 value="<%=dateTimeFormatter.format((Date)value)%>" style="width: 15em;" 799 maxlength="20" title="Enter timestamp in format: <%=htmlDateTimeFormat%>" 767 800 > 768 801 </td> … … 781 814 %> 782 815 </td> 816 <td style="width: 20px;"> 817 <%if (addZoom) 818 { 819 %> 820 <base:icon image="zoom.png" 821 onclick="<%="Main.zoom('" + HTML.javaScriptEncode(ep.getTitle()) + "', 'user', '" + name + "')"%>" 822 tooltip="Edit in larger window" 823 /> 824 <% 825 } 826 %> 827 </td> 783 828 </tr> 784 829 <% 785 830 } 786 831 %> 832 <tr class="dynamic"> 833 <th></th> 834 <td colspan="2"></td> 835 </tr> 787 836 </table> 788 837 </t:tab> … … 792 841 <t:tab id="members" title="Membership" tooltip="Manage group and role membership" 793 842 validate="validateMembership()" helpid="user.edit.membership"> 794 <table > 795 <tr > 796 <td> 797 <b>Member in</b><br> 798 <select name="membership" size="15" multiple <%=!writeMembership ? "disabled readonly class=\"disabled\"" : ""%> style="width: 15em;"> 799 </select> 800 <input type="hidden" name="removeGroups" value=""> 801 <input type="hidden" name="addGroups" value=""> 802 <input type="hidden" name="removeRoles" value=""> 803 <input type="hidden" name="addRoles" value=""> 804 </td> 805 <td> 806 <br> 807 <table width="150"> 808 <tr><td><base:button 809 clazz="leftaligned buttonclass" 810 onclick="addGroupsOnClick()" 811 title="Add groups…" 812 tooltip="Add groups to this user" 813 disabled="<%=!writeMembership %>" 814 /></td></tr> 815 <tr><td><base:button 816 clazz="leftaligned buttonclass" 817 onclick="addRolesOnClick()" 818 title="Add roles…" 819 tooltip="Add roles to this user" 820 disabled="<%=!writeMembership %>" 821 /></td></tr> 822 <tr><td><base:button 823 clazz="leftaligned buttonclass" 824 onclick="removeOnClick()" 825 title="Remove" 826 tooltip="Remove the user from the selected items" 827 disabled="<%=!writeMembership%>" 828 /></td></tr> 829 </table> 830 </td> 843 <table class="fullform"> 844 <tr class="dynamic"> 845 <th>Member in</th> 846 <td> 847 <div class="selectionlist"> 848 <table> 849 <tr> 850 <td> 851 <select name="membership" size="15" multiple <%=!writeMembership ? "disabled readonly class=\"disabled\"" : ""%>> 852 </select> 853 <input type="hidden" name="removeGroups" value=""> 854 <input type="hidden" name="addGroups" value=""> 855 <input type="hidden" name="removeRoles" value=""> 856 <input type="hidden" name="addRoles" value=""> 857 </td> 858 <td style="vertical-align: top;"> 859 <base:buttongroup vertical="true"> 860 <base:button 861 subclass="leftaligned" 862 onclick="addGroupsOnClick()" 863 title="Add groups…" 864 tooltip="Add groups to this user" 865 disabled="<%=!writeMembership %>" 866 /> 867 <base:button 868 subclass="leftaligned" 869 onclick="addRolesOnClick()" 870 title="Add roles…" 871 tooltip="Add roles to this user" 872 disabled="<%=!writeMembership %>" 873 /> 874 <base:button 875 subclass="leftaligned" 876 onclick="removeOnClick()" 877 title="Remove" 878 tooltip="Remove the user from the selected items" 879 disabled="<%=!writeMembership%>" 880 /> 881 </base:buttongroup> 882 </td> 883 </tr> 884 </table> 885 </div> 886 </td> 831 887 </tr> 832 888 </table> … … 834 890 </t:tab> 835 891 </t:tabcontrol> 836 837 <table align="center">838 <tr>839 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>840 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>841 </tr>842 </table>843 892 </form> 893 894 <div class="legend"> 895 <base:icon image="required.gif" /> = required information 896 </div> 897 898 <base:buttongroup subclass="dialogbuttons"> 899 <base:button onclick="saveSettings()" title="Save" /> 900 <base:button onclick="window.close()" title="Cancel" /> 901 </base:buttongroup> 844 902 </base:body> 845 903 </base:page> -
trunk/www/admin/users/list_users.jsp
r5910 r5921 201 201 function impersonate(userId) 202 202 { 203 Main.openPopup('../../impersonate.jsp?ID=<%=ID%>&user_id='+userId, 'Impersonate', 4 80, 240);203 Main.openPopup('../../impersonate.jsp?ID=<%=ID%>&user_id='+userId, 'Impersonate', 450, 300); 204 204 } 205 205 function defaultMembership() 206 206 { 207 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=EditDefaultMembership', 'DefaultMembership', 600, 400);207 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=EditDefaultMembership', 'DefaultMembership', 450, 300); 208 208 } 209 209 </script> -
trunk/www/biomaterials/tags/edit_tag.jsp
r5913 r5921 196 196 <th>Description</th> 197 197 <td> 198 <textarea <%=clazz%> rows=" 4" name="description"198 <textarea <%=clazz%> rows="6" name="description" 199 199 ><%=HTML.encodeTags(tag == null ? cc.getPropertyValue("description") : tag.getDescription())%></textarea> 200 200 </td> -
trunk/www/filemanager/fileservers/edit_fileserver.jsp
r5915 r5921 208 208 <th class="subprompt"></th> 209 209 <td> 210 <div class=" helpmessage" style="margin-top: 0.5em; height: <%=(int)(scale*70)%>px; overflow: auto;">210 <div class="messagecontainer help" style="margin: 0.5em 0px 0.5em 0px; height: <%=(int)(scale*70)%>px; overflow: auto;"> 211 211 <div id="cmf.auto.description" style="display: none;"> 212 212 Automatically select a connection manager among those -
trunk/www/include/scripts/main.js
r5920 r5921 585 585 this.controllers['ANNOTATIONTYPE'] = { url:'admin/annotationtypes/index.jsp', width:540, height:420 }; 586 586 this.controllers['ANNOTATIONTYPECATEGORY'] = { url:'admin/annotationtypecategories/index.jsp', width:540, height:400 }; 587 this.controllers['CLIENT'] = { url:'admin/clients/index.jsp', width:500, height:340 }; 588 this.controllers['HELP'] = { url:'admin/clients/help/index.jsp', width:600, height:500 }; 589 this.controllers['FILETYPE'] = { url:'admin/filetypes/index.jsp', width:440, height:280 }; 590 this.controllers['GROUP'] = { url:'admin/groups/index.jsp', width:540, height:400 }; 591 this.controllers['HARDWARE'] = { url:'admin/hardware/index.jsp', width:500, height:340 }; 592 this.controllers['HARDWARETYPE'] = { url:'admin/hardwaretypes/index.jsp', width:500, height:340 }; 587 this.controllers['CLIENT'] = { url:'admin/clients/index.jsp', width:450, height:300 }; 588 this.controllers['HELP'] = { url:'admin/clients/help/index.jsp', width:600, height:400 }; 589 this.controllers['GROUP'] = { url:'admin/groups/index.jsp', width:600, height:400 }; 590 this.controllers['HARDWARE'] = { url:'admin/hardware/index.jsp', width:450, height:300 }; 593 591 this.controllers['MIMETYPE'] = { url:'admin/mimetypes/index.jsp', width:540, height:400 }; 594 this.controllers['NEWS'] = { url:'admin/news/index.jsp', width: 540, height:400 };592 this.controllers['NEWS'] = { url:'admin/news/index.jsp', width:600, height:400 }; 595 593 this.controllers['PLUGINCONFIGURATION'] = { url:'admin/pluginconfigurations/index.jsp', width:800, height:500 }; 596 594 this.controllers['PLUGINDEFINITION'] = { url:'admin/plugindefinitions/index.jsp', width:800, height:500 }; 597 595 this.controllers['PLUGINTYPE'] = { url:'admin/plugintypes/index.jsp', width:700, height:400 }; 598 596 this.controllers['JOBAGENT'] = { url:'admin/jobagents/index.jsp', width:700, height:400 }; 599 this.controllers['PROTOCOL'] = { url:'admin/protocols/index.jsp', width:800, height:500 }; 600 this.controllers['PROTOCOLTYPE'] = { url:'admin/protocoltypes/index.jsp', width:500, height:340 }; 601 this.controllers['QUOTA'] = { url:'admin/quota/index.jsp', width:600, height:440 }; 597 this.controllers['PROTOCOL'] = { url:'admin/protocols/index.jsp', width:750, height:500 }; 598 this.controllers['QUOTA'] = { url:'admin/quota/index.jsp', width:750, height:500 }; 602 599 this.controllers['QUOTATYPE'] = { url:'admin/quotatypes/index.jsp', width:500, height:340 }; 603 600 this.controllers['REPORTERTYPE'] = { url:'admin/reportertypes/index.jsp', width:500, height:340 }; 604 this.controllers['ROLE'] = { url:'admin/roles/index.jsp', width:600, height:440 }; 605 this.controllers['SOFTWARE'] = { url:'admin/software/index.jsp', width:500, height:340 }; 606 this.controllers['SOFTWARETYPE'] = { url:'admin/softwaretypes/index.jsp', width:500, height:340 }; 607 this.controllers['USER'] = { url:'admin/users/index.jsp', width:600, height:440 }; 601 this.controllers['ROLE'] = { url:'admin/roles/index.jsp', width:600, height:400 }; 602 this.controllers['SOFTWARE'] = { url:'admin/software/index.jsp', width:450, height:300 }; 603 this.controllers['USER'] = { url:'admin/users/index.jsp', width:750, height:500 }; 608 604 this.controllers['ANYTOANY'] = { url:'common/anytoany/index.jsp', width:500, height:340, popup:true }; 609 605 this.controllers['EXTRAVALUETYPE'] = { url:'admin/extravaluetypes/index.jsp', width:500, height:400 }; … … 617 613 this.controllers['ANNOTATION'] = { url:'common/annotations/index.jsp', width:700, height:480, edit:true, popup:true }; 618 614 this.controllers['ITEMSUBTYPE'] = { url:'admin/itemsubtypes/index.jsp', width:640, height:440 }; 619 this.controllers['REPORTERCLONETEMPLATE'] = { url:'admin/reporterclonetemplates/index.jsp', width: 640, height:440 };615 this.controllers['REPORTERCLONETEMPLATE'] = { url:'admin/reporterclonetemplates/index.jsp', width:750, height:500 }; 620 616 } 621 617 -
trunk/www/my_base/user/settings.jsp
r5908 r5921 310 310 %> 311 311 <input <%=isRequired%> <%=ifDisabled %> type="text" name="<%=name%>" 312 value="<%=value == null ? "" : value%>" 313 size="20"maxlength="20" onkeypress="return Numbers.integerOnly(event)"312 value="<%=value == null ? "" : value%>" style="width: 15m;" 313 maxlength="20" onkeypress="return Numbers.integerOnly(event)" 314 314 > 315 315 <% … … 319 319 %> 320 320 <input <%=isRequired%> <%=ifDisabled%> type="text" name="<%=name%>" 321 value="<%=value == null ? "" : value%>" 322 size="20"maxlength="20" onkeypress="return Numbers.numberOnly(event)"321 value="<%=value == null ? "" : value%>" style="width: 15m;" 322 maxlength="20" onkeypress="return Numbers.numberOnly(event)" 323 323 > 324 324 <% … … 368 368 <td> 369 369 <input <%=isRequired%> <%=ifDisabled%> type="text" name="<%=name%>" 370 value="<%=dateFormatter.format((Date)value)%>" 371 size="20"maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"370 value="<%=dateFormatter.format((Date)value)%>" style="width: 15em;" 371 maxlength="20" title="Enter date in format: <%=htmlDateFormat%>" 372 372 > 373 373 </td> 374 <td> </td>375 374 <td> 376 375 <base:button … … 393 392 <td> 394 393 <input <%=isRequired%> <%=ifDisabled%> type="text" name="<%=name%>" 395 value="<%=dateTimeFormatter.format((Date)value)%>" 396 size="20"maxlength="20" title="Enter timestamp in format: <%=htmlDateTimeFormat%>"394 value="<%=dateTimeFormatter.format((Date)value)%>" style="width: 15em;" 395 maxlength="20" title="Enter timestamp in format: <%=htmlDateTimeFormat%>" 397 396 > 398 397 </td> 399 <td> </td>400 398 <td> 401 399 <base:button -
trunk/www/views/experiments/edit_experiment.jsp
r5916 r5921 616 616 /> 617 617 </base:buttongroup> 618 <input type="hidden" name="added RawBioAssays" value="">619 <input type="hidden" name="removed RawBioAssays" value="">618 <input type="hidden" name="addedAnnotationTypes" value=""> 619 <input type="hidden" name="removedAnnotationTypes" value=""> 620 620 </td> 621 621 </tr>
Note: See TracChangeset
for help on using the changeset viewer.