Changeset 254 for trunk/grails-app/views/assignedGroupDetailed
- Timestamp:
- Dec 30, 2009, 4:33:42 AM (15 years ago)
- Location:
- trunk/grails-app/views/assignedGroupDetailed
- Files:
-
- 1 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assignedGroupDetailed/create.gsp
r247 r254 6 6 <meta name="layout" content="main" /> 7 7 <title>Create Assigned Group</title> 8 <g:javascript src="overlayPane.js" /> 8 9 </head> 9 10 <body> … … 42 43 </td> 43 44 <td valign="top" class="value ${hasErrors(bean:assignedGroupInstance,field:'personGroup','errors')}"> 44 <g:select optionKey="id" from="${PersonGroup.list()}" name="personGroup.id" value="${assignedGroupInstance?.personGroup?.id}" ></g:select> 45 <g:select optionKey="id" 46 from="${PersonGroup.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 47 name="personGroup.id" 48 value="${assignedGroupInstance?.personGroup?.id}" 49 onchange="${remoteFunction(action:'personsInGroup', update:'personsInGroup', params: '\'personGroup.id=\' + this.value' )}"> 50 </g:select> 45 51 </td> 46 52 </tr> … … 66 72 </table> 67 73 </div> 74 68 75 <div class="buttons"> 69 76 <span class="button"><input class="save" type="submit" value="Create" /></span> 70 77 </div> 71 78 </g:form> 79 80 <br /> 81 82 <div id="personsInGroup" class="dialog"> 83 <g:render template="personsInGroup" /> 84 </div> 85 72 86 </div> 73 87 </body> -
trunk/grails-app/views/assignedGroupDetailed/edit.gsp
r247 r254 44 44 </td> 45 45 <td valign="top" class="value ${hasErrors(bean:assignedGroupInstance,field:'personGroup','errors')}"> 46 <g:select optionKey="id" from="${PersonGroup.list()}" name="personGroup.id" value="${assignedGroupInstance?.personGroup?.id}" ></g:select> 46 <g:select optionKey="id" 47 from="${PersonGroup.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 48 name="personGroup.id" 49 value="${assignedGroupInstance?.personGroup?.id}" 50 onchange="${remoteFunction(action:'personsInGroup', update:'personsInGroup', params: '\'personGroup.id=\' + this.value' )}"> 51 </g:select> 47 52 </td> 48 53 </tr> … … 72 77 </div> 73 78 </g:form> 79 80 <br /> 81 82 <div id="personsInGroup" class="dialog"> 83 <g:render template="personsInGroup" /> 84 </div> 85 74 86 </div> 75 87 </body>
Note: See TracChangeset
for help on using the changeset viewer.