Ignore:
Timestamp:
Dec 30, 2009, 4:33:42 AM (14 years ago)
Author:
gav
Message:

Add ajax feature to show persons in the group when creating and editing assignedGroup.
Remove the list and show detailed views since they are no longer used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/assignedGroupDetailed/edit.gsp

    r247 r254  
    4444                                </td>
    4545                                <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>
    4752                                </td>
    4853                            </tr>
     
    7277                </div>
    7378            </g:form>
     79
     80            <br />
     81
     82            <div id="personsInGroup" class="dialog">
     83                <g:render template="personsInGroup" />
     84            </div>
     85
    7486        </div>
    7587    </body>
Note: See TracChangeset for help on using the changeset viewer.