| 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> | 
|---|
| 23 |  | 
|---|
| 24 |             <g:form action="save" method="post" > | 
|---|
| 25 |                 <g:hiddenField name="inventoryItem.id" value="${inventoryMovementInstance?.inventoryItem?.id}" /> | 
|---|
| 26 |                 <div class="dialog"> | 
|---|
| 27 |                     <table> | 
|---|
| 28 |                         <tbody> | 
|---|
| 29 |  | 
|---|
| 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')}"> | 
|---|
| 35 |                                     <g:link controller="inventoryItemDetailed" action="show" id="${inventoryMovementInstance?.inventoryItem?.id}" > | 
|---|
| 36 |                                         <g:fieldValue bean="${inventoryMovementInstance}" field="inventoryItem" /> | 
|---|
| 37 |                                     </g:link> | 
|---|
| 38 |                                 </td> | 
|---|
| 39 |                             </tr> | 
|---|
| 40 |  | 
|---|
| 41 |                             <tr class="prop"> | 
|---|
| 42 |                                 <td valign="top" class="name"> | 
|---|
| 43 |                                     <label for="quantity">Quantity:</label> | 
|---|
| 44 |                                 </td> | 
|---|
| 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()} | 
|---|
| 50 |                                 </td> | 
|---|
| 51 |                             </tr> | 
|---|
| 52 |  | 
|---|
| 53 |                             <tr class="prop"> | 
|---|
| 54 |                                 <td valign="top" class="name"> | 
|---|
| 55 |                                     <label for="inventoryMovementType">Movement Type:</label> | 
|---|
| 56 |                                 </td> | 
|---|
| 57 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryMovementType','errors')}"> | 
|---|
| 58 |                                     <g:select optionKey="id" from="${inventoryMovementTypeList}" name="inventoryMovementType.id" value="${inventoryMovementInstance?.inventoryMovementType?.id}" ></g:select> | 
|---|
| 59 |                                 </td> | 
|---|
| 60 |                             </tr> | 
|---|
| 61 |  | 
|---|
| 62 |                             <g:if test="${inventoryMovementInstance?.task}"> | 
|---|
| 63 |                                 <tr class="prop"> | 
|---|
| 64 |                                     <td valign="top" class="name"> | 
|---|
| 65 |                                         <label for="taskInstance">Linking with task:</label> | 
|---|
| 66 |                                     </td> | 
|---|
| 67 |                                     <td valign="top" class="value"> | 
|---|
| 68 |                                         <g:hiddenField name="task.id" value="${inventoryMovementInstance.task.id}" /> | 
|---|
| 69 |                                         <g:link controller="taskDetailed" action="show" id="${inventoryMovementInstance.task.id}" > | 
|---|
| 70 |                                             ${inventoryMovementInstance.task.encodeAsHTML()} | 
|---|
| 71 |                                         </g:link> | 
|---|
| 72 |                                     </td> | 
|---|
| 73 |                                 </tr> | 
|---|
| 74 |                             </g:if> | 
|---|
| 75 |  | 
|---|
| 76 |                         </tbody> | 
|---|
| 77 |                     </table> | 
|---|
| 78 |                 </div> | 
|---|
| 79 |  | 
|---|
| 80 |                 <div class="buttons"> | 
|---|
| 81 |                     <span class="button"><input class="save" type="submit" value="Create" /></span> | 
|---|
| 82 |                 </div> | 
|---|
| 83 |  | 
|---|
| 84 |             </g:form> | 
|---|
| 85 |         </div> | 
|---|
| 86 |     </body> | 
|---|
| 87 | </html> | 
|---|