| [116] | 1 |  | 
|---|
 | 2 |  | 
|---|
 | 3 | <html> | 
|---|
 | 4 |     <head> | 
|---|
 | 5 |         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | 
|---|
 | 6 |         <meta name="layout" content="main" /> | 
|---|
| [178] | 7 |         <title>Create InventoryMovement</title> | 
|---|
| [116] | 8 |     </head> | 
|---|
 | 9 |     <body> | 
|---|
 | 10 |         <div class="nav"> | 
|---|
 | 11 |             <span class="menuButton"><g:link class="list" action="list">InventoryMovement List</g:link></span> | 
|---|
 | 12 |         </div> | 
|---|
 | 13 |         <div class="body"> | 
|---|
 | 14 |             <h1>Create InventoryMovement</h1> | 
|---|
 | 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 |             <g:form action="save" method="post" > | 
|---|
 | 24 |                 <div class="dialog"> | 
|---|
 | 25 |                     <table> | 
|---|
 | 26 |                         <tbody> | 
|---|
 | 27 |                          | 
|---|
 | 28 |                             <tr class="prop"> | 
|---|
 | 29 |                                 <td valign="top" class="name"> | 
|---|
 | 30 |                                     <label for="inventoryItem">Inventory Item:</label> | 
|---|
 | 31 |                                 </td> | 
|---|
 | 32 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryItem','errors')}"> | 
|---|
 | 33 |                                     <g:select optionKey="id" from="${InventoryItem.list()}" name="inventoryItem.id" value="${inventoryMovementInstance?.inventoryItem?.id}" ></g:select> | 
|---|
 | 34 |                                 </td> | 
|---|
 | 35 |                             </tr>  | 
|---|
 | 36 |                          | 
|---|
 | 37 |                             <tr class="prop"> | 
|---|
 | 38 |                                 <td valign="top" class="name"> | 
|---|
 | 39 |                                     <label for="quantity">Quantity:</label> | 
|---|
 | 40 |                                 </td> | 
|---|
 | 41 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}"> | 
|---|
| [175] | 42 |                                     <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}" /> | 
|---|
| [116] | 43 |                                 </td> | 
|---|
 | 44 |                             </tr>  | 
|---|
 | 45 |                          | 
|---|
 | 46 |                             <tr class="prop"> | 
|---|
 | 47 |                                 <td valign="top" class="name"> | 
|---|
 | 48 |                                     <label for="inventoryMovementType">Inventory Movement Type:</label> | 
|---|
 | 49 |                                 </td> | 
|---|
 | 50 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryMovementType','errors')}"> | 
|---|
 | 51 |                                     <g:select optionKey="id" from="${InventoryMovementType.list()}" name="inventoryMovementType.id" value="${inventoryMovementInstance?.inventoryMovementType?.id}" ></g:select> | 
|---|
 | 52 |                                 </td> | 
|---|
 | 53 |                             </tr>  | 
|---|
 | 54 |                          | 
|---|
 | 55 |                             <tr class="prop"> | 
|---|
 | 56 |                                 <td valign="top" class="name"> | 
|---|
 | 57 |                                     <label for="task">Task:</label> | 
|---|
 | 58 |                                 </td> | 
|---|
 | 59 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'task','errors')}"> | 
|---|
 | 60 |                                     <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${inventoryMovementInstance?.task?.id}" noSelection="['null':'']"></g:select> | 
|---|
 | 61 |                                 </td> | 
|---|
 | 62 |                             </tr>  | 
|---|
 | 63 |                          | 
|---|
 | 64 |                             <tr class="prop"> | 
|---|
 | 65 |                                 <td valign="top" class="name"> | 
|---|
| [217] | 66 |                                     <label for="person">Person:</label> | 
|---|
 | 67 |                                 </td> | 
|---|
 | 68 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'person','errors')}"> | 
|---|
 | 69 |                                     <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${inventoryMovementInstance?.person?.id}" ></g:select> | 
|---|
 | 70 |                                 </td> | 
|---|
 | 71 |                             </tr>  | 
|---|
 | 72 |                          | 
|---|
 | 73 |                             <tr class="prop"> | 
|---|
 | 74 |                                 <td valign="top" class="name"> | 
|---|
| [116] | 75 |                                     <label for="date">Date:</label> | 
|---|
 | 76 |                                 </td> | 
|---|
 | 77 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'date','errors')}"> | 
|---|
| [175] | 78 |                                     <g:datePicker name="date" value="${inventoryMovementInstance?.date}" precision="minute" ></g:datePicker> | 
|---|
| [116] | 79 |                                 </td> | 
|---|
 | 80 |                             </tr>  | 
|---|
 | 81 |                          | 
|---|
 | 82 |                         </tbody> | 
|---|
 | 83 |                     </table> | 
|---|
 | 84 |                 </div> | 
|---|
 | 85 |                 <div class="buttons"> | 
|---|
 | 86 |                     <span class="button"><input class="save" type="submit" value="Create" /></span> | 
|---|
 | 87 |                 </div> | 
|---|
 | 88 |             </g:form> | 
|---|
 | 89 |         </div> | 
|---|
 | 90 |     </body> | 
|---|
 | 91 | </html> | 
|---|