Changeset 294 for trunk/grails-app/views
- Timestamp:
- Jan 24, 2010, 10:21:39 PM (15 years ago)
- Location:
- trunk/grails-app/views/person
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/person/create.gsp
r168 r294 111 111 </td> 112 112 <td valign="top" class="value ${hasErrors(bean:person,field:'personGroups','errors')}"> 113 <g:select id="personGroups" name="personGroups"114 from="${PersonGroup.list()}"115 optionKey="id" size="5" multiple="yes"116 value="${person?.personGroups?.id}" noSelection="['':'--None--']"/>117 113 <g:helpBalloon class="helpballoon" code="person.personGroups" /> 114 <custom:checkBoxList name="personGroups" 115 from="${PersonGroup.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 116 value="${person?.personGroups?.collect{it.id}}" 117 optionKey="id"/> 118 118 </td> 119 119 </tr> -
trunk/grails-app/views/person/edit.gsp
r239 r294 118 118 </td> 119 119 <td valign="top" class="value ${hasErrors(bean:person,field:'personGroups','errors')}"> 120 <g:select id="personGroups" name="personGroups"121 from="${PersonGroup.list()}"122 optionKey="id" size="10" multiple="yes"123 value="${person?.personGroups.id}" noSelection="['':'--None--']"/>124 120 <g:helpBalloon class="helpballoon" code="person.personGroups" /> 121 <custom:checkBoxList name="personGroups" 122 from="${PersonGroup.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 123 value="${person?.personGroups?.collect{it.id}}" 124 optionKey="id"/> 125 125 </td> 126 126 </tr>
Note: See TracChangeset
for help on using the changeset viewer.