Changeset 425 for trunk/grails-app/views
- Timestamp:
- Mar 3, 2010, 3:50:21 PM (15 years ago)
- Location:
- trunk/grails-app/views/inventoryItemDetailed
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItemDetailed/edit.gsp
r422 r425 238 238 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateItems','errors')}"> 239 239 <g:select name="alternateItems" 240 from="${ InventoryItem.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}"240 from="${possibleAlternateItems}" 241 241 size="5" multiple="yes" optionKey="id" 242 242 value="${inventoryItemInstance?.alternateItems.id}" noSelection="['':'--None--']"/> -
trunk/grails-app/views/inventoryItemDetailed/show.gsp
r422 r425 149 149 <td valign="top" style="text-align:left;" class="value"> 150 150 <ul> 151 <g:each var="a" in="${ inventoryItemInstance.alternateItems}">151 <g:each var="a" in="${ inventoryItemInstance.alternateItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 152 152 <li><g:link controller="inventoryItemDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 153 153 </g:each>
Note: See TracChangeset
for help on using the changeset viewer.