[224] | 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 | |
---|
[442] | 28 | <g:sortableColumn action="listInventoryMovements" property="quantity" title="Quantity" params="[id: inventoryItemInstance.id]"/> |
---|
[224] | 29 | |
---|
[442] | 30 | <g:sortableColumn action="listInventoryMovements" property="inventoryMovementType" title="Movement Type" params="[id: inventoryItemInstance.id]" /> |
---|
[224] | 31 | |
---|
[442] | 32 | <g:sortableColumn action="listInventoryMovements" property="date" title="Date" params="[id: inventoryItemInstance.id]" /> |
---|
[224] | 33 | |
---|
[442] | 34 | <g:sortableColumn action="listInventoryMovements" property="person" title="Person" params="[id: inventoryItemInstance.id]" /> |
---|
[224] | 35 | |
---|
| 36 | <th></th> |
---|
| 37 | |
---|
| 38 | </tr> |
---|
| 39 | </thead> |
---|
| 40 | <tbody> |
---|
| 41 | <g:each in="${inventoryMovementList}" status="i" var="inventoryMovementInstance"> |
---|
[498] | 42 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> |
---|
[224] | 43 | |
---|
[498] | 44 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
---|
| 45 | ${fieldValue(bean:inventoryMovementInstance, field:'quantity')} |
---|
| 46 | </td> |
---|
[224] | 47 | |
---|
[498] | 48 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
---|
| 49 | ${fieldValue(bean:inventoryMovementInstance, field:'inventoryMovementType')} |
---|
| 50 | </td> |
---|
[224] | 51 | |
---|
[498] | 52 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
---|
| 53 | <g:formatDate date="${inventoryMovementInstance.date}" format="EEE, dd-MMM-yyyy"/> |
---|
| 54 | </td> |
---|
[224] | 55 | |
---|
[498] | 56 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
---|
| 57 | ${fieldValue(bean:inventoryMovementInstance, field:'person')} |
---|
| 58 | </td> |
---|
[224] | 59 | |
---|
[498] | 60 | <td class="notClickable"> |
---|
[224] | 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"> |
---|
[442] | 72 | <g:paginate action="listInventoryMovements" id="${inventoryItemInstance.id}" total="${inventoryMovementListTotal}" /> |
---|
[224] | 73 | </div> |
---|
| 74 | </div> |
---|
| 75 | </body> |
---|
| 76 | </html> |
---|