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

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

Add filterpane search to InventoryLocation? list view.

File size: 4.4 KB
RevLine 
[125]1
2
3<html>
4    <head>
5        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6        <meta name="layout" content="main" />
[175]7        <title>InventoryLocation List</title>
[958]8        <filterpane:includes />
[377]9        <nav:resources override="true"/>
[125]10    </head>
11    <body>
12        <div class="nav">
[377]13            <nav:renderSubItems group="navAlt"/>
[125]14        </div>
15        <div class="body">
[958]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>
[125]38                        <tr>
[377]39
[958]40                            <g:sortableColumn property="id" title="Id" params="${filterParams}" />
[377]41
[958]42                            <g:sortableColumn property="name" title="Name" params="${filterParams}" />
[377]43
[958]44                            <g:sortableColumn property="inventoryStore" title="Inventory Store" params="${filterParams}" />
[377]45
[958]46                            <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" />
47
[377]48                            <th></th>
[958]49
[125]50                        </tr>
[958]51                        </thead>
52                        <tbody>
53                        <g:each in="${inventoryLocationInstanceList}" status="i" var="inventoryLocationInstance">
54                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}">
[377]55
56
[958]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
[125]86            <div class="paginateButtons">
[958]87                <g:paginate total="${inventoryLocationInstanceTotal}" params="${filterParams}" />
[125]88            </div>
[958]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]]}" />
[125]96        </div>
97    </body>
98</html>
Note: See TracBrowser for help on using the repository browser.