Ignore:
Timestamp:
Jan 25, 2010, 10:57:30 AM (14 years ago)
Author:
gav
Message:

Authority add/remove logic in r294 not behaving as expected, fixed.
Switch views back to using Authority desctiptions.

Location:
trunk/grails-app/views/person
Files:
3 edited

Legend:

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

    r294 r295  
    130130                    <g:each in="${authorityList}">
    131131                    <tr>
    132                         <td valign="top" class="name" align="left">${it.authority.encodeAsHTML()}</td>
     132                        <td valign="top" class="name" align="left">${it.description.encodeAsHTML()}</td>
    133133                        <td align="left">
    134134                            <g:checkBox name="${it.authority}" value="${it.authority == 'ROLE_AppUser'}"/>
  • trunk/grails-app/views/person/edit.gsp

    r294 r295  
    137137                    <g:each var="entry" in="${roleMap}">
    138138                    <tr>
    139                         <td valign="top" class="name" align="left">${entry.key.authority.encodeAsHTML()}</td>
     139                        <td valign="top" class="name" align="left">${entry.key.description.encodeAsHTML()}</td>
    140140                        <td align="left"><g:checkBox name="${entry.key.authority}" value="${entry.value}"/></td>
    141141                    </tr>
  • trunk/grails-app/views/person/show.gsp

    r166 r295  
    8484                    <td valign="top" class="value">
    8585                        <ul>
    86                         <g:each in="${roleNames}" var='name'>
    87                             <li>${name}</li>
     86                        <g:each  var='a' in="${authorityList}">
     87                            <li>${a.description.encodeAsHTML()}</li>
    8888                        </g:each>
    8989                        </ul>
Note: See TracChangeset for help on using the changeset viewer.