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

Last change on this file since 151 was 151, checked in by gav, 15 years ago

Replace all deprecated "createLinkTo" links with "resource".

File size: 2.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        <resource:tabView skin="tabviewCustom" />
10    </head>
11    <body>
12        <div class="nav">
13            <nav:renderSubItems group="nav"/>
14        </div>
15        <div class="body">
16            <g:if test="${flash.message}">
17            <div class="message">${flash.message}</div>
18            </g:if>
19            Search           
20            <br />
21            <br />
22           
23            <div class="list">
24                <table>
25                    <thead>
26                        <tr>
27                       
28                                <g:sortableColumn property="id" title="Id" />
29                       
30                                <g:sortableColumn property="name" title="Name" />
31                       
32                                <g:sortableColumn property="description" title="Description" />
33                       
34                                <g:sortableColumn property="enableReorder" title="Enable Reorder" />
35                       
36                                <g:sortableColumn property="isActive" title="Is Active" />
37
38                            <th></th>
39                       
40                        </tr>
41                    </thead>
42                    <tbody>
43                    <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance">
44                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"'/>
45                       
46                            <td>${fieldValue(bean:inventoryItemInstance, field:'id')}</td>
47                       
48                            <td>${fieldValue(bean:inventoryItemInstance, field:'name')}</td>
49                       
50                            <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td>
51                       
52                            <td>${fieldValue(bean:inventoryItemInstance, field:'enableReorder')}</td>
53                       
54                            <td>${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td>
55
56                            <td>
57                                <g:link action="show" id="${inventoryItemInstance.id}">
58                                    <img  src="${resource(dir:'images/skin',file:'database_table.png')}" alt="Show" />
59                                </g:link>
60                            </td>
61                       
62                        </tr>
63                    </g:each>
64                    </tbody>
65                </table>
66            </div>
67            <div class="paginateButtons">
68                <g:paginate total="${inventoryItemInstanceTotal}" />
69            </div>
70        </div>
71    </body>
72</html>
Note: See TracBrowser for help on using the repository browser.