Changeset 719 for trunk/grails-app/views/inventoryItemDetailed
- Timestamp:
- Nov 25, 2010, 8:47:00 AM (14 years ago)
- Location:
- trunk/grails-app/views/inventoryItemDetailed
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItemDetailed/create.gsp
r718 r719 169 169 </tr> 170 170 171 <tr class="prop">172 <td valign="top" class="name">173 <label for="manufacturersPartNumber">Manufacturers Part Number:</label>174 </td>175 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturersPartNumber','errors')}">176 <input type="text" id="manufacturersPartNumber" name="manufacturersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'manufacturersPartNumber')}"/>177 </td>178 </tr>179 180 <tr class="prop">181 <td valign="top" class="name">182 <label for="preferredManufacturer">Preferred Manufacturer:</label>183 </td>184 <td valign="top">185 <g:select optionKey="id" from="${manufacturers}" name="preferredManufacturer.id" value="${inventoryItemInstance?.preferredManufacturer?.id}" noSelection="['null':'--None--']"></g:select>186 187 <p><g:link controller="manufacturerDetailed" action="create">+Add Manufacturer</g:link></p>188 </td>189 </tr>190 191 <tr class="prop">192 <td valign="top" class="name">193 <label for="manufacturers">Alternate Manufacturers:</label>194 </td>195 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateManufacturers','errors')}">196 <g:select id="alternateManufacturers" name="alternateManufacturers"197 from="${manufacturers}"198 size="5" multiple="yes" optionKey="id"199 value="${inventoryItemInstance.alternateManufacturers?.id}" noSelection="['':'--None--']" />200 </td>201 </tr>202 203 171 </tbody> 204 172 </table> -
trunk/grails-app/views/inventoryItemDetailed/edit.gsp
r718 r719 207 207 <tr class="prop"> 208 208 <td valign="top" class="name"> 209 <label for="manufacturersPartNumber">Manufacturers Part Number:</label>210 </td>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>215 216 <tr class="prop">217 <td valign="top" class="name">218 <label for="preferredManufacturer">Preferred Manufacturer:</label>219 </td>220 <td valign="top">221 <g:select optionKey="id" from="${manufacturers}" name="preferredManufacturer.id" value="${inventoryItemInstance.preferredManufacturer?.id}" noSelection="['null':'--None--']"></g:select>222 223 <p><g:link controller="manufacturerDetailed" action="create">+Add Manufacturer</g:link></p>224 </td>225 </tr>226 227 <tr class="prop">228 <td valign="top" class="name">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">241 209 <label for="spareFor">Spare For:</label> 242 210 </td> -
trunk/grails-app/views/inventoryItemDetailed/search.gsp
r718 r719 242 242 excludeProperties="estimatedUnitPriceCurrency" 243 243 associatedProperties="inventoryLocation.name, 244 spareFor.name, 245 preferredManufacturer.name, 246 preferredSupplier.name" 244 spareFor.name" 247 245 filterPropertyValues="${['inventoryLocation.name':[values: associatedPropertyValues.inventoryLocationList], 248 246 'spareFor.name':[values: associatedPropertyValues.assetList], 249 'preferredManufacturer.name':[values: associatedPropertyValues.manufacturerList],250 247 'preferredSupplier.name':[values: associatedPropertyValues.supplierList] 251 248 ]}"/> -
trunk/grails-app/views/inventoryItemDetailed/show.gsp
r718 r719 299 299 </tr> 300 300 301 <tr class="prop">302 <td valign="top" class="name">Manufacturers Part Number:</td>303 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'manufacturersPartNumber')}</td>304 </tr>305 306 <tr class="prop">307 <td valign="top" class="name">Preferred Manufacturer:</td>308 309 <td valign="top" style="text-align:left;" class="value">310 <g:link controller="manufacturerDetailed" action="show" id="${inventoryItemInstance.preferredManufacturer?.id}">311 ${inventoryItemInstance.preferredManufacturer?.encodeAsHTML()}312 </g:link>313 </td>314 </tr>315 316 <tr class="prop">317 <td valign="top" class="name">Alternate Manufacturers:</td>318 319 <td valign="top" style="text-align:left;" class="value">320 <ul>321 <g:each var="m" in="${ inventoryItemInstance.alternateManufacturers.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }">322 <li><g:link controller="manufacturerDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>323 </g:each>324 </ul>325 </td>326 </tr>327 328 329 301 </tbody> 330 302 </table>
Note: See TracChangeset
for help on using the changeset viewer.