Ignore:
Timestamp:
Jan 27, 2010, 4:12:20 PM (7 years ago)
Author:
ademcan
Message:

show in tab views : new organization

File:
1 edited

Legend:

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

    r137 r141  
    3030
    3131    <div id="accordion">
    32       <a href="#"> Id </a> <div> ${fieldValue(bean: studyInstance, field: "id")} </div>
    33       <a href="#"> Template </a> <div> <g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link> </div>
    34       <a href="#"> Start Date </a> <div> <g:formatDate date="${studyInstance?.startDate}" /> </div>
    35       <a href="#"> Sampling Events </a> <div> <ul>
     32      <a href="#"> Study Information </a>
     33       
     34       <div> Id : ${fieldValue(bean: studyInstance, field: "id")} <br>
     35       Template :<g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link><br>
     36       Start :<g:formatDate date="${studyInstance?.startDate}" /> <br>
     37      Sampling Events :
    3638          <g:each in="${studyInstance.samplingEvents}" var="s">
    3739            <li><g:link controller="samplingEvent" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    3840          </g:each>
    39         </ul> </div>
     41        </ul><br>
     42       Last Updated :<g:formatDate date="${studyInstance?.lastUpdated}" /><br>
     43             Readers :<ul>
     44          <g:each in="${studyInstance.readers}" var="r">
     45            <li><g:link controller="user" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>
     46          </g:each>
     47        </ul> <br>
     48      Code : ${fieldValue(bean: studyInstance, field: "code")} <br>
     49      Editors : <ul>
     50          <g:each in="${studyInstance.editors}" var="e">
     51            <li><g:link controller="user" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
     52          </g:each>
     53        </ul> <br>
     54     EC Code : ${fieldValue(bean: studyInstance, field: "ecCode")} <br>
     55     Research Question : ${fieldValue(bean: studyInstance, field: "researchQuestion")} <br>
     56     Title : ${fieldValue(bean: studyInstance, field: "title")} <br>
     57     Description : ${fieldValue(bean: studyInstance, field: "description")} <br>
     58     Owner :<g:link controller="user" action="show" id="${studyInstance?.owner?.id}">${studyInstance?.owner?.encodeAsHTML()}</g:link> <br>
     59      Date Created :<g:formatDate date="${studyInstance?.dateCreated}" /> <br>
     60       </div>
     61
    4062      <a href="#"> Subjects </a><div> <ul>
    4163          <g:each in="${studyInstance.subjects}" var="s">
     
    4365          </g:each>
    4466        </ul> </div>
    45       <a href="#"> Events </a><div> <ul>
    46           <g:each in="${studyInstance.events}" var="e">
    47             <li><g:link controller="event" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
    48           </g:each>
    49         </ul>
    50       </div>
    51       <a href="#"> Last Updated </a><div> <g:formatDate date="${studyInstance?.lastUpdated}" /> </div>
    52       <a href="#"> Readers </a> <div>  <ul>
    53           <g:each in="${studyInstance.readers}" var="r">
    54             <li><g:link controller="user" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>
    55           </g:each>
    56         </ul> </div>
    5767
    58       <a href="#"> Code </a><div> ${fieldValue(bean: studyInstance, field: "code")} </div>
    59       <a href="#"> Editors </a> <div> <ul>
    60           <g:each in="${studyInstance.editors}" var="e">
    61             <li><g:link controller="user" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
    62           </g:each>
    63         </ul> </div>
    64      <a href="#"> EC Code </a> <div>${fieldValue(bean: studyInstance, field: "ecCode")} </div>
    65      <a href="#"> Research Question </a> <div>${fieldValue(bean: studyInstance, field: "researchQuestion")} </div>
    66      <a href="#"> Title </a><div> ${fieldValue(bean: studyInstance, field: "title")} </div>
    67       <a href="#"> Description </a> <div> ${fieldValue(bean: studyInstance, field: "description")} </div>
    68       <a href="#"> Owner </a><div> <g:link controller="user" action="show" id="${studyInstance?.owner?.id}">${studyInstance?.owner?.encodeAsHTML()}</g:link> </div>
    69       <a href="#"> Date Created </a><div> <g:formatDate date="${studyInstance?.dateCreated}" /> </div>
    70       <a href="#"> Groups </a> <div><ul>
     68       <a href="#"> Groups </a> <div><ul>
    7169          <g:each in="${studyInstance.groups}" var="g">
    7270            <li><g:link controller="subjectGroup" action="show" id="${g.id}">${g?.encodeAsHTML()}</g:link></li>
    7371          </g:each>
    7472        </ul> </div>
     73
     74       <a href="#"> Protocols </a><div> <ul>
     75          <g:each in="${studyInstance.events.eventDescription.protocol}" var="s">
     76            <li><g:link controller="protocol" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     77          </g:each>
     78        </ul> </div>
     79
     80      <a href="#"> Events </a><div> <ul>
     81          <g:each in="${studyInstance.events}" var="e">
     82            <li><g:link controller="event" action="show" id="${e.id}">  ${e?.encodeAsHTML()}</g:link></li>
     83          </g:each>
     84        </ul>
     85      </div>
     86
     87      <a href="#"> Assays </a><div>
     88      </div>
     89
    7590  </div>
    7691    </div>
Note: See TracChangeset for help on using the changeset viewer.