Ignore:
Timestamp:
Oct 26, 2009, 3:11:18 PM (14 years ago)
Author:
gav
Message:

Add test and message for no granted authority to LoginController.
Correct belongsTo in Person-PersonGroup? relationship.
Re-generate PersonGroup? controller and views.
Add more help balloon messages for Person and Task.
Default ROLE_AppUser to ON when creating a person.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/person/create.gsp

    r164 r166  
    3232                        <td valign="top" class="value ${hasErrors(bean:person,field:'loginName','errors')}">
    3333                            <input type="text" id="loginName" name="loginName" value="${person.loginName?.encodeAsHTML()}"/>
     34                            <g:helpBalloon class="helpballoon" code="person.loginName" />
    3435                        </td>
    3536                    </tr>
     
    3940                        <td valign="top" class="value ${hasErrors(bean:person,field:'firstName','errors')}">
    4041                            <input type="text" id="firstName" name="firstName" value="${person.firstName?.encodeAsHTML()}"/>
     42                            <g:helpBalloon class="helpballoon" code="person.firstName" />
    4143                        </td>
    4244                    </tr>
     
    4648                        <td valign="top" class="value ${hasErrors(bean:person,field:'lastName','errors')}">
    4749                            <input type="text" id="lastName" name="lastName" value="${person.lastName?.encodeAsHTML()}"/>
     50                            <g:helpBalloon class="helpballoon" code="person.lastName" />
    4851                        </td>
    4952                    </tr>
     
    5457                        <td valign="top" class="value ${hasErrors(bean:person,field:'pass','errors')}">
    5558                            <input type="password" id="pass" name="pass"/>
     59                            <g:helpBalloon class="helpballoon" code="person.password" />
    5660                        </td>
    5761                    </tr>
    5862
    5963                    <tr class="prop">
    60                         <td valign="top" class="name"><label for="isActive">isActive:</label></td>
     64                        <td valign="top" class="name"><label for="isActive">Active:</label></td>
    6165                        <td valign="top" class="value ${hasErrors(bean:person,field:'isActive','errors')}">
    6266                            <g:checkBox name="isActive" value="${person.isActive}" ></g:checkBox>
     67                            <g:helpBalloon class="helpballoon" code="person.isActive" />
    6368                        </td>
    6469                    </tr>
     
    106111                        </td>
    107112                        <td valign="top" class="value ${hasErrors(bean:person,field:'personGroups','errors')}">
    108                             <g:select name="personGroups"
     113                            <g:select id="personGroups" name="personGroups"
    109114                                            from="${PersonGroup.list()}"
    110                                             size="5" multiple="yes" optionKey="id"
    111                                             value="${person?.personGroups}" />
    112 
     115                                            optionKey="id" size="5" multiple="yes"
     116                                            value="${person?.personGroups?.id}" noSelection="['':'--None--']"/>
     117                            <g:helpBalloon class="helpballoon" code="person.personGroups" />
    113118                        </td>
    114119                    </tr>
    115120
    116121                    <tr class="prop">
    117                         <td valign="top" class="name" align="left">Authorities:</td>
     122                        <td valign="top" class="name" align="left">
     123                            Authorities:
     124                        </td>
     125                        <td valign="top" class="name" align="left">
     126                            <g:helpBalloon class="helpballoon" code="person.authorities" />
     127                        </td>
    118128                    </tr>
    119129
     
    121131                    <tr>
    122132                        <td valign="top" class="name" align="left">${it.authority.encodeAsHTML()}</td>
    123                         <td align="left"><g:checkBox name="${it.authority}"/></td>
     133                        <td align="left">
     134                            <g:checkBox name="${it.authority}" value="${it.authority == 'ROLE_AppUser'}"/>
     135                        </td>
    124136                    </tr>
    125137                    </g:each>
Note: See TracChangeset for help on using the changeset viewer.