Changeset 175 for trunk/grails-app/views/inventoryItem/edit.gsp
- Timestamp:
- Oct 29, 2009, 8:30:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItem/edit.gsp
r151 r175 35 35 </td> 36 36 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 37 <input type="text" maxlength=" 75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>37 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 38 38 </td> 39 39 </tr> … … 50 50 <tr class="prop"> 51 51 <td valign="top" class="name"> 52 <label for="unitsInStock">Units In Stock:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 55 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="unitOfMeasure">Unit Of Measure:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 64 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 65 </td> 66 </tr> 67 68 <tr class="prop"> 69 <td valign="top" class="name"> 52 70 <label for="reorderPoint">Reorder Point:</label> 53 71 </td> … … 68 86 <tr class="prop"> 69 87 <td valign="top" class="name"> 88 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 89 </td> 90 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 91 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 92 </td> 93 </tr> 94 95 <tr class="prop"> 96 <td valign="top" class="name"> 70 97 <label for="isActive">Is Active:</label> 71 98 </td> … … 104 131 <tr class="prop"> 105 132 <td valign="top" class="name"> 106 <label for="unitOfMeasure">Unit Of Measure:</label>107 </td>108 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}">109 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select>110 </td>111 </tr>112 113 <tr class="prop">114 <td valign="top" class="name">115 133 <label for="manufacturersPartNumber">Manufacturers Part Number:</label> 116 134 </td> … … 131 149 <tr class="prop"> 132 150 <td valign="top" class="name"> 133 <label for="recommendedReorderPoint">Recommended Reorder Point:</label>134 </td>135 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}">136 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" />137 </td>138 </tr>139 140 <tr class="prop">141 <td valign="top" class="name">142 151 <label for="averageDeliveryTime">Average Delivery Time:</label> 143 152 </td> 144 153 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 145 154 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 155 </td> 156 </tr> 157 158 <tr class="prop"> 159 <td valign="top" class="name"> 160 <label for="averageDeliveryPeriod">Average Delivery Period:</label> 161 </td> 162 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryPeriod','errors')}"> 163 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'']"></g:select> 146 164 </td> 147 165 </tr> … … 157 175 value="${inventoryItemInstance?.alternateItems}" /> 158 176 177 </td> 178 </tr> 179 180 <tr class="prop"> 181 <td valign="top" class="name"> 182 <label for="inventoryLocation">Inventory Location:</label> 183 </td> 184 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 185 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 159 186 </td> 160 187 </tr> … … 198 225 size="5" multiple="yes" optionKey="id" 199 226 value="${inventoryItemInstance?.spareFor}" /> 200 201 </td>202 </tr>203 204 <tr class="prop">205 <td valign="top" class="name">206 <label for="storedItems">Stored Items:</label>207 </td>208 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'storedItems','errors')}">209 210 <ul>211 <g:each var="s" in="${inventoryItemInstance?.storedItems?}">212 <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>213 </g:each>214 </ul>215 <g:link controller="storedItem" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add StoredItem</g:link>216 227 217 228 </td>
Note: See TracChangeset
for help on using the changeset viewer.