source: trunk/grails-app/views/inventoryMovementDetailed/listInventoryMovements.gsp @ 836

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

Fix early closed table row on clickableOdd/clickableEven list tables.

File size: 3.9 KB
Line 
1<html>
2    <head>
3        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
4        <meta name="layout" content="main" />
5        <title>Inventory Movement List</title>
6        <nav:resources override="true"/>
7    </head>
8    <body>
9        <div class="nav">
10            <h1>List Inventory Movements</h1>
11        </div>
12        <div class="body">
13             <g:link controller="inventoryItemDetailed" action="show" id="${inventoryItemInstance.id}">
14                <h1>Inventory Item: ${inventoryItemInstance.name.encodeAsHTML()}.</h1>
15            </g:link>
16            <g:if test="${flash.message}">
17                <div class="message">${flash.message}</div>
18            </g:if>
19
20            <div class="paginateButtons">
21                Results:${inventoryMovementListTotal}
22            </div>
23            <div class="list">
24                <table>
25                    <thead>
26                        <tr>
27                       
28                                <g:sortableColumn action="listInventoryMovements" property="quantity" title="Quantity" params="[id: inventoryItemInstance.id]"/>
29                       
30                                <g:sortableColumn action="listInventoryMovements"  property="inventoryMovementType" title="Movement Type" params="[id: inventoryItemInstance.id]" />
31                       
32                            <g:sortableColumn action="listInventoryMovements"  property="date" title="Date" params="[id: inventoryItemInstance.id]" />
33                       
34                                <g:sortableColumn action="listInventoryMovements"  property="person" title="Person" params="[id: inventoryItemInstance.id]" />
35
36                            <th></th>
37                           
38                        </tr>
39                    </thead>
40                    <tbody>
41                    <g:each in="${inventoryMovementList}" status="i" var="inventoryMovementInstance">
42                    <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}">
43
44                            <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'>
45                                ${fieldValue(bean:inventoryMovementInstance, field:'quantity')}
46                            </td>
47                       
48                            <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'>
49                                ${fieldValue(bean:inventoryMovementInstance, field:'inventoryMovementType')}
50                            </td>
51                       
52                            <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'>
53                                <g:formatDate date="${inventoryMovementInstance.date}" format="EEE, dd-MMM-yyyy"/>
54                            </td>
55                       
56                            <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'>
57                                ${fieldValue(bean:inventoryMovementInstance, field:'person')}
58                            </td>
59
60                            <td class="notClickable">
61                                <g:link action="show" id="${inventoryMovementInstance.id}">
62                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
63                                </g:link>
64                            </td>
65                       
66                        </tr>
67                    </g:each>
68                    </tbody>
69                </table>
70            </div>
71            <div class="paginateButtons">
72                <g:paginate action="listInventoryMovements" id="${inventoryItemInstance.id}" total="${inventoryMovementListTotal}" />
73            </div>
74        </div>
75    </body>
76</html>
Note: See TracBrowser for help on using the repository browser.