source: trunk/grails-app/views/study/list.gsp @ 171

Last change on this file since 171 was 171, checked in by ademcan, 10 years ago

new view for studies comparison and study details

File size: 2.4 KB
Line 
1
2<%@ page import="dbnp.studycapturing.Study" %>
3<html>
4<head>
5    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6    <meta name="layout" content="main" />
7  <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}" />
8  <title><g:message code="default.list.label" args="[entityName]" /></title>
9</head>
10<body>
11
12  <g:form action="list_extended">
13
14  <div class="nav">
15    <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
16    <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
17  </div>
18  <div class="body">
19    <h1><g:message code="default.list.label" args="[entityName]" /></h1>
20    <g:if test="${flash.message}">
21      <div class="message">${flash.message}</div>
22    </g:if>
23
24      <g:each in="${studyInstanceList}" var="studyInstance">
25        <br>
26        <table>
27          <tr>
28            <td></td>
29            <td colspan="3">
30              <center><b>${studyInstance.title}</b></center>
31            </td>
32          </tr>
33          <tr>
34            <td>
35
36              <input type="checkbox" name="${studyInstance.title}" id="${studyInstance.title}"></td>
37
38            <td>
39          <g:link action="show" id="${studyInstance.id}">
40${message(code: 'study.id.label', default: 'Id')} :
41${fieldValue(bean: studyInstance, field: "id")}</g:link></td>
42
43          <td >
44<b>${message(code: 'study.template.label', default: 'Template')} </b>:
45${fieldValue(bean: studyInstance, field: "template")}</td>
46
47<td >
48<b>${message(code: 'study.subjects.label', default: 'Subjects')} </b>:
49${studyInstance.subjects.size()} subjects</td>
50
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>
57
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>
67        </table>
68      </g:each>
69   
70    <div class="paginateButtons">
71      <g:paginate total="${studyInstanceTotal}" />
72      <br>
73      <INPUT TYPE=submit name=submit Value="Compare selected studies">
74    </div>
75  </div>
76</g:form>
77</body>
78</html>
Note: See TracBrowser for help on using the repository browser.