source: trunk/grails-app/views/inventoryLocationDetailed/list.gsp

Last change on this file was 958, checked in by gav, 13 years ago

Add filterpane search to InventoryLocation? list view.

File size: 4.4 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>InventoryLocation List</title>
8        <filterpane:includes />
9        <nav:resources override="true"/>
10    </head>
11    <body>
12        <div class="nav">
13            <nav:renderSubItems group="navAlt"/>
14        </div>
15        <div class="body">
16            <g:render template="/shared/messages" />
17
18            <filterpane:currentCriteria domainBean="InventoryLocation"
19                                        action="list"
20                                        dateFormat="EEE, dd-MMM-yyyy"
21                                        removeImgDir="images"
22                                        removeImgFile="bullet_delete.png"
23                                        title="Search"/>
24
25            <div class="paginateButtons">
26                Results: ${inventoryLocationInstanceList.size()} / ${inventoryLocationInstanceTotal}
27                <span class="searchButtons">
28                    <filterpane:filterButton text="Search" appliedText="Change Search" />
29                </span>
30            </div>
31
32            <br />
33
34            <g:if test="${inventoryLocationInstanceList.size() > 0}">
35                <div class="list">
36                    <table>
37                        <thead>
38                        <tr>
39
40                            <g:sortableColumn property="id" title="Id" params="${filterParams}" />
41
42                            <g:sortableColumn property="name" title="Name" params="${filterParams}" />
43
44                            <g:sortableColumn property="inventoryStore" title="Inventory Store" params="${filterParams}" />
45
46                            <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" />
47
48                            <th></th>
49
50                        </tr>
51                        </thead>
52                        <tbody>
53                        <g:each in="${inventoryLocationInstanceList}" status="i" var="inventoryLocationInstance">
54                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}">
55
56
57                                <td onclick='window.location = "${request.getContextPath()}/inventoryLocationDetailed/show/${inventoryLocationInstance.id}"'>
58                                    ${fieldValue(bean:inventoryLocationInstance, field:'id')}
59                                </td>
60
61                                <td onclick='window.location = "${request.getContextPath()}/inventoryLocationDetailed/show/${inventoryLocationInstance.id}"'>
62                                    ${fieldValue(bean:inventoryLocationInstance, field:'name')}
63                                </td>
64
65                                <td onclick='window.location = "${request.getContextPath()}/inventoryLocationDetailed/show/${inventoryLocationInstance.id}"'>
66                                    ${fieldValue(bean:inventoryLocationInstance, field:'inventoryStore')}
67                                </td>
68
69                                <td onclick='window.location = "${request.getContextPath()}/inventoryLocationDetailed/show/${inventoryLocationInstance.id}"'>
70                                    ${fieldValue(bean:inventoryLocationInstance, field:'isActive')}
71                                </td>
72
73                                <td class="notClickable">
74                                    <g:link action="show" id="${inventoryLocationInstance.id}">
75                                        <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
76                                    </g:link>
77                                </td>
78
79                            </tr>
80                        </g:each>
81                        </tbody>
82                    </table>
83                </div>
84            </g:if>
85
86            <div class="paginateButtons">
87                <g:paginate total="${inventoryLocationInstanceTotal}" params="${filterParams}" />
88            </div>
89
90            <filterpane:filterPane domainBean="InventoryLocation"
91                                   title="Search"
92                                   action="list"
93                                   class="overlayPane"
94                                   associatedProperties="inventoryStore.name"
95                                   filterPropertyValues="${['inventoryStore.name':[values: associatedPropertyValues.inventoryStoreList]]}" />
96        </div>
97    </body>
98</html>
Note: See TracBrowser for help on using the repository browser.