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"/> |
---|
9 | <g:render template="/shared/pictureHead" /> |
---|
10 | <filterpane:includes /> |
---|
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> |
---|
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 | |
---|
32 | <div class="list"> |
---|
33 | <table> |
---|
34 | <thead> |
---|
35 | <tr> |
---|
36 | |
---|
37 | <th>Picture</th> |
---|
38 | |
---|
39 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
40 | |
---|
41 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
42 | |
---|
43 | <g:sortableColumn property="unitsInStock" title="Units In Stock" params="${filterParams}" /> |
---|
44 | |
---|
45 | <th>Unit Of Measure</th> |
---|
46 | |
---|
47 | <th></th> |
---|
48 | |
---|
49 | </tr> |
---|
50 | </thead> |
---|
51 | <tbody> |
---|
52 | <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance"> |
---|
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> |
---|
64 | |
---|
65 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
66 | ${fieldValue(bean:inventoryItemInstance, field:'name')} |
---|
67 | </td> |
---|
68 | |
---|
69 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
70 | ${fieldValue(bean:inventoryItemInstance, field:'description')} |
---|
71 | </td> |
---|
72 | |
---|
73 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
74 | ${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')} |
---|
75 | </td> |
---|
76 | |
---|
77 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
78 | ${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')} |
---|
79 | </td> |
---|
80 | |
---|
81 | <td> |
---|
82 | <g:link action="show" id="${inventoryItemInstance.id}"> |
---|
83 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
84 | </g:link> |
---|
85 | </td> |
---|
86 | |
---|
87 | </tr> |
---|
88 | </g:each> |
---|
89 | </tbody> |
---|
90 | </table> |
---|
91 | </div> |
---|
92 | <div class="paginateButtons"> |
---|
93 | <g:paginate total="${inventoryItemInstanceTotal}" params="${filterParams}" /> |
---|
94 | </div> |
---|
95 | |
---|
96 | <filterpane:filterPane domainBean="InventoryItem" |
---|
97 | title="Search" |
---|
98 | action="search" |
---|
99 | class="overlayPane" |
---|
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 | ]}"/> |
---|
110 | </div> <!-- end body div --> |
---|
111 | </body> |
---|
112 | </html> |
---|