source: trunk/grails-app/views/inventoryItemDetailed/search.gsp @ 221

Last change on this file since 221 was 221, checked in by gav, 14 years ago

CSS improvements, add images to login and search buttons.

File size: 5.9 KB
Line 
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                <span class="searchButtons">
29                    <filterpane:filterButton text="Search" appliedText="Change Search" />
30                </span>
31                Results:${inventoryItemInstanceTotal}
32            </div>
33
34            <div class="list">
35                <table>
36                    <thead>
37                        <tr>
38
39                            <th>Picture</th>
40                       
41                                <g:sortableColumn property="name" title="Name" params="${filterParams}" />
42                       
43                                <g:sortableColumn property="description" title="Description" params="${filterParams}" />
44                       
45                            <g:sortableColumn property="unitsInStock" title="Units In Stock" params="${filterParams}" />
46                           
47                            <th>Unit Of Measure</th>
48
49                            <th></th>
50                       
51                        </tr>
52                    </thead>
53                    <tbody>
54                    <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance">
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>
66                       
67                            <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' >
68                                ${fieldValue(bean:inventoryItemInstance, field:'name')}
69                            </td>
70                       
71                            <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' >
72                                ${fieldValue(bean:inventoryItemInstance, field:'description')}
73                            </td>
74                       
75                            <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' >
76                                ${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}
77                            </td>
78                       
79                            <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' >
80                                ${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')}
81                            </td>
82
83                            <td>
84                                <g:link action="show" id="${inventoryItemInstance.id}">
85                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
86                                </g:link>
87                            </td>
88                       
89                        </tr>
90                    </g:each>
91                    </tbody>
92                </table>
93            </div>
94            <div class="paginateButtons">
95                <g:paginate total="${inventoryItemInstanceTotal}" params="${filterParams}" />
96            </div>
97
98            <filterpane:filterPane domainBean="InventoryItem"
99                                    title="Search"
100                                    action="search"
101                                    class="overlayPane"
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                                                                                ]}"/>
112        </div> <!-- end body div -->
113    </body>
114</html>
Note: See TracBrowser for help on using the repository browser.