| [139] | 1 |  | 
|---|
 | 2 |  | 
|---|
 | 3 | <html> | 
|---|
 | 4 |     <head> | 
|---|
 | 5 |         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | 
|---|
 | 6 |         <meta name="layout" content="main" /> | 
|---|
 | 7 |         <title>InventoryItem Search</title> | 
|---|
 | 8 |         <nav:resources override="true"/> | 
|---|
| [182] | 9 |         <g:render template="/shared/pictureHead" /> | 
|---|
| [156] | 10 |         <filterpane:includes /> | 
|---|
| [139] | 11 |     </head> | 
|---|
 | 12 |     <body> | 
|---|
 | 13 |         <div class="nav"> | 
|---|
 | 14 |             <nav:renderSubItems group="nav"/> | 
|---|
 | 15 |         </div> | 
|---|
 | 16 |         <div class="body"> | 
|---|
 | 17 |             <g:if test="${flash.message}"> | 
|---|
 | 18 |             <div class="message">${flash.message}</div> | 
|---|
 | 19 |             </g:if> | 
|---|
| [156] | 20 |             <filterpane:currentCriteria domainBean="InventoryItem" | 
|---|
 | 21 |                                     action="search" | 
|---|
 | 22 |                                     dateFormat="${'EEE, dd-MMM-yyyy'}" | 
|---|
 | 23 |                                     removeImgDir="images"  | 
|---|
 | 24 |                                     removeImgFile="bullet_delete.png" | 
|---|
 | 25 |                                     title="Search"/> | 
|---|
 | 26 |  | 
|---|
 | 27 |             <div class="paginateButtons"> | 
|---|
| [221] | 28 |                 <span class="searchButtons"> | 
|---|
 | 29 |                     <filterpane:filterButton text="Search" appliedText="Change Search" /> | 
|---|
 | 30 |                 </span> | 
|---|
| [156] | 31 |                 Results:${inventoryItemInstanceTotal} | 
|---|
 | 32 |             </div> | 
|---|
 | 33 |  | 
|---|
| [139] | 34 |             <div class="list"> | 
|---|
 | 35 |                 <table> | 
|---|
 | 36 |                     <thead> | 
|---|
 | 37 |                         <tr> | 
|---|
| [182] | 38 |  | 
|---|
 | 39 |                             <th>Picture</th> | 
|---|
| [139] | 40 |                          | 
|---|
| [156] | 41 |                                 <g:sortableColumn property="name" title="Name" params="${filterParams}" /> | 
|---|
| [139] | 42 |                          | 
|---|
| [156] | 43 |                                 <g:sortableColumn property="description" title="Description" params="${filterParams}" /> | 
|---|
| [139] | 44 |                          | 
|---|
| [178] | 45 |                             <g:sortableColumn property="unitsInStock" title="Units In Stock" params="${filterParams}" /> | 
|---|
| [175] | 46 |                              | 
|---|
 | 47 |                             <th>Unit Of Measure</th> | 
|---|
| [139] | 48 |  | 
|---|
 | 49 |                             <th></th> | 
|---|
 | 50 |                          | 
|---|
 | 51 |                         </tr> | 
|---|
 | 52 |                     </thead> | 
|---|
 | 53 |                     <tbody> | 
|---|
 | 54 |                     <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance"> | 
|---|
| [182] | 55 |                         <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" /> | 
|---|
 | 56 |  | 
|---|
 | 57 |                             <td class='gallery'> | 
|---|
 | 58 |                                 <g:if test="${inventoryItemInstance.picture}" > | 
|---|
 | 59 |                                     <wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" | 
|---|
 | 60 |                                                                                         size="${Image.Small}" | 
|---|
 | 61 |                                                                                         lightboxSize="${Image.Large}" | 
|---|
 | 62 |                                                                                         target="_blank" | 
|---|
 | 63 |                                                                                         title="Show Original" /> | 
|---|
 | 64 |                                 </g:if> | 
|---|
 | 65 |                             </td> | 
|---|
| [139] | 66 |                          | 
|---|
| [182] | 67 |                             <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > | 
|---|
 | 68 |                                 ${fieldValue(bean:inventoryItemInstance, field:'name')} | 
|---|
 | 69 |                             </td> | 
|---|
| [139] | 70 |                          | 
|---|
| [182] | 71 |                             <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > | 
|---|
 | 72 |                                 ${fieldValue(bean:inventoryItemInstance, field:'description')} | 
|---|
 | 73 |                             </td> | 
|---|
| [139] | 74 |                          | 
|---|
| [182] | 75 |                             <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > | 
|---|
 | 76 |                                 ${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')} | 
|---|
 | 77 |                             </td> | 
|---|
| [139] | 78 |                          | 
|---|
| [182] | 79 |                             <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > | 
|---|
 | 80 |                                 ${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')} | 
|---|
 | 81 |                             </td> | 
|---|
| [139] | 82 |  | 
|---|
 | 83 |                             <td> | 
|---|
 | 84 |                                 <g:link action="show" id="${inventoryItemInstance.id}"> | 
|---|
| [182] | 85 |                                     <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> | 
|---|
| [139] | 86 |                                 </g:link> | 
|---|
 | 87 |                             </td> | 
|---|
 | 88 |                          | 
|---|
 | 89 |                         </tr> | 
|---|
 | 90 |                     </g:each> | 
|---|
 | 91 |                     </tbody> | 
|---|
 | 92 |                 </table> | 
|---|
 | 93 |             </div> | 
|---|
 | 94 |             <div class="paginateButtons"> | 
|---|
| [156] | 95 |                 <g:paginate total="${inventoryItemInstanceTotal}" params="${filterParams}" /> | 
|---|
| [139] | 96 |             </div> | 
|---|
| [156] | 97 |  | 
|---|
 | 98 |             <filterpane:filterPane domainBean="InventoryItem" | 
|---|
 | 99 |                                     title="Search" | 
|---|
 | 100 |                                     action="search" | 
|---|
 | 101 |                                     class="overlayPane" | 
|---|
| [175] | 102 |                                     excludeProperties="" | 
|---|
 | 103 |                                     associatedProperties="inventoryLocation.name, | 
|---|
 | 104 |                                                                             spareFor.name, | 
|---|
 | 105 |                                                                             manufacturers.name, | 
|---|
 | 106 |                                                                             suppliers.name" | 
|---|
 | 107 |                                     filterPropertyValues="${['inventoryLocation.name':[values:InventoryLocation.list()], | 
|---|
 | 108 |                                                                                 'spareFor.name':[values:Asset.list()], | 
|---|
 | 109 |                                                                                 'manufacturers.name':[values:Manufacturer.list()], | 
|---|
 | 110 |                                                                                 'suppliers.name':[values:Supplier.list()], | 
|---|
 | 111 |                                                                                 ]}"/> | 
|---|
| [156] | 112 |         </div> <!-- end body div --> | 
|---|
| [139] | 113 |     </body> | 
|---|
 | 114 | </html> | 
|---|