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'}" onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'/> |
---|
43 | |
---|
44 | <td>${fieldValue(bean:inventoryMovementInstance, field:'quantity')}</td> |
---|
45 | |
---|
46 | <td>${fieldValue(bean:inventoryMovementInstance, field:'inventoryMovementType')}</td> |
---|
47 | |
---|
48 | <td><g:formatDate date="${inventoryMovementInstance.date}" format="EEE, dd-MMM-yyyy"/></td> |
---|
49 | |
---|
50 | <td>${fieldValue(bean:inventoryMovementInstance, field:'person')}</td> |
---|
51 | |
---|
52 | <td> |
---|
53 | <g:link action="show" id="${inventoryMovementInstance.id}"> |
---|
54 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
55 | </g:link> |
---|
56 | </td> |
---|
57 | |
---|
58 | </tr> |
---|
59 | </g:each> |
---|
60 | </tbody> |
---|
61 | </table> |
---|
62 | </div> |
---|
63 | <div class="paginateButtons"> |
---|
64 | <g:paginate action="listInventoryMovements" id="${inventoryItemInstance.id}" total="${inventoryMovementListTotal}" /> |
---|
65 | </div> |
---|
66 | </div> |
---|
67 | </body> |
---|
68 | </html> |
---|