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 | <export:resource /> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <div class="nav"> |
---|
15 | <nav:renderSubItems group="nav"/> |
---|
16 | </div> |
---|
17 | <div class="body"> |
---|
18 | <g:if test="${flash.message}"> |
---|
19 | <div class="message">${flash.message}</div> |
---|
20 | </g:if> |
---|
21 | <filterpane:currentCriteria domainBean="InventoryItem" |
---|
22 | action="search" |
---|
23 | dateFormat="${'EEE, dd-MMM-yyyy'}" |
---|
24 | removeImgDir="images" |
---|
25 | removeImgFile="bullet_delete.png" |
---|
26 | title="Search"/> |
---|
27 | |
---|
28 | <div class="paginateButtons"> |
---|
29 | Results: ${inventoryItemInstanceList.size()} / ${inventoryItemInstanceTotal} |
---|
30 | <span class="searchButtons"> |
---|
31 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
32 | </span> |
---|
33 | </div> |
---|
34 | |
---|
35 | <jsUtil:toggleControl toggleId="options" |
---|
36 | imageId="optionsImg" |
---|
37 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_right.png')}" |
---|
38 | openImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_down.png')}" |
---|
39 | text="${g.message(code: 'default.options.text')}" |
---|
40 | /> |
---|
41 | |
---|
42 | <div id="options" style="display:none;"> |
---|
43 | <g:form method="post" > |
---|
44 | <g:hiddenField name="params" value="${filterParams}" /> |
---|
45 | <div class="dialog"> |
---|
46 | <table> |
---|
47 | <tbody> |
---|
48 | |
---|
49 | <tr class="prop"> |
---|
50 | <td valign="top" class="name"> |
---|
51 | <label for="max">Results per page:</label> |
---|
52 | </td> |
---|
53 | <td valign="top" class="value"> |
---|
54 | <input type="text" maxlength="4" id="description" name="newMax" value="${params.max}"/> |
---|
55 | |
---|
56 | <span class="buttons"> |
---|
57 | <g:actionSubmit action="setSearchParamsMax" class="go" value="Update" /> |
---|
58 | </span> |
---|
59 | </td> |
---|
60 | </tr> |
---|
61 | |
---|
62 | </tbody> |
---|
63 | </table> |
---|
64 | </div> |
---|
65 | </g:form> |
---|
66 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
---|
67 | </div> |
---|
68 | |
---|
69 | <br /> |
---|
70 | |
---|
71 | <g:if test="${inventoryItemInstanceList.size() > 10}"> |
---|
72 | <g:if test="${inventoryItemInstanceTotal > inventoryItemInstanceList.size()}"> |
---|
73 | <div class="paginateButtons"> |
---|
74 | <g:paginate total="${inventoryItemInstanceTotal}" params="${filterParams}" /> |
---|
75 | </div> |
---|
76 | </g:if> |
---|
77 | </g:if> |
---|
78 | |
---|
79 | <div class="list"> |
---|
80 | <table> |
---|
81 | <thead> |
---|
82 | <tr> |
---|
83 | |
---|
84 | <th>Picture</th> |
---|
85 | |
---|
86 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
87 | |
---|
88 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
89 | |
---|
90 | <g:sortableColumn property="unitsInStock" title="Units In Stock" params="${filterParams}" /> |
---|
91 | |
---|
92 | <th>Unit Of Measure</th> |
---|
93 | |
---|
94 | <th></th> |
---|
95 | |
---|
96 | </tr> |
---|
97 | </thead> |
---|
98 | <tbody> |
---|
99 | <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance"> |
---|
100 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" /> |
---|
101 | |
---|
102 | <td class='gallery'> |
---|
103 | <g:if test="${inventoryItemInstance.picture}" > |
---|
104 | <wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" |
---|
105 | size="${Image.Small}" |
---|
106 | lightboxSize="${Image.Large}" |
---|
107 | target="_blank" |
---|
108 | title="Show Original" /> |
---|
109 | </g:if> |
---|
110 | </td> |
---|
111 | |
---|
112 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
113 | ${fieldValue(bean:inventoryItemInstance, field:'name')} |
---|
114 | </td> |
---|
115 | |
---|
116 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
117 | ${fieldValue(bean:inventoryItemInstance, field:'description')} |
---|
118 | </td> |
---|
119 | |
---|
120 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
121 | ${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')} |
---|
122 | </td> |
---|
123 | |
---|
124 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
125 | ${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')} |
---|
126 | </td> |
---|
127 | |
---|
128 | <td> |
---|
129 | <g:link action="show" id="${inventoryItemInstance.id}"> |
---|
130 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
131 | </g:link> |
---|
132 | </td> |
---|
133 | |
---|
134 | </tr> |
---|
135 | </g:each> |
---|
136 | </tbody> |
---|
137 | </table> |
---|
138 | </div> |
---|
139 | <div class="paginateButtons"> |
---|
140 | <g:paginate total="${inventoryItemInstanceTotal}" params="${filterParams}" /> |
---|
141 | </div> |
---|
142 | |
---|
143 | <filterpane:filterPane domainBean="InventoryItem" |
---|
144 | title="Search" |
---|
145 | action="search" |
---|
146 | class="overlayPane" |
---|
147 | excludeProperties="" |
---|
148 | associatedProperties="inventoryLocation.name, |
---|
149 | spareFor.name, |
---|
150 | manufacturers.name, |
---|
151 | suppliers.name" |
---|
152 | filterPropertyValues="${['inventoryLocation.name':[values:InventoryLocation.list()], |
---|
153 | 'spareFor.name':[values:Asset.list()], |
---|
154 | 'manufacturers.name':[values:Manufacturer.list()], |
---|
155 | 'suppliers.name':[values:Supplier.list()], |
---|
156 | ]}"/> |
---|
157 | </div> <!-- end body div --> |
---|
158 | </body> |
---|
159 | </html> |
---|