Ignore:
Timestamp:
Apr 13, 2011, 11:51:47 AM (9 years ago)
Author:
robert@…
Message:

Added fields to study view and fixed strange values for parentEvent in samples overview

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/study/show_samples.gsp

    r1461 r1769  
    1212                  <th>Parent Subject</th>
    1313                  <th>Parent Sampling Event</th>
    14 
     14                  <th>Parent Event Group</th>
    1515
    1616                <g:each in="${new dbnp.studycapturing.Sample().giveDomainFields()}" var="field">
     
    8282                  </g:if>
    8383                        <td>${sample.parentSubject?.name}</td>
    84                         <td>${sample.parentEvent?.template?.name} at ${sample.parentEvent?.getStartTimeString()}</td>
     84                        <td><g:if test="${sample.parentEvent}">${sample.parentEvent?.template?.name} at ${sample.parentEvent?.getStartTimeString()}</g:if></td>
     85                        <td>${sample.parentEventGroup?.name}</td>
    8586                  <g:each in="${sample.giveDomainFields()}" var="field">
    8687                        <td><af:showTemplateField field="${field}" entity="${sample}" /></td>
Note: See TracChangeset for help on using the changeset viewer.