|
Last change
on this file since 933 was
836,
checked in by gav, 15 years ago
|
|
Fix early closed table row on clickableOdd/clickableEven list tables.
|
|
File size:
2.9 KB
|
| Rev | Line | |
|---|
| [823] | 1 | |
|---|
| [822] | 2 | <g:if test="${inventoryMovementList.isEmpty()}"> |
|---|
| 3 | <br /> |
|---|
| 4 | No Inventory Movements. |
|---|
| 5 | <br /> |
|---|
| 6 | <br /> |
|---|
| 7 | </g:if> |
|---|
| 8 | <g:else> |
|---|
| 9 | <div class="list"> |
|---|
| 10 | <table> |
|---|
| 11 | <thead> |
|---|
| 12 | <tr> |
|---|
| 13 | <th>Inventory Item</th> |
|---|
| 14 | <th>Quantity</th> |
|---|
| 15 | <th>Movement Type</th> |
|---|
| 16 | <th>Date</th> |
|---|
| 17 | <th></th> |
|---|
| 18 | </tr> |
|---|
| 19 | </thead> |
|---|
| 20 | <tbody> |
|---|
| 21 | <g:each in="${inventoryMovementList}" status="i" var="inventoryMovementInstance"> |
|---|
| [836] | 22 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
|---|
| [822] | 23 | |
|---|
| 24 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
|---|
| 25 | ${fieldValue(bean:inventoryMovementInstance, field:'inventoryItem')} |
|---|
| 26 | </td> |
|---|
| 27 | |
|---|
| 28 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
|---|
| 29 | ${fieldValue(bean:inventoryMovementInstance, field:'quantity')} |
|---|
| 30 | </td> |
|---|
| 31 | |
|---|
| 32 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
|---|
| 33 | ${fieldValue(bean:inventoryMovementInstance, field:'inventoryMovementType')} |
|---|
| 34 | </td> |
|---|
| 35 | |
|---|
| 36 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
|---|
| 37 | <g:formatDate date="${inventoryMovementInstance.date}" format="EEE, dd-MMM-yyyy"/> |
|---|
| 38 | </td> |
|---|
| 39 | |
|---|
| 40 | <td class="notClickable"> |
|---|
| 41 | <g:link controller="inventoryMovementDetailed" action="show" id="${inventoryMovementInstance.id}"> |
|---|
| 42 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" title="Show" /> |
|---|
| 43 | </g:link> |
|---|
| 44 | </td> |
|---|
| 45 | |
|---|
| 46 | </tr> |
|---|
| 47 | </g:each> |
|---|
| 48 | </tbody> |
|---|
| 49 | </table> |
|---|
| 50 | </div> |
|---|
| 51 | </g:else> |
|---|
| 52 | |
|---|
| 53 | <g:form controller="inventoryItemDetailed" > |
|---|
| 54 | <g:hiddenField name="task.id" value="${taskInstance?.id}" /> |
|---|
| 55 | <div class="buttons"> |
|---|
| 56 | <g:if test="${!inventoryMovementList.isEmpty()}"> |
|---|
| 57 | Results: ${inventoryMovementList.size()} |
|---|
| 58 | <br /> |
|---|
| 59 | </g:if> |
|---|
| 60 | <span class="button"> |
|---|
| 61 | <g:actionSubmit action="findInventoryItemForMovement" class="add" value="Add" /> |
|---|
| 62 | </span> |
|---|
| 63 | </div> |
|---|
| [823] | 64 | </g:form> |
|---|
Note: See
TracBrowser
for help on using the repository browser.