[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"/> |
---|
[182] | 9 | <g:render template="/shared/pictureHead" /> |
---|
[116] | 10 | </head> |
---|
| 11 | <body> |
---|
| 12 | <div class="nav"> |
---|
[139] | 13 | <nav:renderSubItems group="nav"/> |
---|
[116] | 14 | </div> |
---|
| 15 | <div class="body"> |
---|
[405] | 16 | <g:render template="/shared/messages" /> |
---|
[116] | 17 | <g:hasErrors bean="${inventoryItemInstance}"> |
---|
| 18 | <div class="errors"> |
---|
| 19 | <g:renderErrors bean="${inventoryItemInstance}" as="list" /> |
---|
| 20 | </div> |
---|
| 21 | </g:hasErrors> |
---|
| 22 | <g:form method="post" > |
---|
| 23 | <input type="hidden" name="id" value="${inventoryItemInstance?.id}" /> |
---|
| 24 | <input type="hidden" name="version" value="${inventoryItemInstance?.version}" /> |
---|
| 25 | <div class="dialog"> |
---|
| 26 | <table> |
---|
| 27 | <tbody> |
---|
[223] | 28 | |
---|
[182] | 29 | <tr class="prop"> |
---|
| 30 | <td valign="top" class="name">Picture:</td> |
---|
| 31 | <td valign="top" class="value"> |
---|
| 32 | <g:if test="${inventoryItemInstance.picture}" > |
---|
| 33 | <span class='gallery'> |
---|
| 34 | <wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" size="${Image.Medium}" lightboxSize="${Image.Large}" target="_blank" title="Show Original" /> |
---|
| 35 | </span> |
---|
| 36 | <br /> |
---|
| 37 | <g:link controller="pictureDetailed" action="edit" id="${inventoryItemInstance.picture.id}" > |
---|
| 38 | Edit Picture |
---|
| 39 | </g:link> |
---|
| 40 | </g:if> |
---|
| 41 | </td> |
---|
| 42 | </tr> |
---|
[223] | 43 | |
---|
[116] | 44 | <tr class="prop"> |
---|
| 45 | <td valign="top" class="name"> |
---|
| 46 | <label for="name">Name:</label> |
---|
| 47 | </td> |
---|
[223] | 48 | <td valign="top"> |
---|
| 49 | <input class="description ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}" |
---|
| 50 | type="text" maxlength="50" id="name" name="name" |
---|
| 51 | value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> |
---|
[716] | 52 | <g:helpBalloon class="helpballoon" code="inventory.item.name" /> |
---|
[116] | 53 | </td> |
---|
[223] | 54 | </tr> |
---|
| 55 | |
---|
[116] | 56 | <tr class="prop"> |
---|
| 57 | <td valign="top" class="name"> |
---|
| 58 | <label for="description">Description:</label> |
---|
| 59 | </td> |
---|
[422] | 60 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> |
---|
| 61 | <textarea rows="5" cols="40" name="description">${fieldValue(bean:inventoryItemInstance, field:'description')}</textarea> |
---|
[716] | 62 | <g:helpBalloon class="helpballoon" code="inventory.item.description" /> |
---|
[116] | 63 | </td> |
---|
[223] | 64 | </tr> |
---|
| 65 | |
---|
[116] | 66 | <tr class="prop"> |
---|
| 67 | <td valign="top" class="name"> |
---|
[422] | 68 | <label for="comment">Comment:</label> |
---|
| 69 | </td> |
---|
| 70 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'comment','errors')}"> |
---|
| 71 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:inventoryItemInstance, field:'comment')}</textarea> |
---|
[716] | 72 | <g:helpBalloon class="helpballoon" code="inventory.item.comment" /> |
---|
[422] | 73 | </td> |
---|
| 74 | </tr> |
---|
| 75 | |
---|
| 76 | <tr class="prop"> |
---|
| 77 | <td valign="top" class="name"> |
---|
[223] | 78 | <label for="unitsInStock">In Stock:</label> |
---|
[175] | 79 | </td> |
---|
[182] | 80 | <td valign="top" class="value"> |
---|
[223] | 81 | ${inventoryItemInstance.unitsInStock} ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()} |
---|
[716] | 82 | <g:helpBalloon class="helpballoon" code="inventory.item.units.in.stock" /> |
---|
[175] | 83 | </td> |
---|
| 84 | </tr> |
---|
[223] | 85 | |
---|
[175] | 86 | <tr class="prop"> |
---|
| 87 | <td valign="top" class="name"> |
---|
[223] | 88 | <label for="inventoryLocation">Location:</label> |
---|
[116] | 89 | </td> |
---|
[223] | 90 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> |
---|
[382] | 91 | <g:select optionKey="id" |
---|
| 92 | from="${ InventoryLocation.list().sort { p1, p2 -> p1.toString().compareToIgnoreCase(p2.toString()) } }" |
---|
| 93 | name="inventoryLocation.id" |
---|
[392] | 94 | value="${inventoryItemInstance?.inventoryLocation?.id}" |
---|
| 95 | optionValue="${{it.name+ ' in ' + it.inventoryStore}}"> |
---|
[382] | 96 | </g:select> |
---|
[716] | 97 | <g:helpBalloon class="helpballoon" code="inventory.item.inventory.location" /> |
---|
[116] | 98 | </td> |
---|
[175] | 99 | </tr> |
---|
[223] | 100 | |
---|
[175] | 101 | <tr class="prop"> |
---|
| 102 | <td valign="top" class="name"> |
---|
| 103 | <label for="isActive">Active:</label> |
---|
[116] | 104 | </td> |
---|
| 105 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> |
---|
| 106 | <g:checkBox name="isActive" value="${inventoryItemInstance?.isActive}" ></g:checkBox> |
---|
[716] | 107 | <g:helpBalloon class="helpballoon" code="inventory.item.is.active" /> |
---|
[116] | 108 | </td> |
---|
[223] | 109 | </tr> |
---|
| 110 | |
---|
[116] | 111 | <tr class="prop"> |
---|
| 112 | <td valign="top" class="name"> |
---|
[223] | 113 | <label for="reorderPoint">Reorder Point:</label> |
---|
[116] | 114 | </td> |
---|
[223] | 115 | <td valign="top"> |
---|
| 116 | <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}" |
---|
| 117 | type="text" id="reorderPoint" name="reorderPoint" |
---|
| 118 | value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> |
---|
[716] | 119 | ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()} |
---|
| 120 | <g:helpBalloon class="helpballoon" code="inventory.item.reorder.point" /> |
---|
[116] | 121 | </td> |
---|
[223] | 122 | </tr> |
---|
| 123 | |
---|
[116] | 124 | <tr class="prop"> |
---|
| 125 | <td valign="top" class="name"> |
---|
[715] | 126 | <label for="reorderQuantity">Reorder Quantity:</label> |
---|
[116] | 127 | </td> |
---|
[223] | 128 | <td valign="top"> |
---|
[715] | 129 | <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'reorderQuantity','errors')}" |
---|
| 130 | type="text" id="reorderQuantity" name="reorderQuantity" |
---|
| 131 | value="${fieldValue(bean:inventoryItemInstance,field:'reorderQuantity')}" /> |
---|
[223] | 132 | ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()} |
---|
[716] | 133 | <g:helpBalloon class="helpballoon" code="inventory.item.reorder.quantity" /> |
---|
[116] | 134 | </td> |
---|
[223] | 135 | </tr> |
---|
| 136 | |
---|
[116] | 137 | <tr class="prop"> |
---|
| 138 | <td valign="top" class="name"> |
---|
[616] | 139 | <label for="enableReorderListing">Enable Reorder Listing:</label> |
---|
[116] | 140 | </td> |
---|
[616] | 141 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorderListing','errors')}"> |
---|
| 142 | <g:checkBox name="enableReorderListing" value="${inventoryItemInstance?.enableReorderListing}" ></g:checkBox> |
---|
[716] | 143 | <g:helpBalloon class="helpballoon" code="inventory.item.enable.reorder.listing" /> |
---|
[116] | 144 | </td> |
---|
[175] | 145 | </tr> |
---|
[223] | 146 | |
---|
[116] | 147 | <tr class="prop"> |
---|
| 148 | <td valign="top" class="name"> |
---|
[223] | 149 | <label for="isObsolete">Obsolete:</label> |
---|
[116] | 150 | </td> |
---|
[223] | 151 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}"> |
---|
| 152 | <g:checkBox name="isObsolete" value="${inventoryItemInstance?.isObsolete}" ></g:checkBox> |
---|
[716] | 153 | <g:helpBalloon class="helpballoon" code="inventory.item.is.obsolete" /> |
---|
[116] | 154 | </td> |
---|
[175] | 155 | </tr> |
---|
[223] | 156 | |
---|
[116] | 157 | <tr class="prop"> |
---|
| 158 | <td valign="top" class="name"> |
---|
[718] | 159 | <label for="estimatedUnitPriceAmount">Estimated Unit Price:</label> |
---|
[116] | 160 | </td> |
---|
[441] | 161 | <td valign="top" class="value"> |
---|
[405] | 162 | <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'estimatedUnitPriceAmount','errors')}" |
---|
| 163 | type="text" id="estimatedUnitPriceAmount" name="estimatedUnitPriceAmount" |
---|
| 164 | value="${inventoryItemInstance.estimatedUnitPriceAmount}" /> |
---|
| 165 | <g:currencySelect name="estimatedUnitPriceCurrency" |
---|
[604] | 166 | value="${inventoryItemInstance?.estimatedUnitPriceCurrency}" |
---|
| 167 | from="${grailsApplication.config.currencyList}"> |
---|
| 168 | </g:currencySelect> |
---|
[716] | 169 | <g:helpBalloon class="helpballoon" code="inventory.item.estimated.unit.price.amount" /> |
---|
[405] | 170 | </td> |
---|
| 171 | </tr> |
---|
[223] | 172 | |
---|
[116] | 173 | <tr class="prop"> |
---|
| 174 | <td valign="top" class="name"> |
---|
[223] | 175 | <label for="suppliersPartNumber">Suppliers Part Number:</label> |
---|
[116] | 176 | </td> |
---|
[223] | 177 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliersPartNumber','errors')}"> |
---|
| 178 | <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> |
---|
[716] | 179 | <g:helpBalloon class="helpballoon" code="inventory.item.suppliers.part.number" /> |
---|
[116] | 180 | </td> |
---|
[175] | 181 | </tr> |
---|
[223] | 182 | |
---|
[116] | 183 | <tr class="prop"> |
---|
| 184 | <td valign="top" class="name"> |
---|
[435] | 185 | <label for="preferredSupplier">Preferred Supplier:</label> |
---|
[116] | 186 | </td> |
---|
[435] | 187 | <td valign="top"> |
---|
| 188 | <g:select optionKey="id" from="${suppliers}" name="preferredSupplier.id" value="${inventoryItemInstance.preferredSupplier?.id}" noSelection="['null':'--None--']"></g:select> |
---|
[716] | 189 | <g:helpBalloon class="helpballoon" code="inventory.item.preferred.supplier" /> |
---|
[435] | 190 | <p><g:link controller="supplierDetailed" action="create">+Add Supplier</g:link></p> |
---|
[116] | 191 | </td> |
---|
[223] | 192 | </tr> |
---|
| 193 | |
---|
[116] | 194 | <tr class="prop"> |
---|
| 195 | <td valign="top" class="name"> |
---|
[435] | 196 | <label for="alternateSuppliers">Alternate Suppliers:</label> |
---|
| 197 | </td> |
---|
| 198 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateSuppliers','errors')}"> |
---|
| 199 | <g:select id="alternateSuppliers" name="alternateSuppliers" |
---|
| 200 | from="${suppliers}" |
---|
| 201 | size="5" multiple="yes" optionKey="id" |
---|
| 202 | value="${inventoryItemInstance.alternateSuppliers?.id}" noSelection="['':'--None--']"/> |
---|
[716] | 203 | <g:helpBalloon class="helpballoon" code="inventory.item.alternate.suppliers" /> |
---|
[435] | 204 | </td> |
---|
| 205 | </tr> |
---|
| 206 | |
---|
| 207 | <tr class="prop"> |
---|
| 208 | <td valign="top" class="name"> |
---|
[223] | 209 | <label for="manufacturersPartNumber">Manufacturers Part Number:</label> |
---|
[116] | 210 | </td> |
---|
[223] | 211 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturersPartNumber','errors')}"> |
---|
| 212 | <input type="text" id="manufacturersPartNumber" name="manufacturersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'manufacturersPartNumber')}"/> |
---|
| 213 | </td> |
---|
| 214 | </tr> |
---|
[116] | 215 | |
---|
| 216 | <tr class="prop"> |
---|
| 217 | <td valign="top" class="name"> |
---|
[435] | 218 | <label for="preferredManufacturer">Preferred Manufacturer:</label> |
---|
[116] | 219 | </td> |
---|
[435] | 220 | <td valign="top"> |
---|
| 221 | <g:select optionKey="id" from="${manufacturers}" name="preferredManufacturer.id" value="${inventoryItemInstance.preferredManufacturer?.id}" noSelection="['null':'--None--']"></g:select> |
---|
[382] | 222 | |
---|
[410] | 223 | <p><g:link controller="manufacturerDetailed" action="create">+Add Manufacturer</g:link></p> |
---|
[223] | 224 | </td> |
---|
| 225 | </tr> |
---|
[116] | 226 | |
---|
| 227 | <tr class="prop"> |
---|
| 228 | <td valign="top" class="name"> |
---|
[435] | 229 | <label for="manufacturers">Alternate Manufacturers:</label> |
---|
| 230 | </td> |
---|
| 231 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateManufacturers','errors')}"> |
---|
| 232 | <g:select id="alternateManufacturers" name="alternateManufacturers" |
---|
| 233 | from="${manufacturers}" |
---|
| 234 | size="5" multiple="yes" optionKey="id" |
---|
| 235 | value="${inventoryItemInstance.alternateManufacturers?.id}" noSelection="['':'--None--']" /> |
---|
| 236 | </td> |
---|
| 237 | </tr> |
---|
| 238 | |
---|
| 239 | <tr class="prop"> |
---|
| 240 | <td valign="top" class="name"> |
---|
[116] | 241 | <label for="spareFor">Spare For:</label> |
---|
| 242 | </td> |
---|
| 243 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'spareFor','errors')}"> |
---|
| 244 | <g:select name="spareFor" |
---|
[382] | 245 | from="${ Asset.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }" |
---|
[223] | 246 | size="5" multiple="yes" optionKey="id" |
---|
[382] | 247 | value="${inventoryItemInstance?.spareFor.id}" noSelection="['':'--None--']"/> |
---|
[116] | 248 | |
---|
| 249 | </td> |
---|
[175] | 250 | </tr> |
---|
[223] | 251 | |
---|
[116] | 252 | <tr class="prop"> |
---|
| 253 | <td valign="top" class="name"> |
---|
[223] | 254 | <label for="alternateItems">Alternate Items:</label> |
---|
[116] | 255 | </td> |
---|
[223] | 256 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateItems','errors')}"> |
---|
| 257 | <g:select name="alternateItems" |
---|
[425] | 258 | from="${possibleAlternateItems}" |
---|
[223] | 259 | size="5" multiple="yes" optionKey="id" |
---|
[382] | 260 | value="${inventoryItemInstance?.alternateItems.id}" noSelection="['':'--None--']"/> |
---|
[223] | 261 | |
---|
[116] | 262 | </td> |
---|
[175] | 263 | </tr> |
---|
[223] | 264 | |
---|
[116] | 265 | <tr class="prop"> |
---|
| 266 | <td valign="top" class="name"> |
---|
[223] | 267 | <label for="inventoryGroup">Inventory Group:</label> |
---|
[116] | 268 | </td> |
---|
[223] | 269 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> |
---|
| 270 | <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select> |
---|
[716] | 271 | <g:helpBalloon class="helpballoon" code="inventory.item.inventory.group" /> |
---|
[223] | 272 | </td> |
---|
| 273 | </tr> |
---|
[116] | 274 | |
---|
[223] | 275 | <tr class="prop"> |
---|
| 276 | <td valign="top" class="name"> |
---|
| 277 | <label for="inventoryType">Inventory Type:</label> |
---|
[116] | 278 | </td> |
---|
[223] | 279 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}"> |
---|
| 280 | <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> |
---|
[716] | 281 | <g:helpBalloon class="helpballoon" code="inventory.item.inventory.type" /> |
---|
[223] | 282 | </td> |
---|
[175] | 283 | </tr> |
---|
[223] | 284 | |
---|
[116] | 285 | </tbody> |
---|
| 286 | </table> |
---|
| 287 | </div> |
---|
| 288 | <div class="buttons"> |
---|
| 289 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
[223] | 290 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
[116] | 291 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 292 | </div> |
---|
| 293 | </g:form> |
---|
| 294 | </div> |
---|
| 295 | </body> |
---|
| 296 | </html> |
---|