Changeset 255 for trunk/grails-app/views
- Timestamp:
- Jan 4, 2010, 8:13:03 AM (15 years ago)
- Location:
- trunk/grails-app/views/assignedPersonDetailed
- Files:
-
- 1 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/assignedPersonDetailed/create.gsp
r249 r255 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create AssignedPerson</title> 7 <title>Create AssignedPerson</title> 8 8 </head> 9 9 <body> … … 42 42 </td> 43 43 <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'person','errors')}"> 44 <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${assignedPersonInstance?.person?.id}" ></g:select> 44 <g:select optionKey="id" 45 from="${Person.list().sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) }}" 46 name="person.id" 47 value="${assignedPersonInstance?.person?.id}" 48 onchange="${remoteFunction(action:'groupsForPerson', update:'groupsForPerson', params: '\'person.id=\' + this.value' )}"> 49 </g:select> 45 50 </td> 46 </tr> 51 </tr> 47 52 48 53 <tr class="prop"> … … 70 75 </div> 71 76 </g:form> 77 78 <br /> 79 80 <div id="groupsForPerson" class="dialog"> 81 <g:render template="groupsForPerson" /> 82 </div> 83 72 84 </div> 73 85 </body> -
trunk/grails-app/views/assignedPersonDetailed/edit.gsp
r249 r255 44 44 </td> 45 45 <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'person','errors')}"> 46 <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${assignedPersonInstance?.person?.id}" ></g:select> 46 <g:select optionKey="id" 47 from="${Person.list().sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) }}" 48 name="person.id" 49 value="${assignedPersonInstance?.person?.id}" 50 onchange="${remoteFunction(action:'groupsForPerson', update:'groupsForPerson', params: '\'person.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="groupsForPerson" class="dialog"> 83 <g:render template="groupsForPerson" /> 84 </div> 85 74 86 </div> 75 87 </body>
Note: See TracChangeset
for help on using the changeset viewer.