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

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

"compare selected studies" option, with some examples studies, accordion view TODO

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 url="[action:'list_extended',controller:'study']"-->
13  <g:form action="list_extended.gsp">
14
15  <div class="nav">
16    <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
17    <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
18  </div>
19  <div class="body">
20    <h1><g:message code="default.list.label" args="[entityName]" /></h1>
21    <g:if test="${flash.message}">
22      <div class="message">${flash.message}</div>
23    </g:if>
24    <div class="list">
25
26      <g:each in="${studyInstanceList}" status="i" var="studyInstance">
27        <br>
28        <table>
29          <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
30            <td>
31              <input type="checkbox" name="${studyInstance.title}" id="${studyInstance.title}"></td>
32
33            <td width=200>
34          <g:link action="show" id="${studyInstance.id}">
35${message(code: 'study.id.label', default: 'Id')} :
36${fieldValue(bean: studyInstance, field: "id")}</g:link></td>
37
38          <td width=300>
39${message(code: 'study.template.label', default: 'Template')} :
40${fieldValue(bean: studyInstance, field: "template")}</td>
41
42          <td width=500>
43${message(code: 'study.startDate.label', default: 'Start Date')} :
44          <g:formatDate date="${studyInstance.startDate}" /></td>
45
46          <td width=500>
47${message(code: 'study.lastUpdated.label', default: 'Last Updated')} :
48          <g:formatDate date="${studyInstance.lastUpdated}" /></td>
49
50          <td width=300>
51${message(code: 'study.code.label', default: 'Code')} :
52${fieldValue(bean: studyInstance, field: "code")}</td>
53
54          <td width=300>
55${message(code: 'study.ecCode.label', default: 'Ec Code')} :
56${fieldValue(bean: studyInstance, field: "ecCode")}</td>
57
58          </tr>
59        </table>
60      </g:each>
61      </table>
62    </div>
63    <div class="paginateButtons">
64      <g:paginate total="${studyInstanceTotal}" />
65      <br>
66      <INPUT TYPE=submit name=submit Value="Compare selected studies">
67    </div>
68  </div>
69</g:form>
70</body>
71</html>
Note: See TracBrowser for help on using the repository browser.