Changeset 382 for trunk/grails-app/views/inventoryItemDetailed/create.gsp
- Timestamp:
- Feb 18, 2010, 3:50:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItemDetailed/create.gsp
r223 r382 49 49 </td> 50 50 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 51 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 51 <g:select optionKey="id" 52 from="${ InventoryLocation.list().sort { p1, p2 -> p1.toString().compareToIgnoreCase(p2.toString()) } }" 53 name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" > 54 </g:select> 55 56 <p><g:link controller="inventoryLocationDetailed" action="create">add Location</g:link></p> 52 57 </td> 53 58 </tr> … … 61 66 type="text" id="reorderPoint" name="reorderPoint" 62 67 value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> 63 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 68 <g:select optionKey="id" 69 from="${UnitOfMeasure.list()}" 70 name="unitOfMeasure.id" 71 value="${inventoryItemInstance?.unitOfMeasure?.id}" > 72 </g:select> 64 73 </td> 65 74 </tr> … … 80 89 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> 81 90 <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select> 91 92 <p><g:link controller="inventoryGroupDetailed" action="create">add Group</g:link></p> 82 93 </td> 83 94 </tr> … … 119 130 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> 120 131 <g:select id="suppliers" name="suppliers" 121 from="${ Supplier.list()}"132 from="${ Supplier.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }" 122 133 size="5" multiple="yes" optionKey="id" 123 134 value="${inventoryItemInstance?.suppliers?.id}" noSelection="['':'--None--']"/> 124 135 136 <p><g:link controller="supplierDetailed" action="create">add Supplier</g:link></p> 125 137 </td> 126 138 </tr> … … 141 153 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> 142 154 <g:select id="manufacturers" name="manufacturers" 143 from="${ Manufacturer.list()}"155 from="${ Manufacturer.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }" 144 156 size="5" multiple="yes" optionKey="id" 145 157 value="${inventoryItemInstance?.manufacturers?.id}" noSelection="['':'--None--']" /> 146 158 159 <p><g:link controller="manufacturerDetailed" action="create">add Manufacturer</g:link></p> 147 160 </td> 148 161 </tr>
Note: See TracChangeset
for help on using the changeset viewer.