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 | <div class="nav"> |
---|
12 | <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span> |
---|
13 | <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span> |
---|
14 | </div> |
---|
15 | <div class="body"> |
---|
16 | <h1><g:message code="default.list.label" args="[entityName]" /></h1> |
---|
17 | <g:if test="${flash.message}"> |
---|
18 | <div class="message">${flash.message}</div> |
---|
19 | </g:if> |
---|
20 | <div class="list"> |
---|
21 | <table> |
---|
22 | <thead> |
---|
23 | <tr> |
---|
24 | |
---|
25 | <g:sortableColumn property="id" title="${message(code: 'study.id.label', default: 'Id')}" /> |
---|
26 | |
---|
27 | <th><g:message code="study.template.label" default="Template" /></th> |
---|
28 | |
---|
29 | <g:sortableColumn property="startDate" title="${message(code: 'study.startDate.label', default: 'Start Date')}" /> |
---|
30 | |
---|
31 | <g:sortableColumn property="lastUpdated" title="${message(code: 'study.lastUpdated.label', default: 'Last Updated')}" /> |
---|
32 | |
---|
33 | <g:sortableColumn property="code" title="${message(code: 'study.code.label', default: 'Code')}" /> |
---|
34 | |
---|
35 | <g:sortableColumn property="ecCode" title="${message(code: 'study.ecCode.label', default: 'Ec Code')}" /> |
---|
36 | |
---|
37 | </tr> |
---|
38 | </thead> |
---|
39 | <tbody> |
---|
40 | <g:each in="${studyInstanceList}" status="i" var="studyInstance"> |
---|
41 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
42 | |
---|
43 | <td><g:link action="show" id="${studyInstance.id}">${fieldValue(bean: studyInstance, field: "id")}</g:link> |
---|
44 | </td> |
---|
45 | |
---|
46 | <td>${fieldValue(bean: studyInstance, field: "template")}</td> |
---|
47 | |
---|
48 | <td><g:formatDate date="${studyInstance.startDate}" /></td> |
---|
49 | |
---|
50 | <td><g:formatDate date="${studyInstance.lastUpdated}" /></td> |
---|
51 | |
---|
52 | <td>${fieldValue(bean: studyInstance, field: "code")}</td> |
---|
53 | |
---|
54 | <td>${fieldValue(bean: studyInstance, field: "ecCode")}</td> |
---|
55 | |
---|
56 | </tr> |
---|
57 | </g:each> |
---|
58 | </tbody> |
---|
59 | </table> |
---|
60 | </div> |
---|
61 | <div class="paginateButtons"> |
---|
62 | <g:paginate total="${studyInstanceTotal}" /> |
---|
63 | </div> |
---|
64 | </div> |
---|
65 | </body> |
---|
66 | </html> |
---|