[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"> |
---|
| 28 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
| 29 | Results:${inventoryItemInstanceTotal} |
---|
| 30 | </div> |
---|
| 31 | |
---|
[139] | 32 | <div class="list"> |
---|
| 33 | <table> |
---|
| 34 | <thead> |
---|
| 35 | <tr> |
---|
[182] | 36 | |
---|
| 37 | <th>Picture</th> |
---|
[139] | 38 | |
---|
[156] | 39 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
[139] | 40 | |
---|
[156] | 41 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
[139] | 42 | |
---|
[178] | 43 | <g:sortableColumn property="unitsInStock" title="Units In Stock" params="${filterParams}" /> |
---|
[175] | 44 | |
---|
| 45 | <th>Unit Of Measure</th> |
---|
[139] | 46 | |
---|
| 47 | <th></th> |
---|
| 48 | |
---|
| 49 | </tr> |
---|
| 50 | </thead> |
---|
| 51 | <tbody> |
---|
| 52 | <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance"> |
---|
[182] | 53 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" /> |
---|
| 54 | |
---|
| 55 | <td class='gallery'> |
---|
| 56 | <g:if test="${inventoryItemInstance.picture}" > |
---|
| 57 | <wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" |
---|
| 58 | size="${Image.Small}" |
---|
| 59 | lightboxSize="${Image.Large}" |
---|
| 60 | target="_blank" |
---|
| 61 | title="Show Original" /> |
---|
| 62 | </g:if> |
---|
| 63 | </td> |
---|
[139] | 64 | |
---|
[182] | 65 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
| 66 | ${fieldValue(bean:inventoryItemInstance, field:'name')} |
---|
| 67 | </td> |
---|
[139] | 68 | |
---|
[182] | 69 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
| 70 | ${fieldValue(bean:inventoryItemInstance, field:'description')} |
---|
| 71 | </td> |
---|
[139] | 72 | |
---|
[182] | 73 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
| 74 | ${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')} |
---|
| 75 | </td> |
---|
[139] | 76 | |
---|
[182] | 77 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
| 78 | ${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')} |
---|
| 79 | </td> |
---|
[139] | 80 | |
---|
| 81 | <td> |
---|
| 82 | <g:link action="show" id="${inventoryItemInstance.id}"> |
---|
[182] | 83 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
[139] | 84 | </g:link> |
---|
| 85 | </td> |
---|
| 86 | |
---|
| 87 | </tr> |
---|
| 88 | </g:each> |
---|
| 89 | </tbody> |
---|
| 90 | </table> |
---|
| 91 | </div> |
---|
| 92 | <div class="paginateButtons"> |
---|
[156] | 93 | <g:paginate total="${inventoryItemInstanceTotal}" params="${filterParams}" /> |
---|
[139] | 94 | </div> |
---|
[156] | 95 | |
---|
| 96 | <filterpane:filterPane domainBean="InventoryItem" |
---|
| 97 | title="Search" |
---|
| 98 | action="search" |
---|
| 99 | class="overlayPane" |
---|
[175] | 100 | excludeProperties="" |
---|
| 101 | associatedProperties="inventoryLocation.name, |
---|
| 102 | spareFor.name, |
---|
| 103 | manufacturers.name, |
---|
| 104 | suppliers.name" |
---|
| 105 | filterPropertyValues="${['inventoryLocation.name':[values:InventoryLocation.list()], |
---|
| 106 | 'spareFor.name':[values:Asset.list()], |
---|
| 107 | 'manufacturers.name':[values:Manufacturer.list()], |
---|
| 108 | 'suppliers.name':[values:Supplier.list()], |
---|
| 109 | ]}"/> |
---|
[156] | 110 | </div> <!-- end body div --> |
---|
[139] | 111 | </body> |
---|
| 112 | </html> |
---|