Changeset 5944
- Timestamp:
- Feb 2, 2012, 2:10:37 PM (11 years ago)
- Location:
- trunk/www/lims
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/lims/arraybatches/view_batch.jsp
r5942 r5944 171 171 </base:head> 172 172 <base:body> 173 <p> 174 <p:path> 175 <p:pathelement title="Array batches" href="<%="index.jsp?ID="+ID%>" /> 176 <p:pathelement title="<%=HTML.encodeTags(batch.getName())%>" /> 177 </p:path> 173 <p:path><p:pathelement 174 title="Array batches" href="<%="index.jsp?ID="+ID%>" 175 /><p:pathelement title="<%=HTML.encodeTags(batch.getName())%>" 176 /></p:path> 178 177 179 <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" remember="false"> 178 <t:tabcontrol 179 id="main" 180 subclass="content mastertabcontrol" 181 active="<%=tab%>" switch="switchTab" remember="false"> 180 182 <t:tab id="properties" title="Properties"> 181 <tbl:toolbar 182 > 183 <tbl:button 184 disabled="<%=!writePermission%>" 185 image="edit.gif" 186 onclick="editItem()" 187 title="Edit…" 188 tooltip="<%=writePermission ? "Edit this array batch" : "You do not have permission to edit this array batch"%>" 189 /> 190 <tbl:button 191 disabled="<%=!deletePermission%>" 192 image="delete.gif" 193 onclick="deleteItem()" 194 title="Delete" 195 visible="<%=!batch.isRemoved()%>" 196 tooltip="<%=deletePermission ? "Delete this array batch" : "You do not have permission to delete this array batch"%>" 197 /> 198 <tbl:button 199 disabled="<%=!writePermission%>" 200 image="restore.gif" 201 onclick="restoreItem()" 202 title="Restore" 203 visible="<%=batch.isRemoved()%>" 204 tooltip="<%=writePermission ? "Restore this array batch" : "You do not have permission to restore this array batch"%>" 205 /> 206 <tbl:button 207 image="add.png" 208 onclick="newSlide()" 209 title="New slide…" 210 tooltip="Create a new array slide in this batch" 211 visible="<%=sc.hasPermission(Permission.CREATE, Item.ARRAYSLIDE) && usePermission%>" 212 /> 213 <tbl:button 214 image="new_wizard.gif" 215 onclick="multipleNewSlides()" 216 title="Create slides…" 217 tooltip="Create multiple new array slides in this batch using a wizard" 218 visible="<%=sc.hasPermission(Permission.CREATE, Item.ARRAYSLIDE) && usePermission%>" 219 /> 220 <tbl:button 221 disabled="<%=!sharePermission%>" 222 image="share.gif" 223 onclick="shareItem()" 224 title="Share…" 225 tooltip="<%=sharePermission ? "Share this array batch to other user, groups and projects" : "You do not have permission to share this array batch"%>" 226 /> 227 <tbl:button 228 disabled="<%=!setOwnerPermission%>" 229 image="take_ownership.png" 230 onclick="setOwner()" 231 title="Set owner…" 232 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 233 /> 234 <tbl:button 235 image="import.gif" 236 onclick="runPlugin('ImportItem')" 237 title="Import…" 238 tooltip="Import data" 239 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 240 /> 241 <tbl:button 242 image="export.gif" 243 onclick="runPlugin('ExportItem')" 244 title="Export…" 245 tooltip="Export data" 246 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 247 /> 248 <tbl:button 249 image="runplugin.gif" 250 onclick="runPlugin('RunPlugin')" 251 title="Run plugin…" 252 tooltip="Run a plugin" 253 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 254 /> 255 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 256 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 257 <tbl:button 258 image="help.png" 259 onclick="<%="Main.openHelp('" + ID +"', 'arraybatch.view.properties')"%>" 260 title="Help…" 261 tooltip="Get help about this page" 262 /> 263 </tbl:toolbar> 264 <div class="boxedbottom"> 265 <div class="itemstatus">Permissions on this item: <i><%=PermissionUtil.getFullPermissionNames(batch)%></i></div> 266 <% 267 if (batch.isRemoved() || batch.isShared()) 268 { 269 %> 270 <div class="itemstatus"> 183 <div> 184 <table class="fullform bottomborder"> 185 <tr> 186 <th class="itemstatus"> 271 187 <base:icon 272 image="<%=deletePermanentlyPermission ? "deleted.gif" : "deleted_disabled.gif"%>" 273 onclick="<%=deletePermanentlyPermission ? "deleteItemPermanently()" : null%>" 274 tooltip="<%=deletePermanentlyPermission ? "Permanently delete this item" : null%>" 275 visible="<%=isRemoved%>"> This item has been flagged for deletion<br></base:icon> 188 image="shared.gif" 189 visible="<%=batch.isShared()%>" 190 tooltip="This item is shared to other users, groups and/or projects" 191 /> 192 <base:icon 193 image="deleted.gif" 194 onclick="deleteItemPermanently()" 195 tooltip="This item has been flagged for deletion. Click to delete it now." 196 enabled="<%=deletePermanentlyPermission %>" 197 visible="<%=isRemoved%>" 198 /> 276 199 <base:icon image="used.gif" 277 200 onclick="showUsingItems()" 278 tooltip="Show the items that are using this one" 279 visible="<%=isUsed%>"> This item is used by other items and can't be permanently deleted<br></base:icon> 280 <base:icon image="shared.gif" 281 visible="<%=batch.isShared()%>"> This item is shared to other user, groups and/or projects</base:icon> 282 </div> 283 <% 284 } 285 %> 286 <table class="form" cellspacing="0"> 287 <tr> 288 <td class="prompt">Name</td> 201 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 202 visible="<%=isRemoved && isUsed%>" /> 203 </th> 204 <td style="padding: 0px;"> 205 <tbl:toolbar subclass="bottomborder"> 206 <tbl:button 207 disabled="<%=!writePermission%>" 208 image="edit.gif" 209 onclick="editItem()" 210 title="Edit…" 211 tooltip="<%=writePermission ? "Edit this array batch" : "You do not have permission to edit this array batch"%>" 212 /> 213 <tbl:button 214 disabled="<%=!deletePermission%>" 215 image="delete.gif" 216 onclick="deleteItem()" 217 title="Delete" 218 visible="<%=!batch.isRemoved()%>" 219 tooltip="<%=deletePermission ? "Delete this array batch" : "You do not have permission to delete this array batch"%>" 220 /> 221 <tbl:button 222 disabled="<%=!writePermission%>" 223 image="restore.gif" 224 onclick="restoreItem()" 225 title="Restore" 226 visible="<%=batch.isRemoved()%>" 227 tooltip="<%=writePermission ? "Restore this array batch" : "You do not have permission to restore this array batch"%>" 228 /> 229 <tbl:button 230 image="add.png" 231 onclick="newSlide()" 232 title="New slide…" 233 tooltip="Create a new array slide in this batch" 234 visible="<%=sc.hasPermission(Permission.CREATE, Item.ARRAYSLIDE) && usePermission%>" 235 /> 236 <tbl:button 237 image="new_wizard.gif" 238 onclick="multipleNewSlides()" 239 title="Create slides…" 240 tooltip="Create multiple new array slides in this batch using a wizard" 241 visible="<%=sc.hasPermission(Permission.CREATE, Item.ARRAYSLIDE) && usePermission%>" 242 /> 243 <tbl:button 244 disabled="<%=!sharePermission%>" 245 image="share.gif" 246 onclick="shareItem()" 247 title="Share…" 248 tooltip="<%=sharePermission ? "Share this array batch to other user, groups and projects" : "You do not have permission to share this array batch"%>" 249 /> 250 <tbl:button 251 disabled="<%=!setOwnerPermission%>" 252 image="take_ownership.png" 253 onclick="setOwner()" 254 title="Set owner…" 255 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 256 /> 257 <tbl:button 258 image="import.gif" 259 onclick="runPlugin('ImportItem')" 260 title="Import…" 261 tooltip="Import data" 262 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 263 /> 264 <tbl:button 265 image="export.gif" 266 onclick="runPlugin('ExportItem')" 267 title="Export…" 268 tooltip="Export data" 269 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 270 /> 271 <tbl:button 272 image="runplugin.gif" 273 onclick="runPlugin('RunPlugin')" 274 title="Run plugin…" 275 tooltip="Run a plugin" 276 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 277 /> 278 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 279 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 280 <tbl:button 281 image="help.png" 282 onclick="<%="Main.openHelp('" + ID +"', 'arraybatch.view.properties')"%>" 283 title="Help…" 284 tooltip="Get help about this page" 285 /> 286 </tbl:toolbar> 287 </td> 288 </tr> 289 <tr> 290 <th>Name</th> 289 291 <td><%=HTML.encodeTags(batch.getName())%></td> 290 292 </tr> 291 293 <tr> 292 <t d class="prompt">Registered</td>294 <th>Registered</th> 293 295 <td><%=dateFormatter.format(batch.getEntryDate())%></td> 294 296 </tr> 295 297 <tr> 296 <t d class="prompt">Array design</td>298 <th>Array design</th> 297 299 <td><base:propertyvalue item="<%=batch%>" property="arrayDesign" /></td> 298 300 </tr> 299 301 <tr> 300 <t d class="prompt">Print robot</td>302 <th>Print robot</th> 301 303 <td><base:propertyvalue item="<%=batch%>" property="printRobot" /></td> 302 304 </tr> 303 305 <tr> 304 <t d class="prompt">Protocol</td>306 <th>Protocol</th> 305 307 <td><base:propertyvalue item="<%=batch%>" property="protocol" /></td> 306 308 </tr> 307 309 <tr> 308 <t d class="prompt">Owner</td>310 <th>Owner</th> 309 311 <td><base:propertyvalue item="<%=batch%>" property="owner" /></td> 310 312 </tr> 311 313 <tr> 312 <td class="prompt">Description</td> 314 <th>Permissions</th> 315 <td><%=PermissionUtil.getFullPermissionNames(batch)%></td> 316 </tr> 317 <tr> 318 <th>Description</th> 313 319 <td><%=HTML.niceFormat(batch.getDescription())%></td> 314 320 </tr> 315 321 </table> 316 322 </div> 317 323 <% 318 324 ItemQuery<ArraySlide> slideQuery = batch.getArraySlides(); … … 320 326 slideQuery.order(Orders.asc(Hql.property("name"))); 321 327 ItemResultList<ArraySlide> slides = slideQuery.list(dc); 322 if (slides.size() == 0)323 {324 %>325 <h4>Array slides</h4>326 No slides exists in this batch327 (or, you don't have permission to view them).328 %> 329 <base:section 330 id="batchSection" 331 title="<%="Array slides (" + slides.size() + ")"%>" 332 context="<%=cc %>" 333 > 328 334 <% 329 } 330 else 331 { 332 %> 333 <base:section 334 id="batchSection" 335 title="<%="Array slides (" + slides.size() + ")"%>" 336 context="<%=cc %>" 337 > 335 if (slides.size() == 0) 336 { 337 %> 338 <div class="messagecontainer note"> 339 No slides exists in this batch 340 (or, you don't have permission to view them). 341 </div> 342 <% 343 } 344 else 345 { 346 %> 338 347 <tbl:table 339 348 id="batches" 340 341 349 columns="all" 342 350 > … … 346 354 /> 347 355 <tbl:columndef 348 id=" hybridization"349 title=" Hybridization"356 id="physicalBioAssay" 357 title="Physical bioassay" 350 358 /> 351 359 <tbl:columndef … … 354 362 /> 355 363 <tbl:data> 356 <tbl:columns> 357 </tbl:columns> 364 <tbl:headers> 365 <tbl:headerrow> 366 <tbl:columnheaders /> 367 </tbl:headerrow> 368 </tbl:headers> 358 369 <tbl:rows> 359 370 <% … … 367 378 visible="<%=item.isRemoved()%>" 368 379 /><%=Base.getLinkedName(ID, item, false, true)%></tbl:cell> 369 <tbl:cell column=" hybridization"><base:propertyvalue item="<%=item%>" property="hybridization" /></tbl:cell>380 <tbl:cell column="physicalBioAssay"><base:propertyvalue item="<%=item%>" property="physicalBioAssay" /></tbl:cell> 370 381 <tbl:cell column="description"><%=HTML.encodeTags(item.getDescription())%></tbl:cell> 371 382 </tbl:row> … … 376 387 </tbl:data> 377 388 </tbl:table> 378 </base:section>379 <%380 }381 %>389 <% 390 } 391 %> 392 </base:section> 382 393 <jsp:include page="../../common/anytoany/list_anytoany.jsp"> 383 394 <jsp:param name="ID" value="<%=ID%>" /> … … 392 403 <jsp:param name="title" value="Shared to" /> 393 404 </jsp:include> 394 </div>395 405 </t:tab> 396 406 … … 435 445 %> 436 446 </t:tab> 437 447 </t:tabcontrol> 438 448 439 449 </base:body> -
trunk/www/lims/arraydesigns/view_design.jsp
r5942 r5944 200 200 </base:head> 201 201 <base:body> 202 <p> 203 <p:path> 204 <p:pathelement title="Array designs" href="<%="index.jsp?ID="+ID%>" /> 205 <p:pathelement title="<%=HTML.encodeTags(design.getName())%>" /> 206 </p:path> 202 <p:path><p:pathelement 203 title="Array designs" href="<%="index.jsp?ID="+ID%>" 204 /><p:pathelement title="<%=HTML.encodeTags(design.getName())%>" 205 /></p:path> 207 206 208 <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" remember="false"> 207 <t:tabcontrol 208 id="main" 209 subclass="content mastertabcontrol" 210 active="<%=tab%>" switch="switchTab" remember="false"> 209 211 <t:tab id="properties" title="Properties"> 210 <tbl:toolbar 211 > 212 <tbl:button 213 disabled="<%=!writePermission%>" 214 image="edit.gif" 215 onclick="editItem()" 216 title="Edit…" 217 tooltip="<%=writePermission ? "Edit this array design" : "You do not have permission to edit this array design"%>" 218 /> 219 <tbl:button 220 disabled="<%=!deletePermission%>" 221 image="delete.gif" 222 onclick="deleteItem()" 223 title="Delete" 224 visible="<%=!design.isRemoved()%>" 225 tooltip="<%=deletePermission ? "Delete this array design" : "You do not have permission to delete this array design"%>" 226 /> 227 <tbl:button 228 disabled="<%=!writePermission%>" 229 image="restore.gif" 230 onclick="restoreItem()" 231 title="Restore" 232 visible="<%=design.isRemoved()%>" 233 tooltip="<%=writePermission ? "Restore this array design" : "You do not have permission to restore this array design"%>" 234 /> 235 <tbl:button 236 disabled="<%=!sharePermission%>" 237 image="share.gif" 238 onclick="shareItem()" 239 title="Share…" 240 tooltip="<%=sharePermission ? "Share this array design to other user, groups and projects" : "You do not have permission to share this array design"%>" 241 /> 242 <tbl:button 243 disabled="<%=!setOwnerPermission%>" 244 image="take_ownership.png" 245 onclick="setOwner()" 246 title="Set owner…" 247 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 248 /> 249 <tbl:button 250 image="add.png" 251 onclick="newBatch()" 252 title="New batch…" 253 tooltip="Create a new array batch with this design" 254 visible="<%=sc.hasPermission(Permission.CREATE, Item.ARRAYBATCH) && usePermission%>" 255 /> 256 <tbl:button 257 image="import.gif" 258 onclick="runPlugin('ImportItem')" 259 title="Import…" 260 tooltip="Import data" 261 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 262 /> 263 <tbl:button 264 image="export.gif" 265 onclick="runPlugin('ExportItem')" 266 title="Export…" 267 tooltip="Export data" 268 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 269 /> 270 <tbl:button 271 image="runplugin.gif" 272 onclick="runPlugin('RunPlugin')" 273 title="Run plugin…" 274 tooltip="Run a plugin" 275 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 276 /> 277 <tbl:button 278 onclick="managePlates()" 279 title="Manage plates…" 280 tooltip="Attach / detach plates to this array design" 281 visible="<%=writePermission && !design.hasFeatures()%>" 282 /> 283 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 284 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 285 <tbl:button 286 image="help.png" 287 onclick="<%="Main.openHelp('" + ID +"', 'arraydesign.view.properties')"%>" 288 title="Help…" 289 tooltip="Get help about this page" 290 /> 291 </tbl:toolbar> 292 293 <div class="boxedbottom"> 294 <div class="itemstatus">Permissions on this item: <i><%=PermissionUtil.getFullPermissionNames(design)%></i></div> 295 <% 296 if (design.isRemoved() || design.isShared()) 297 { 298 %> 299 <div class="itemstatus"> 212 <div> 213 <table class="fullform"> 214 <tr> 215 <th class="itemstatus"> 300 216 <base:icon 301 image="<%=deletePermanentlyPermission ? "deleted.gif" : "deleted_disabled.gif"%>" 302 onclick="<%=deletePermanentlyPermission ? "deleteItemPermanently()" : null%>" 303 tooltip="<%=deletePermanentlyPermission ? "Permanently delete this item" : null%>" 304 visible="<%=isRemoved%>"> This item has been flagged for deletion<br></base:icon> 217 image="shared.gif" 218 visible="<%=design.isShared()%>" 219 tooltip="This item is shared to other users, groups and/or projects" 220 /> 221 <base:icon 222 image="deleted.gif" 223 onclick="deleteItemPermanently()" 224 tooltip="This item has been flagged for deletion. Click to delete it now." 225 enabled="<%=deletePermanentlyPermission %>" 226 visible="<%=isRemoved%>" 227 /> 305 228 <base:icon image="used.gif" 306 229 onclick="showUsingItems()" 307 tooltip="Show the items that are using this one" 308 visible="<%=isUsed%>"> This item is used by other items and can't be permanently deleted<br></base:icon> 309 <base:icon image="shared.gif" 310 visible="<%=design.isShared()%>"> This item is shared to other users, groups and/or projects</base:icon> 230 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 231 visible="<%=isRemoved && isUsed%>" /> 232 </th> 233 <td style="padding: 0px;"> 234 <tbl:toolbar subclass="bottomborder"> 235 <tbl:button 236 disabled="<%=!writePermission%>" 237 image="edit.gif" 238 onclick="editItem()" 239 title="Edit…" 240 tooltip="<%=writePermission ? "Edit this array design" : "You do not have permission to edit this array design"%>" 241 /> 242 <tbl:button 243 disabled="<%=!deletePermission%>" 244 image="delete.gif" 245 onclick="deleteItem()" 246 title="Delete" 247 visible="<%=!design.isRemoved()%>" 248 tooltip="<%=deletePermission ? "Delete this array design" : "You do not have permission to delete this array design"%>" 249 /> 250 <tbl:button 251 disabled="<%=!writePermission%>" 252 image="restore.gif" 253 onclick="restoreItem()" 254 title="Restore" 255 visible="<%=design.isRemoved()%>" 256 tooltip="<%=writePermission ? "Restore this array design" : "You do not have permission to restore this array design"%>" 257 /> 258 <tbl:button 259 disabled="<%=!sharePermission%>" 260 image="share.gif" 261 onclick="shareItem()" 262 title="Share…" 263 tooltip="<%=sharePermission ? "Share this array design to other user, groups and projects" : "You do not have permission to share this array design"%>" 264 /> 265 <tbl:button 266 disabled="<%=!setOwnerPermission%>" 267 image="take_ownership.png" 268 onclick="setOwner()" 269 title="Set owner…" 270 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 271 /> 272 <tbl:button 273 image="add.png" 274 onclick="newBatch()" 275 title="New batch…" 276 tooltip="Create a new array batch with this design" 277 visible="<%=sc.hasPermission(Permission.CREATE, Item.ARRAYBATCH) && usePermission%>" 278 /> 279 <tbl:button 280 image="import.gif" 281 onclick="runPlugin('ImportItem')" 282 title="Import…" 283 tooltip="Import data" 284 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 285 /> 286 <tbl:button 287 image="export.gif" 288 onclick="runPlugin('ExportItem')" 289 title="Export…" 290 tooltip="Export data" 291 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 292 /> 293 <tbl:button 294 image="runplugin.gif" 295 onclick="runPlugin('RunPlugin')" 296 title="Run plugin…" 297 tooltip="Run a plugin" 298 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 299 /> 300 <tbl:button 301 onclick="managePlates()" 302 title="Manage plates…" 303 tooltip="Attach / detach plates to this array design" 304 visible="<%=writePermission && !design.hasFeatures()%>" 305 /> 306 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 307 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 308 <tbl:button 309 image="help.png" 310 onclick="<%="Main.openHelp('" + ID +"', 'arraydesign.view.properties')"%>" 311 title="Help…" 312 tooltip="Get help about this page" 313 /> 314 </tbl:toolbar> 315 </td> 316 </tr> 317 </table> 318 <table style="width: 100%; height: 18em;" class="bottomborder"> 319 <tr valign="top"> 320 <td style="width: 50%; height: 100%;"> 321 <table class="fullform" > 322 <tr> 323 <th>Name</th> 324 <td><%=HTML.encodeTags(design.getName())%></td> 325 </tr> 326 <tr> 327 <th>Registered</th> 328 <td><%=dateFormatter.format(design.getEntryDate())%></td> 329 </tr> 330 <tr> 331 <th>Platform</th> 332 <td><base:propertyvalue item="<%=design%>" property="platform" /></td> 333 </tr> 334 <tr> 335 <th>Variant</th> 336 <td><base:propertyvalue item="<%=design%>" property="variant" /></td> 337 </tr> 338 <tr> 339 <th>Arrays per slide</th> 340 <td><%=design.getNumArrays()%></td> 341 </tr> 342 <tr> 343 <th>Features</th> 344 <td><%=design.hasFeatures() ? "yes (db: " + design.getNumDbFeatures() + "; file: " + design.getNumFileFeatures() + ")" : "no"%></td> 345 </tr> 346 <tr> 347 <th>Feature identification method</th> 348 <td><%=design.getFeatureIdentificationMethod()%></td> 349 </tr> 350 <tr> 351 <th>Owner</th> 352 <td><base:propertyvalue item="<%=design%>" property="owner" /></td> 353 </tr> 354 <tr> 355 <th>Permissions</th> 356 <td><%=PermissionUtil.getFullPermissionNames(design)%></td> 357 </tr> 358 <tr> 359 <th>Description</th> 360 <td><%=HTML.niceFormat(design.getDescription())%></td> 361 </tr> 362 </table> 363 </td> 364 <td style="width: 50%; height: 100%;" class="leftborder"> 365 <table class="fullform larger"> 366 <tbody class="sectionheader"> 367 <tr> 368 <th colspan="2">Feature import</th> 369 </tr> 370 </tbody> 371 <tr> 372 <th>Job</th> 373 <td><%=Base.getLinkedName(ID, job, !readJob, true)%></td> 374 </tr> 375 <tr> 376 <th>Date / time</th> 377 <td><%=job == null ? "" : dateTimeFormatter.format(job.getEnded())%></td> 378 </tr> 379 <tr> 380 <th>Plugin</th> 381 <td><base:propertyvalue item="<%=design%>" property="job.pluginDefinition" /></td> 382 </tr> 383 <tr> 384 <th>Configuration / file format</th> 385 <td><base:propertyvalue item="<%=design%>" property="job.pluginConfiguration" /></td> 386 </tr> 387 <tr class="dynamic"> 388 <th></th> 389 <td></td> 390 </tr> 391 </table> 392 </td> 393 </tr> 394 </table> 395 </div> 396 <jsp:include page="../../common/datafiles/list_files.jsp"> 397 <jsp:param name="item_type" value="<%=itemType.name()%>" /> 398 <jsp:param name="item_id" value="<%=itemId%>" /> 399 <jsp:param name="ID" value="<%=ID%>" /> 400 </jsp:include> 401 402 <% 403 ItemQuery<ArrayBatch> batchQuery = design.getArrayBatches(); 404 batchQuery.include(Include.ALL); 405 batchQuery.order(Orders.asc(Hql.property("name"))); 406 ItemResultList<ArrayBatch> batches = batchQuery.list(dc); 407 %> 408 <base:section 409 id="batches" 410 title="<%="Array batches (" + batches.size() +")"%>" 411 context="<%=cc%>"> 412 <% 413 if (batches.size() == 0) 414 { 415 %> 416 <div class="messagecontainer note"> 417 No batches exists for this design 418 (or, you don't have permission to view them). 311 419 </div> 312 420 <% 313 421 } 314 %> 315 316 <table width="100%"> 317 <tr > 318 <td> 319 320 <table class="form" cellspacing="0"> 321 <tr> 322 <td class="prompt">Name</td> 323 <td><%=HTML.encodeTags(design.getName())%></td> 324 </tr> 325 <tr> 326 <td class="prompt">Registered</td> 327 <td><%=dateFormatter.format(design.getEntryDate())%></td> 328 </tr> 329 <tr> 330 <td class="prompt">Platform</td> 331 <td><base:propertyvalue item="<%=design%>" property="platform" /></td> 332 </tr> 333 <tr> 334 <td class="prompt">Variant</td> 335 <td><base:propertyvalue item="<%=design%>" property="variant" /></td> 336 </tr> 337 <tr> 338 <td class="prompt">Arrays per slide</td> 339 <td><%=design.getNumArrays()%></td> 340 </tr> 341 <tr> 342 <td class="prompt">Features</td> 343 <td><%=design.hasFeatures() ? "yes (db: " + design.getNumDbFeatures() + "; file: " + design.getNumFileFeatures() + ")" : "no"%></td> 344 </tr> 345 <tr> 346 <td class="prompt">Feature identification method</td> 347 <td><%=design.getFeatureIdentificationMethod()%></td> 348 </tr> 349 <tr> 350 <td class="prompt">Owner</td> 351 <td><base:propertyvalue item="<%=design%>" property="owner" /></td> 352 </tr> 353 <tr> 354 <td class="prompt">Description</td> 355 <td><%=HTML.niceFormat(design.getDescription())%></td> 356 </tr> 357 </table> 358 359 </td> 360 <td> 361 <% 362 if (design.getNumDbFeatures() > 0) 422 else 363 423 { 364 424 %> 365 <h4 style="margin-top: 0px;">Feature import</h4>366 <table class="form" cellspacing="0">367 <tr>368 <td class="prompt">Job</td>369 <td><%=Base.getLinkedName(ID, job, !readJob, true)%></td>370 </tr>371 <tr>372 <td class="prompt">Date / time</td>373 <td><%=job == null ? "" : dateTimeFormatter.format(job.getEnded())%></td>374 </tr>375 <tr>376 <td class="prompt">Plugin</td>377 <td><base:propertyvalue item="<%=design%>" property="job.pluginDefinition" /></td>378 </tr>379 <tr>380 <td class="prompt">Configuration / file format</td>381 <td><base:propertyvalue item="<%=design%>" property="job.pluginConfiguration" /></td>382 </tr>383 </table>384 <%385 }386 %>387 388 </td>389 </tr>390 </table>391 392 <jsp:include page="../../common/datafiles/list_files.jsp">393 <jsp:param name="item_type" value="<%=itemType.name()%>" />394 <jsp:param name="item_id" value="<%=itemId%>" />395 <jsp:param name="ID" value="<%=ID%>" />396 </jsp:include>397 398 <%399 ItemQuery<ArrayBatch> batchQuery = design.getArrayBatches();400 batchQuery.include(Include.ALL);401 batchQuery.order(Orders.asc(Hql.property("name")));402 ItemResultList<ArrayBatch> batches = batchQuery.list(dc);403 if (batches.size() == 0)404 {405 %>406 <h4>Array batches</h4>407 No batches exists for this design408 (or, you don't have permission to view them).409 <%410 }411 else412 {413 %>414 <base:section415 id="batches"416 title="<%="Array batches (" + batches.size() +")"%>"417 context="<%=cc%>">418 425 <tbl:table 419 426 id="batches" 420 421 427 columns="all" 422 428 > … … 430 436 /> 431 437 <tbl:data> 432 <tbl:columns> 433 </tbl:columns> 438 <tbl:headers> 439 <tbl:headerrow> 440 <tbl:columnheaders /> 441 </tbl:headerrow> 442 </tbl:headers> 434 443 <tbl:rows> 435 444 <% … … 451 460 </tbl:data> 452 461 </tbl:table> 453 </base:section>454 462 <% 455 463 } 456 464 %> 465 </base:section> 457 466 467 <% 468 ItemQuery<ArrayDesignPlate> platesQuery = design.getArrayDesignPlates(); 469 platesQuery.include(Include.ALL); 470 platesQuery.order(Orders.asc(Hql.property("position"))); 471 ItemResultList<ArrayDesignPlate> plates = platesQuery.list(dc); 472 %> 473 <base:section 474 id="plates" 475 title="<%="Plates (" + plates.size() +")"%>" 476 context="<%=cc%>"> 458 477 <% 459 ItemQuery<ArrayDesignPlate> platesQuery = design.getArrayDesignPlates();460 platesQuery.include(Include.ALL);461 platesQuery.order(Orders.asc(Hql.property("position")));462 ItemResultList<ArrayDesignPlate> plates = platesQuery.list(dc);463 478 if (plates.size() == 0) 464 479 { 465 480 %> 466 < h4>Plates</h4>481 <div class="messagecontainer note"> 467 482 This array design isn't connected to any plates (or, you don't have permission to view them). 483 </div> 468 484 <% 469 485 } … … 471 487 { 472 488 %> 473 <base:section474 id="plates"475 title="<%="Plates (" + plates.size() +")"%>"476 context="<%=cc%>">477 489 <tbl:table 478 490 id="plates" 479 480 491 columns="all" 481 492 > … … 493 504 /> 494 505 <tbl:data> 495 <tbl:columns> 496 </tbl:columns> 506 <tbl:headers> 507 <tbl:headerrow> 508 <tbl:columnheaders /> 509 </tbl:headerrow> 510 </tbl:headers> 497 511 <tbl:rows> 498 512 <% … … 525 539 </tbl:data> 526 540 </tbl:table> 527 </base:section>528 541 <% 529 542 } 530 543 %> 531 <jsp:include page="../../common/anytoany/list_anytoany.jsp"> 532 <jsp:param name="ID" value="<%=ID%>" /> 544 </base:section> 545 <jsp:include page="../../common/anytoany/list_anytoany.jsp"> 546 <jsp:param name="ID" value="<%=ID%>" /> 547 <jsp:param name="item_type" value="<%=itemType.name()%>" /> 548 <jsp:param name="item_id" value="<%=itemId%>" /> 549 <jsp:param name="title" value="Other items related to this array design" /> 550 </jsp:include> 551 <jsp:include page="../../common/share/list_share.jsp"> 552 <jsp:param name="ID" value="<%=ID%>" /> 553 <jsp:param name="item_type" value="<%=itemType.name()%>" /> 554 <jsp:param name="item_id" value="<%=itemId%>" /> 555 <jsp:param name="title" value="Shared to" /> 556 </jsp:include> 557 </t:tab> 558 559 <t:tab id="annotations" title="Annotations" 560 tooltip="View annotation values" clazz="white"> 561 <jsp:include page="../../common/annotations/list_annotations.jsp"> 533 562 <jsp:param name="item_type" value="<%=itemType.name()%>" /> 534 563 <jsp:param name="item_id" value="<%=itemId%>" /> 535 <jsp:param name=" title" value="Other items related to this array design" />564 <jsp:param name="ID" value="<%=ID%>" /> 536 565 </jsp:include> 537 <jsp:include page="../../common/share/list_share.jsp"> 538 <jsp:param name="ID" value="<%=ID%>" /> 539 <jsp:param name="item_type" value="<%=itemType.name()%>" /> 540 <jsp:param name="item_id" value="<%=itemId%>" /> 541 <jsp:param name="title" value="Shared to" /> 542 </jsp:include> 543 </div> 544 </t:tab> 566 </t:tab> 545 567 546 <t:tab id="annotations" title="Annotations" 547 tooltip="View annotation values" clazz="white"> 548 <jsp:include page="../../common/annotations/list_annotations.jsp"> 568 <t:tab id="features" title="Features" visible="<%=design.getNumDbFeatures() > 0%>"/> 569 570 <t:tab id="overview" title="Overview" 571 tooltip="Display a tree overview of related items"> 572 <% 573 if ("overview".equals(tab)) 574 { 575 %> 576 <jsp:include page="../../common/overview/overview.jsp"> 549 577 <jsp:param name="item_type" value="<%=itemType.name()%>" /> 550 578 <jsp:param name="item_id" value="<%=itemId%>" /> 551 579 <jsp:param name="ID" value="<%=ID%>" /> 552 580 </jsp:include> 553 </t:tab>554 555 <t:tab id="features" title="Features" visible="<%=design.getNumDbFeatures() > 0%>"/>556 557 <t:tab id="overview" title="Overview"558 tooltip="Display a tree overview of related items">559 581 <% 560 if ("overview".equals(tab)) 561 { 562 %> 563 <jsp:include page="../../common/overview/overview.jsp"> 564 <jsp:param name="item_type" value="<%=itemType.name()%>" /> 565 <jsp:param name="item_id" value="<%=itemId%>" /> 566 <jsp:param name="ID" value="<%=ID%>" /> 567 </jsp:include> 568 <% 569 } 582 } 583 %> 584 </t:tab> 585 <t:tab id="history" title="Change history" 586 tooltip="Displays a log of all modifications made to this item" 587 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 588 <% 589 if ("history".equals(tab)) 590 { 570 591 %> 571 </t:tab> 572 <t:tab id="history" title="Change history" 573 tooltip="Displays a log of all modifications made to this item" 574 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 592 <jsp:include page="../../common/history/frameset.jsp"> 593 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 594 <jsp:param name="source_id" value="<%=itemId%>" /> 595 <jsp:param name="ID" value="<%=ID%>" /> 596 </jsp:include> 575 597 <% 576 if ("history".equals(tab)) 577 { 578 %> 579 <jsp:include page="../../common/history/frameset.jsp"> 580 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 581 <jsp:param name="source_id" value="<%=itemId%>" /> 582 <jsp:param name="ID" value="<%=ID%>" /> 583 </jsp:include> 584 <% 585 } 586 %> 587 </t:tab> 588 </t:tabcontrol> 598 } 599 %> 600 </t:tab> 601 </t:tabcontrol> 589 602 590 603 </base:body> -
trunk/www/lims/arrayslides/view_slide.jsp
r5942 r5944 161 161 </base:head> 162 162 <base:body> 163 <p> 164 <p:path> 165 <p:pathelement title="Array slides" href="<%="index.jsp?ID="+ID%>" /> 166 <p:pathelement title="<%=HTML.encodeTags(slide.getName())%>" /> 167 </p:path> 163 <p:path><p:pathelement 164 title="Array slides" href="<%="index.jsp?ID="+ID%>" 165 /><p:pathelement title="<%=HTML.encodeTags(slide.getName())%>" 166 /></p:path> 168 167 169 <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" remember="false"> 168 <t:tabcontrol 169 id="main" 170 subclass="content mastertabcontrol" 171 active="<%=tab%>" switch="switchTab" remember="false"> 170 172 <t:tab id="properties" title="Properties"> 171 <tbl:toolbar 172 > 173 <tbl:button 174 disabled="<%=!writePermission%>" 175 image="edit.gif" 176 onclick="editItem()" 177 title="Edit…" 178 tooltip="<%=writePermission ? "Edit this array slide" : "You do not have permission to edit this array slide"%>" 179 /> 180 <tbl:button 181 disabled="<%=!deletePermission%>" 182 image="delete.gif" 183 onclick="deleteItem()" 184 title="Delete" 185 visible="<%=!slide.isRemoved()%>" 186 tooltip="<%=deletePermission ? "Delete this array slide" : "You do not have permission to delete this array slide"%>" 187 /> 188 <tbl:button 189 disabled="<%=!writePermission%>" 190 image="restore.gif" 191 onclick="restoreItem()" 192 title="Restore" 193 visible="<%=slide.isRemoved()%>" 194 tooltip="<%=writePermission ? "Restore this array slide" : "You do not have permission to restore this array slide"%>" 195 /> 196 <tbl:button 197 disabled="<%=!sharePermission%>" 198 image="share.gif" 199 onclick="shareItem()" 200 title="Share…" 201 tooltip="<%=sharePermission ? "Share this array slide to other user, groups and projects" : "You do not have permission to share this array slide"%>" 202 /> 203 <tbl:button 204 disabled="<%=!setOwnerPermission%>" 205 image="take_ownership.png" 206 onclick="setOwner()" 207 title="Set owner…" 208 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 209 /> 210 <tbl:button 211 image="import.gif" 212 onclick="runPlugin('ImportItem')" 213 title="Import…" 214 tooltip="Import data" 215 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 216 /> 217 <tbl:button 218 image="export.gif" 219 onclick="runPlugin('ExportItem')" 220 title="Export…" 221 tooltip="Export data" 222 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 223 /> 224 <tbl:button 225 image="runplugin.gif" 226 onclick="runPlugin('RunPlugin')" 227 title="Run plugin…" 228 tooltip="Run a plugin" 229 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 230 /> 231 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 232 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 233 <tbl:button 234 image="help.png" 235 onclick="<%="Main.openHelp('" + ID +"', 'arrayslide.view.properties')"%>" 236 title="Help…" 237 tooltip="Get help about this page" 238 /> 239 </tbl:toolbar> 240 <div class="boxedbottom"> 241 <div class="itemstatus">Permissions on this item: <i><%=PermissionUtil.getFullPermissionNames(slide)%></i></div> 242 <% 243 if (slide.isRemoved() || slide.isShared()) 244 { 245 %> 246 <div class="itemstatus"> 173 <div> 174 <table class="fullform bottomborder"> 175 <tr> 176 <th class="itemstatus"> 247 177 <base:icon 248 image="<%=deletePermanentlyPermission ? "deleted.gif" : "deleted_disabled.gif"%>" 249 onclick="<%=deletePermanentlyPermission ? "deleteItemPermanently()" : null%>" 250 tooltip="<%=deletePermanentlyPermission ? "Permanently delete this item" : null%>" 251 visible="<%=isRemoved%>"> This item has been flagged for deletion<br></base:icon> 178 image="shared.gif" 179 visible="<%=slide.isShared()%>" 180 tooltip="This item is shared to other users, groups and/or projects" 181 /> 182 <base:icon 183 image="deleted.gif" 184 onclick="deleteItemPermanently()" 185 tooltip="This item has been flagged for deletion. Click to delete it now." 186 enabled="<%=deletePermanentlyPermission %>" 187 visible="<%=isRemoved%>" 188 /> 252 189 <base:icon image="used.gif" 253 190 onclick="showUsingItems()" 254 tooltip="Show the items that are using this one" 255 visible="<%=isUsed%>"> This item is used by other items and can't be permanently deleted<br></base:icon> 256 <base:icon image="shared.gif" 257 visible="<%=slide.isShared()%>"> This item is shared to other users, groups and/or projects</base:icon> 258 </div> 259 <% 260 } 261 %> 262 <table class="form" cellspacing="0"> 263 <tr> 264 <td class="prompt">Name</td> 191 tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" 192 visible="<%=isRemoved && isUsed%>" /> 193 </th> 194 <td style="padding: 0px;"> 195 <tbl:toolbar subclass="bottomborder"> 196 <tbl:button 197 disabled="<%=!writePermission%>" 198 image="edit.gif" 199 onclick="editItem()" 200 title="Edit…" 201 tooltip="<%=writePermission ? "Edit this array slide" : "You do not have permission to edit this array slide"%>" 202 /> 203 <tbl:button 204 disabled="<%=!deletePermission%>" 205 image="delete.gif" 206 onclick="deleteItem()" 207 title="Delete" 208 visible="<%=!slide.isRemoved()%>" 209 tooltip="<%=deletePermission ? "Delete this array slide" : "You do not have permission to delete this array slide"%>" 210 /> 211 <tbl:button 212 disabled="<%=!writePermission%>" 213 image="restore.gif" 214 onclick="restoreItem()" 215 title="Restore" 216 visible="<%=slide.isRemoved()%>" 217 tooltip="<%=writePermission ? "Restore this array slide" : "You do not have permission to restore this array slide"%>" 218 /> 219 <tbl:button 220 disabled="<%=!sharePermission%>" 221 image="share.gif" 222 onclick="shareItem()" 223 title="Share…" 224 tooltip="<%=sharePermission ? "Share this array slide to other user, groups and projects" : "You do not have permission to share this array slide"%>" 225 /> 226 <tbl:button 227 disabled="<%=!setOwnerPermission%>" 228 image="take_ownership.png" 229 onclick="setOwner()" 230 title="Set owner…" 231 tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" 232 /> 233 <tbl:button 234 image="import.gif" 235 onclick="runPlugin('ImportItem')" 236 title="Import…" 237 tooltip="Import data" 238 visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" 239 /> 240 <tbl:button 241 image="export.gif" 242 onclick="runPlugin('ExportItem')" 243 title="Export…" 244 tooltip="Export data" 245 visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" 246 /> 247 <tbl:button 248 image="runplugin.gif" 249 onclick="runPlugin('RunPlugin')" 250 title="Run plugin…" 251 tooltip="Run a plugin" 252 visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" 253 /> 254 <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 255 wrapper="<%=new PrefixSuffixRenderer(jspContext, "<td>", "</td>") %>"/> 256 <tbl:button 257 image="help.png" 258 onclick="<%="Main.openHelp('" + ID +"', 'arrayslide.view.properties')"%>" 259 title="Help…" 260 tooltip="Get help about this page" 261 /> 262 </tbl:toolbar> 263 </td> 264 </tr> 265 <tr> 266 <th>Name</th> 265 267 <td><%=HTML.encodeTags(slide.getName())%></td> 266 268 </tr> 267 269 <tr> 268 <t d class="prompt">Registered</td>270 <th>Registered</th> 269 271 <td><%=dateFormatter.format(slide.getEntryDate())%></td> 270 272 </tr> 271 273 <tr> 272 <t d class="prompt">Barcode</td>274 <th>Barcode</th> 273 275 <td><%=HTML.encodeTags(slide.getBarcode())%></td> 274 276 </tr> 275 277 <tr> 276 <t d class="prompt">Destroyed</td>278 <th>Destroyed</th> 277 279 <td><%=slide.isDestroyed() ? "yes" : "no"%></td> 278 280 </tr> 279 281 <tr> 280 <t d class="prompt">Physical bioassay</td>282 <th>Physical bioassay</th> 281 283 <td><base:propertyvalue item="<%=slide%>" property="physicalBioAssay" /></td> 282 284 </tr> 283 285 <tr> 284 <td class="prompt">Array batch</td> 285 <td><base:propertyvalue item="<%=slide%>" property="arrayBatch" /> 286 (index: <%=slide.getBatchIndex()%>) 287 </td> 288 </tr> 289 <tr> 290 <td class="prompt">Array design</td> 286 <th>Array batch</th> 287 <td><base:propertyvalue item="<%=slide%>" property="arrayBatch" /></td> 288 </tr> 289 <tr> 290 <th class="subprompt">- index</th> 291 <td><%=slide.getBatchIndex()%></td> 292 </tr> 293 <tr> 294 <th>Array design</th> 291 295 <td><base:propertyvalue item="<%=slide%>" property="arrayBatch.arrayDesign" /></td> 292 296 </tr> 293 297 <tr> 294 <t d class="prompt">Owner</td>298 <th>Owner</th> 295 299 <td><base:propertyvalue item="<%=slide%>" property="owner" /></td> 296 300 </tr> 297 301 <tr> 298 <td class="prompt">Description</td> 302 <th>Permissions</th> 303 <td><%=PermissionUtil.getFullPermissionNames(slide)%></td> 304 </tr> 305 <tr> 306 <th>Description</th> 299 307 <td><%=HTML.niceFormat(slide.getDescription())%></td> 300 308 </tr> 301 309 </table> 310 </div> 311 302 312 <jsp:include page="../../common/anytoany/list_anytoany.jsp"> 303 313 <jsp:param name="ID" value="<%=ID%>" /> … … 312 322 <jsp:param name="title" value="Shared to" /> 313 323 </jsp:include> 314 </div>315 324 </t:tab> 316 325 … … 355 364 %> 356 365 </t:tab> 357 366 </t:tabcontrol> 358 367 359 368 </base:body>
Note: See TracChangeset
for help on using the changeset viewer.