[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" /> |
---|
| 7 | <title>Edit InventoryItem</title> |
---|
[139] | 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 method="post" > |
---|
| 24 | <input type="hidden" name="id" value="${inventoryItemInstance?.id}" /> |
---|
| 25 | <input type="hidden" name="version" value="${inventoryItemInstance?.version}" /> |
---|
| 26 | <div class="dialog"> |
---|
| 27 | <table> |
---|
| 28 | <tbody> |
---|
| 29 | |
---|
| 30 | <tr class="prop"> |
---|
| 31 | <td valign="top" class="name"> |
---|
| 32 | <label for="name">Name:</label> |
---|
| 33 | </td> |
---|
| 34 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> |
---|
| 35 | <input type="text" maxlength="75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> |
---|
| 36 | </td> |
---|
| 37 | </tr> |
---|
| 38 | |
---|
| 39 | <tr class="prop"> |
---|
| 40 | <td valign="top" class="name"> |
---|
| 41 | <label for="description">Description:</label> |
---|
| 42 | </td> |
---|
| 43 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> |
---|
| 44 | <input type="text" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> |
---|
| 45 | </td> |
---|
| 46 | </tr> |
---|
| 47 | |
---|
| 48 | <tr class="prop"> |
---|
| 49 | <td valign="top" class="name"> |
---|
| 50 | <label for="reorderPoint">Reorder Point:</label> |
---|
| 51 | </td> |
---|
| 52 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}"> |
---|
| 53 | <input type="text" id="reorderPoint" name="reorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> |
---|
| 54 | </td> |
---|
| 55 | </tr> |
---|
| 56 | |
---|
| 57 | <tr class="prop"> |
---|
| 58 | <td valign="top" class="name"> |
---|
| 59 | <label for="enableReorder">Enable Reorder:</label> |
---|
| 60 | </td> |
---|
| 61 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorder','errors')}"> |
---|
| 62 | <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> |
---|
| 63 | </td> |
---|
| 64 | </tr> |
---|
| 65 | |
---|
| 66 | <tr class="prop"> |
---|
| 67 | <td valign="top" class="name"> |
---|
| 68 | <label for="isActive">Is Active:</label> |
---|
| 69 | </td> |
---|
| 70 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> |
---|
| 71 | <g:checkBox name="isActive" value="${inventoryItemInstance?.isActive}" ></g:checkBox> |
---|
| 72 | </td> |
---|
| 73 | </tr> |
---|
| 74 | |
---|
| 75 | <tr class="prop"> |
---|
| 76 | <td valign="top" class="name"> |
---|
| 77 | <label for="isObsolete">Is Obsolete:</label> |
---|
| 78 | </td> |
---|
| 79 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}"> |
---|
| 80 | <g:checkBox name="isObsolete" value="${inventoryItemInstance?.isObsolete}" ></g:checkBox> |
---|
| 81 | </td> |
---|
| 82 | </tr> |
---|
| 83 | |
---|
| 84 | <tr class="prop"> |
---|
| 85 | <td valign="top" class="name"> |
---|
| 86 | <label for="inventoryGroup">Inventory Group:</label> |
---|
| 87 | </td> |
---|
| 88 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> |
---|
| 89 | <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select> |
---|
| 90 | </td> |
---|
| 91 | </tr> |
---|
| 92 | |
---|
| 93 | <tr class="prop"> |
---|
| 94 | <td valign="top" class="name"> |
---|
| 95 | <label for="inventoryType">Inventory Type:</label> |
---|
| 96 | </td> |
---|
| 97 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}"> |
---|
| 98 | <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> |
---|
| 99 | </td> |
---|
| 100 | </tr> |
---|
| 101 | |
---|
| 102 | <tr class="prop"> |
---|
| 103 | <td valign="top" class="name"> |
---|
| 104 | <label for="unitOfMeasure">Unit Of Measure:</label> |
---|
| 105 | </td> |
---|
| 106 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> |
---|
| 107 | <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> |
---|
| 108 | </td> |
---|
| 109 | </tr> |
---|
| 110 | |
---|
| 111 | <tr class="prop"> |
---|
| 112 | <td valign="top" class="name"> |
---|
| 113 | <label for="manufacturersPartNumber">Manufacturers Part Number:</label> |
---|
| 114 | </td> |
---|
| 115 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturersPartNumber','errors')}"> |
---|
| 116 | <input type="text" id="manufacturersPartNumber" name="manufacturersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'manufacturersPartNumber')}"/> |
---|
| 117 | </td> |
---|
| 118 | </tr> |
---|
| 119 | |
---|
| 120 | <tr class="prop"> |
---|
| 121 | <td valign="top" class="name"> |
---|
| 122 | <label for="suppliersPartNumber">Suppliers Part Number:</label> |
---|
| 123 | </td> |
---|
| 124 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliersPartNumber','errors')}"> |
---|
| 125 | <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> |
---|
| 126 | </td> |
---|
| 127 | </tr> |
---|
| 128 | |
---|
| 129 | <tr class="prop"> |
---|
| 130 | <td valign="top" class="name"> |
---|
| 131 | <label for="recommendedReorderPoint">Recommended Reorder Point:</label> |
---|
| 132 | </td> |
---|
| 133 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> |
---|
| 134 | <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> |
---|
| 135 | </td> |
---|
| 136 | </tr> |
---|
| 137 | |
---|
| 138 | <tr class="prop"> |
---|
| 139 | <td valign="top" class="name"> |
---|
| 140 | <label for="averageDeliveryTime">Average Delivery Time:</label> |
---|
| 141 | </td> |
---|
| 142 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> |
---|
| 143 | <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> |
---|
| 144 | </td> |
---|
| 145 | </tr> |
---|
| 146 | |
---|
| 147 | <tr class="prop"> |
---|
| 148 | <td valign="top" class="name"> |
---|
| 149 | <label for="alternateItems">Alternate Items:</label> |
---|
| 150 | </td> |
---|
| 151 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateItems','errors')}"> |
---|
| 152 | <g:select name="alternateItems" |
---|
| 153 | from="${InventoryItem.list()}" |
---|
| 154 | size="5" multiple="yes" optionKey="id" |
---|
| 155 | value="${inventoryItemInstance?.alternateItems}" /> |
---|
| 156 | |
---|
| 157 | </td> |
---|
| 158 | </tr> |
---|
| 159 | |
---|
| 160 | <tr class="prop"> |
---|
| 161 | <td valign="top" class="name"> |
---|
| 162 | <label for="inventoryMovements">Inventory Movements:</label> |
---|
| 163 | </td> |
---|
| 164 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryMovements','errors')}"> |
---|
| 165 | |
---|
| 166 | <ul> |
---|
| 167 | <g:each var="i" in="${inventoryItemInstance?.inventoryMovements?}"> |
---|
[125] | 168 | <li><g:link controller="inventoryMovementDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> |
---|
[116] | 169 | </g:each> |
---|
| 170 | </ul> |
---|
[125] | 171 | <g:link controller="inventoryMovementDetailed" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add InventoryMovement</g:link> |
---|
[116] | 172 | |
---|
| 173 | </td> |
---|
| 174 | </tr> |
---|
| 175 | |
---|
| 176 | <tr class="prop"> |
---|
| 177 | <td valign="top" class="name"> |
---|
| 178 | <label for="manufacturers">Manufacturers:</label> |
---|
| 179 | </td> |
---|
| 180 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> |
---|
| 181 | <g:select name="manufacturers" |
---|
| 182 | from="${Manufacturer.list()}" |
---|
| 183 | size="5" multiple="yes" optionKey="id" |
---|
| 184 | value="${inventoryItemInstance?.manufacturers}" /> |
---|
| 185 | |
---|
| 186 | </td> |
---|
| 187 | </tr> |
---|
| 188 | |
---|
| 189 | <tr class="prop"> |
---|
| 190 | <td valign="top" class="name"> |
---|
| 191 | <label for="spareFor">Spare For:</label> |
---|
| 192 | </td> |
---|
| 193 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'spareFor','errors')}"> |
---|
| 194 | <g:select name="spareFor" |
---|
| 195 | from="${Asset.list()}" |
---|
| 196 | size="5" multiple="yes" optionKey="id" |
---|
| 197 | value="${inventoryItemInstance?.spareFor}" /> |
---|
| 198 | |
---|
| 199 | </td> |
---|
| 200 | </tr> |
---|
| 201 | |
---|
| 202 | <tr class="prop"> |
---|
| 203 | <td valign="top" class="name"> |
---|
| 204 | <label for="storedItems">Stored Items:</label> |
---|
| 205 | </td> |
---|
| 206 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'storedItems','errors')}"> |
---|
| 207 | |
---|
| 208 | <ul> |
---|
| 209 | <g:each var="s" in="${inventoryItemInstance?.storedItems?}"> |
---|
[125] | 210 | <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
[116] | 211 | </g:each> |
---|
| 212 | </ul> |
---|
[125] | 213 | <g:link controller="storedItemDetailed" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add StoredItem</g:link> |
---|
[116] | 214 | |
---|
| 215 | </td> |
---|
| 216 | </tr> |
---|
| 217 | |
---|
| 218 | <tr class="prop"> |
---|
| 219 | <td valign="top" class="name"> |
---|
| 220 | <label for="suppliers">Suppliers:</label> |
---|
| 221 | </td> |
---|
| 222 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> |
---|
| 223 | <g:select name="suppliers" |
---|
| 224 | from="${Supplier.list()}" |
---|
| 225 | size="5" multiple="yes" optionKey="id" |
---|
| 226 | value="${inventoryItemInstance?.suppliers}" /> |
---|
| 227 | |
---|
| 228 | </td> |
---|
| 229 | </tr> |
---|
| 230 | |
---|
| 231 | </tbody> |
---|
| 232 | </table> |
---|
| 233 | </div> |
---|
| 234 | <div class="buttons"> |
---|
| 235 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 236 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 237 | </div> |
---|
| 238 | </g:form> |
---|
| 239 | </div> |
---|
| 240 | </body> |
---|
| 241 | </html> |
---|