[175] | 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>Create InventoryMovement</title> |
---|
| 8 | <g:javascript src="overlayPane.js" /> |
---|
| 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
| 12 | <h1>Create Inventory Movement</h1> |
---|
| 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <g:if test="${flash.message}"> |
---|
| 16 | <div class="message">${flash.message}</div> |
---|
| 17 | </g:if> |
---|
| 18 | <g:hasErrors bean="${inventoryMovementInstance}"> |
---|
| 19 | <div class="errors"> |
---|
| 20 | <g:renderErrors bean="${inventoryMovementInstance}" as="list" /> |
---|
| 21 | </div> |
---|
| 22 | </g:hasErrors> |
---|
[226] | 23 | |
---|
[175] | 24 | <g:form action="save" method="post" > |
---|
[226] | 25 | <g:hiddenField name="inventoryItem.id" value="${inventoryMovementInstance?.inventoryItem?.id}" /> |
---|
[175] | 26 | <div class="dialog"> |
---|
| 27 | <table> |
---|
| 28 | <tbody> |
---|
[226] | 29 | |
---|
[175] | 30 | <tr class="prop"> |
---|
| 31 | <td valign="top" class="name"> |
---|
| 32 | <label for="inventoryItem">Inventory Item:</label> |
---|
| 33 | </td> |
---|
| 34 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryItem','errors')}"> |
---|
[226] | 35 | <g:link controller="inventoryItemDetailed" action="show" id="${inventoryMovementInstance?.inventoryItem?.id}" > |
---|
| 36 | <g:fieldValue bean="${inventoryMovementInstance}" field="inventoryItem" /> |
---|
| 37 | </g:link> |
---|
[175] | 38 | </td> |
---|
[226] | 39 | </tr> |
---|
| 40 | |
---|
[175] | 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name"> |
---|
| 43 | <label for="quantity">Quantity:</label> |
---|
| 44 | </td> |
---|
[226] | 45 | <td valign="top"> |
---|
| 46 | <input class="medium ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}" |
---|
| 47 | type="text" id="quantity" name="quantity" |
---|
| 48 | value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}"/> |
---|
| 49 | ${inventoryMovementInstance?.inventoryItem?.unitOfMeasure.encodeAsHTML()} |
---|
[175] | 50 | </td> |
---|
| 51 | </tr> |
---|
| 52 | |
---|
| 53 | <tr class="prop"> |
---|
| 54 | <td valign="top" class="name"> |
---|
[177] | 55 | <label for="inventoryMovementType">Movement Type:</label> |
---|
[175] | 56 | </td> |
---|
| 57 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryMovementType','errors')}"> |
---|
[226] | 58 | <g:select optionKey="id" from="${inventoryMovementTypeList}" name="inventoryMovementType.id" value="${inventoryMovementInstance?.inventoryMovementType?.id}" ></g:select> |
---|
[175] | 59 | </td> |
---|
| 60 | </tr> |
---|
| 61 | |
---|
[226] | 62 | <g:if test="${inventoryMovementInstance?.task}"> |
---|
[175] | 63 | <tr class="prop"> |
---|
| 64 | <td valign="top" class="name"> |
---|
[225] | 65 | <label for="taskInstance">Linking with task:</label> |
---|
[175] | 66 | </td> |
---|
[226] | 67 | <td valign="top" class="value"> |
---|
[191] | 68 | <g:hiddenField name="task.id" value="${inventoryMovementInstance.task.id}" /> |
---|
| 69 | <g:link controller="taskDetailed" action="show" id="${inventoryMovementInstance.task.id}" > |
---|
[226] | 70 | ${inventoryMovementInstance.task.encodeAsHTML()} |
---|
[191] | 71 | </g:link> |
---|
[175] | 72 | </td> |
---|
| 73 | </tr> |
---|
| 74 | </g:if> |
---|
| 75 | |
---|
| 76 | </tbody> |
---|
| 77 | </table> |
---|
| 78 | </div> |
---|
[226] | 79 | |
---|
[175] | 80 | <div class="buttons"> |
---|
| 81 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 82 | </div> |
---|
[226] | 83 | |
---|
[175] | 84 | </g:form> |
---|
| 85 | </div> |
---|
| 86 | </body> |
---|
| 87 | </html> |
---|