| 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 InventoryItem</title>     | 
|---|
| 8 |         <nav:resources override="true"/>      | 
|---|
| 9 |     </head> | 
|---|
| 10 |     <body> | 
|---|
| 11 |         <div class="nav"> | 
|---|
| 12 |             <nav:renderSubItems group="nav"/> | 
|---|
| 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="${inventoryItemInstance}"> | 
|---|
| 19 |             <div class="errors"> | 
|---|
| 20 |                 <g:renderErrors bean="${inventoryItemInstance}" 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="name">Name:</label> | 
|---|
| 31 |                                 </td> | 
|---|
| 32 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> | 
|---|
| 33 |                                     <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> | 
|---|
| 34 |                                 </td> | 
|---|
| 35 |                             </tr>  | 
|---|
| 36 |                          | 
|---|
| 37 |                             <tr class="prop"> | 
|---|
| 38 |                                 <td valign="top" class="name"> | 
|---|
| 39 |                                     <label for="description">Description:</label> | 
|---|
| 40 |                                 </td> | 
|---|
| 41 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> | 
|---|
| 42 |                                     <input type="text" class="description" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> | 
|---|
| 43 |                                 </td> | 
|---|
| 44 |                             </tr> | 
|---|
| 45 |                          | 
|---|
| 46 |                             <tr class="prop"> | 
|---|
| 47 |                                 <td valign="top" class="name"> | 
|---|
| 48 |                                     <label for="inventoryLocation">Inventory Location:</label> | 
|---|
| 49 |                                 </td> | 
|---|
| 50 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> | 
|---|
| 51 |                                     <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> | 
|---|
| 52 |                                 </td> | 
|---|
| 53 |                             </tr> | 
|---|
| 54 |                          | 
|---|
| 55 |                             <tr class="prop"> | 
|---|
| 56 |                                 <td valign="top" class="name"> | 
|---|
| 57 |                                     <label for="reorderPoint">Reorder Point:</label> | 
|---|
| 58 |                                 </td> | 
|---|
| 59 |                                 <td valign="top"> | 
|---|
| 60 |                                     <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}" | 
|---|
| 61 |                                                     type="text" id="reorderPoint" name="reorderPoint" | 
|---|
| 62 |                                                     value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> | 
|---|
| 63 |                                     <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> | 
|---|
| 64 |                                 </td> | 
|---|
| 65 |                             </tr>  | 
|---|
| 66 |                          | 
|---|
| 67 |                             <tr class="prop"> | 
|---|
| 68 |                                 <td valign="top" class="name"> | 
|---|
| 69 |                                     <label for="enableReorder">Enable Reorder:</label> | 
|---|
| 70 |                                 </td> | 
|---|
| 71 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorder','errors')}"> | 
|---|
| 72 |                                     <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> | 
|---|
| 73 |                                 </td> | 
|---|
| 74 |                             </tr> | 
|---|
| 75 |                          | 
|---|
| 76 |                             <tr class="prop"> | 
|---|
| 77 |                                 <td valign="top" class="name"> | 
|---|
| 78 |                                     <label for="inventoryGroup">Inventory Group:</label> | 
|---|
| 79 |                                 </td> | 
|---|
| 80 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> | 
|---|
| 81 |                                     <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select> | 
|---|
| 82 |                                 </td> | 
|---|
| 83 |                             </tr>  | 
|---|
| 84 |                          | 
|---|
| 85 |                             <tr class="prop"> | 
|---|
| 86 |                                 <td valign="top" class="name"> | 
|---|
| 87 |                                     <label for="inventoryType">Inventory Type:</label> | 
|---|
| 88 |                                 </td> | 
|---|
| 89 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}"> | 
|---|
| 90 |                                     <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> | 
|---|
| 91 |                                 </td> | 
|---|
| 92 |                             </tr> | 
|---|
| 93 |                          | 
|---|
| 94 |                             <tr class="prop"> | 
|---|
| 95 |                                 <td valign="top" class="name"> | 
|---|
| 96 |                                     <label for="averageDeliveryTime">Average Delivery Time:</label> | 
|---|
| 97 |                                 </td> | 
|---|
| 98 |                                 <td valign="top"> | 
|---|
| 99 |                                     <input  class="medium ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}" | 
|---|
| 100 |                                                     type="text" id="averageDeliveryTime" name="averageDeliveryTime" | 
|---|
| 101 |                                                     value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> | 
|---|
| 102 |                                     <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'--None--']"></g:select> | 
|---|
| 103 |                                 </td> | 
|---|
| 104 |                             </tr> | 
|---|
| 105 |                          | 
|---|
| 106 |                             <tr class="prop"> | 
|---|
| 107 |                                 <td valign="top" class="name"> | 
|---|
| 108 |                                     <label for="suppliersPartNumber">Suppliers Part Number:</label> | 
|---|
| 109 |                                 </td> | 
|---|
| 110 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliersPartNumber','errors')}"> | 
|---|
| 111 |                                     <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> | 
|---|
| 112 |                                 </td> | 
|---|
| 113 |                             </tr> | 
|---|
| 114 |                          | 
|---|
| 115 |                             <tr class="prop"> | 
|---|
| 116 |                                 <td valign="top" class="name"> | 
|---|
| 117 |                                     <label for="suppliers">Suppliers:</label> | 
|---|
| 118 |                                 </td> | 
|---|
| 119 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> | 
|---|
| 120 |                                     <g:select id="suppliers" name="suppliers" | 
|---|
| 121 |                                                         from="${Supplier.list()}" | 
|---|
| 122 |                                                         size="5" multiple="yes" optionKey="id" | 
|---|
| 123 |                                                         value="${inventoryItemInstance?.suppliers?.id}" noSelection="['':'--None--']"/> | 
|---|
| 124 |  | 
|---|
| 125 |                                 </td> | 
|---|
| 126 |                             </tr> | 
|---|
| 127 |                          | 
|---|
| 128 |                             <tr class="prop"> | 
|---|
| 129 |                                 <td valign="top" class="name"> | 
|---|
| 130 |                                     <label for="manufacturersPartNumber">Manufacturers Part Number:</label> | 
|---|
| 131 |                                 </td> | 
|---|
| 132 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturersPartNumber','errors')}"> | 
|---|
| 133 |                                     <input type="text" id="manufacturersPartNumber" name="manufacturersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'manufacturersPartNumber')}"/> | 
|---|
| 134 |                                 </td> | 
|---|
| 135 |                             </tr>  | 
|---|
| 136 |                          | 
|---|
| 137 |                             <tr class="prop"> | 
|---|
| 138 |                                 <td valign="top" class="name"> | 
|---|
| 139 |                                     <label for="manufacturers">Manufacturers:</label> | 
|---|
| 140 |                                 </td> | 
|---|
| 141 |                                 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> | 
|---|
| 142 |                                     <g:select id="manufacturers" name="manufacturers" | 
|---|
| 143 |                                                         from="${Manufacturer.list()}" | 
|---|
| 144 |                                                         size="5" multiple="yes" optionKey="id" | 
|---|
| 145 |                                                         value="${inventoryItemInstance?.manufacturers?.id}" noSelection="['':'--None--']" /> | 
|---|
| 146 |  | 
|---|
| 147 |                                 </td> | 
|---|
| 148 |                             </tr> | 
|---|
| 149 |                          | 
|---|
| 150 |                         </tbody> | 
|---|
| 151 |                     </table> | 
|---|
| 152 |                 </div> | 
|---|
| 153 |                 <div class="buttons"> | 
|---|
| 154 |                     <span class="button"><input class="save" type="submit" value="Create" /></span> | 
|---|
| 155 |                 </div> | 
|---|
| 156 |             </g:form> | 
|---|
| 157 |         </div> | 
|---|
| 158 |     </body> | 
|---|
| 159 | </html> | 
|---|