Changeset 156


Ignore:
Timestamp:
Feb 2, 2010, 10:31:18 AM (13 years ago)
Author:
ademcan
Message:

comparaison of studies overview

File:
1 edited

Legend:

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

    r148 r156  
    1111  <script type="text/javascript">
    1212    $(function() {
    13             $("#tabs").tabs();
     13            $("#accordions").accordion();
    1414    });
    1515  </script>
     
    1919
    2020  <% studyList = dbnp.studycapturing.Study.list() %>
    21   <% def att_list = ['id','template','startDate','code','title'] %>
     21  <% def att_list = ['startDate','code','title'] %>
    2222  <% def selectedStudies = [] %>
    2323  <% def tmpList = [] %>
     
    2929
    3030  <div class="body">
    31     <h1><g:message code="default.list.label" args="[entityName]" /></h1>
     31    <h1>Compare Studies</h1>
    3232    <g:if test="${flash.message}">
    3333      <div class="message">${flash.message}</div>
     
    4646    <% if (selectedStudies.size()>0) {%>
    4747
    48     <div id="tabs">
    49       <ul>
    50       <g:each in="${selectedStudies}" status="i" var="studyInstance">
    51         <li><a href="#${studyInstance}"> ${studyInstance} </a></li>
     48    <div id="accordions">
     49
     50    <a href="#"> Study Information </a>
     51    <div>
     52      <br>
     53      <table>
     54      <tr>
     55        <td></td>
     56        <g:each in="${selectedStudies}" status="j" var="studyIns">
     57        <td><b>${studyIns.title}</b></td>
     58        </g:each>
     59      </tr>
     60      <tr>
     61        <td><b>Id</b></td>
     62        <g:each in="${selectedStudies}" status="k" var="studyIns">
     63          <td><g:link action="show" id="${studyIns.id}">
     64${fieldValue(bean: studyIns, field: "id")}</g:link></td>
     65        </g:each>
     66      </tr>
     67
     68      <g:each in="${att_list}" var="att">
     69      <tr>
     70        <td><b>${att}</b></td>
     71        <g:each in="${selectedStudies}" status="k" var="studyIns">
     72<td>${fieldValue(bean: studyIns, field: att)}</td>
     73        </g:each>
     74      </tr>
    5275      </g:each>
    53       </ul>
    54       <g:each in="${selectedStudies}" status="i" var="studyIns">
    55       <div id="${studyIns}">
    56         <g:each in="${att_list}" status="s" var="attribute">
    57               ${message(code: 'study.id.'+attribute , default: attribute)} :
    58               ${fieldValue(bean: studyIns, field: attribute)}<br>
    59         </g:each>
     76
     77      </table>
     78    </div>
     79
     80     <a href="#"> Subjects </a><div>
     81       
     82       <table border="2">
     83         <tr>
     84           <td></td>
     85           <g:each in="${dbnp.studycapturing.Study.list()}" var="stud">
     86             <td>
     87         ${stud}
     88             </td>
     89           </g:each>
     90         </tr>
     91       </table>
     92       
    6093      </div>
    61         </g:each>
     94
     95 <a href="#"> Groups </a> <div>
     96   <g:each in="${selectedStudies}" var="stud">
     97   ${stud}
     98   </g:each>
     99        </div>
     100
     101       <a href="#"> Protocols </a><div>
     102         <g:each in="${selectedStudies}" var="stud">
     103   ${stud}
     104   </g:each>
     105       </div>
     106
     107      <a href="#"> Events </a><div>
     108      </div>
     109
     110      <a href="#"> Assays </a><div>
     111      </div>
     112
    62113    </div>
     114
     115   
    63116
    64117    <% } %>
Note: See TracChangeset for help on using the changeset viewer.