Changeset 156
- Timestamp:
- Feb 2, 2010, 10:31:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/study/list_extended.gsp
r148 r156 11 11 <script type="text/javascript"> 12 12 $(function() { 13 $("# tabs").tabs();13 $("#accordions").accordion(); 14 14 }); 15 15 </script> … … 19 19 20 20 <% studyList = dbnp.studycapturing.Study.list() %> 21 <% def att_list = [' id','template','startDate','code','title'] %>21 <% def att_list = ['startDate','code','title'] %> 22 22 <% def selectedStudies = [] %> 23 23 <% def tmpList = [] %> … … 29 29 30 30 <div class="body"> 31 <h1> <g:message code="default.list.label" args="[entityName]" /></h1>31 <h1>Compare Studies</h1> 32 32 <g:if test="${flash.message}"> 33 33 <div class="message">${flash.message}</div> … … 46 46 <% if (selectedStudies.size()>0) {%> 47 47 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> 52 75 </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 60 93 </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 62 113 </div> 114 115 63 116 64 117 <% } %>
Note: See TracChangeset
for help on using the changeset viewer.