Ignore:
Timestamp:
May 19, 2010, 6:12:42 PM (13 years ago)
Author:
roberth
Message:

Updated studies list and added institute and department properties to person affiliations

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

Legend:

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

    r382 r442  
    132132                                </td>
    133133                                <td valign="top" class="value ${hasErrors(bean: personInstance, field: 'affiliations', 'errors')}">
    134                                     <g:select name="affiliations" from="${dbnp.studycapturing.PersonAffiliation.list()}" multiple="yes" optionKey="id" optionValue="name" size="5" value="${personInstance?.affiliations}" />
     134                                    <g:select name="affiliations" from="${dbnp.studycapturing.PersonAffiliation.list()}" multiple="yes" optionKey="id" size="5" value="${personInstance?.affiliations}" />
    135135                                </td>
    136136                            </tr>
  • trunk/grails-app/views/person/list.gsp

    r382 r442  
    4949                              <g:each in="${personInstance.affiliations}" var="affiliation" status="affiliationNr">
    5050                                <g:if test="${affiliationNr>0}">,</g:if>
    51                                 ${affiliation.name}
     51                                ${affiliation}
    5252                              </g:each>
    5353                            </td>
  • trunk/grails-app/views/person/show.gsp

    r382 r442  
    9797                                <ul>
    9898                                <g:each in="${personInstance.affiliations}" var="a">
    99                                     <li><g:link controller="personAffiliation" action="show" id="${a.id}">${a?.name.encodeAsHTML()}</g:link></li>
     99                                    <li><g:link controller="personAffiliation" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
    100100                                </g:each>
    101101                                </ul>
Note: See TracChangeset for help on using the changeset viewer.