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