Ignore:
Timestamp:
Feb 4, 2010, 2:34:56 PM (11 years ago)
Author:
ademcan
Message:

new view for studies comparison and study details

File:
1 edited

Legend:

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

    r165 r171  
    2121      <div class="message">${flash.message}</div>
    2222    </g:if>
    23     <div class="list">
    2423
    25       <g:each in="${studyInstanceList}" status="i" var="studyInstance">
     24      <g:each in="${studyInstanceList}" var="studyInstance">
    2625        <br>
    2726        <table>
    28           <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
     27          <tr>
     28            <td></td>
     29            <td colspan="3">
     30              <center><b>${studyInstance.title}</b></center>
     31            </td>
     32          </tr>
     33          <tr>
    2934            <td>
     35
    3036              <input type="checkbox" name="${studyInstance.title}" id="${studyInstance.title}"></td>
    3137
    32             <td width=200>
     38            <td>
    3339          <g:link action="show" id="${studyInstance.id}">
    3440${message(code: 'study.id.label', default: 'Id')} :
    3541${fieldValue(bean: studyInstance, field: "id")}</g:link></td>
    3642
    37           <td width=300>
    38 ${message(code: 'study.template.label', default: 'Template')} :
     43          <td >
     44<b>${message(code: 'study.template.label', default: 'Template')} </b>:
    3945${fieldValue(bean: studyInstance, field: "template")}</td>
    4046
    41           <td width=500>
    42 ${message(code: 'study.startDate.label', default: 'Start Date')} :
    43           <g:formatDate date="${studyInstance.startDate}" /></td>
     47<td >
     48<b>${message(code: 'study.subjects.label', default: 'Subjects')} </b>:
     49${studyInstance.subjects.size()} subjects</td>
    4450
    45           <td width=500>
    46 ${message(code: 'study.lastUpdated.label', default: 'Last Updated')} :
    47           <g:formatDate date="${studyInstance.lastUpdated}" /></td>
     51        </tr>
     52        <tr>
     53          <td></td>
     54          <td >
     55<b>${message(code: 'study.owner.label', default: 'Owner')} </b>:
     56${fieldValue(bean: studyInstance, field: "owner")}</td>
    4857
    49           <td width=300>
    50 ${message(code: 'study.code.label', default: 'Code')} :
    51 ${fieldValue(bean: studyInstance, field: "code")}</td>
    52 
    53           <td width=300>
    54 ${message(code: 'study.ecCode.label', default: 'Ec Code')} :
    55 ${fieldValue(bean: studyInstance, field: "ecCode")}</td>
    56 
    57           </tr>
     58          <td >
     59            <b>Assays </b>: </td>
     60        </tr>
     61        <tr>
     62          <td></td>
     63          <td colspan="3">
     64            <b>${message(code: 'study.description.label', default: 'Description')} </b>:
     65${fieldValue(bean: studyInstance, field: "description")}</td>
     66        </tr>
    5867        </table>
    5968      </g:each>
    60       </table>
    61     </div>
     69   
    6270    <div class="paginateButtons">
    6371      <g:paginate total="${studyInstanceTotal}" />
Note: See TracChangeset for help on using the changeset viewer.