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 | <g:sortableColumn property="id" title="TEST" /> |
---|
27 | |
---|
28 | <th><g:message code="study.template.label" default="Template" /></th> |
---|
29 | |
---|
30 | <g:sortableColumn property="startDate" title="${message(code: 'study.startDate.label', default: 'Start Date')}" /> |
---|
31 | <g:sortableColumn property="startDate" title="TEST" /> |
---|
32 | |
---|
33 | <g:sortableColumn property="lastUpdated" title="${message(code: 'study.lastUpdated.label', default: 'Last Updated')}" /> |
---|
34 | <g:sortableColumn property="lastUpdated" title="TEST" /> |
---|
35 | |
---|
36 | <g:sortableColumn property="code" title="${message(code: 'study.code.label', default: 'Code')}" /> |
---|
37 | <g:sortableColumn property="code" title="TEST" /> |
---|
38 | |
---|
39 | <g:sortableColumn property="ecCode" title="${message(code: 'study.ecCode.label', default: 'Ec Code')}" /> |
---|
40 | <g:sortableColumn property="ecCode" title="TEST" /> |
---|
41 | |
---|
42 | </tr> |
---|
43 | </thead> |
---|
44 | <tbody--> |
---|
45 | |
---|
46 | |
---|
47 | <g:each in="${studyInstanceList}" status="i" var="studyInstance"> |
---|
48 | <br> |
---|
49 | <table> |
---|
50 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
51 | <td><input type="checkbox"></td> |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | <td width=200> |
---|
56 | <g:link action="show" id="${studyInstance.id}">${message(code: 'study.id.label', default: 'Id')} : ${fieldValue(bean: studyInstance, field: "id")}</g:link></td> |
---|
57 | |
---|
58 | |
---|
59 | <td width=300> |
---|
60 | ${message(code: 'study.template.label', default: 'Template')} : |
---|
61 | ${fieldValue(bean: studyInstance, field: "template")}</td> |
---|
62 | |
---|
63 | |
---|
64 | <td width=500> |
---|
65 | ${message(code: 'study.startDate.label', default: 'Start Date')} : |
---|
66 | <g:formatDate date="${studyInstance.startDate}" /></td> |
---|
67 | |
---|
68 | |
---|
69 | <td width=500> |
---|
70 | ${message(code: 'study.lastUpdated.label', default: 'Last Updated')} : |
---|
71 | <g:formatDate date="${studyInstance.lastUpdated}" /></td> |
---|
72 | |
---|
73 | |
---|
74 | <td width=300> |
---|
75 | ${message(code: 'study.code.label', default: 'Code')} : |
---|
76 | ${fieldValue(bean: studyInstance, field: "code")}</td> |
---|
77 | |
---|
78 | |
---|
79 | <td width=300> |
---|
80 | ${message(code: 'study.ecCode.label', default: 'Ec Code')} : |
---|
81 | ${fieldValue(bean: studyInstance, field: "ecCode")}</td> |
---|
82 | |
---|
83 | </tr> |
---|
84 | </table> |
---|
85 | |
---|
86 | <!--/tr--> |
---|
87 | |
---|
88 | </g:each> |
---|
89 | |
---|
90 | |
---|
91 | <!--/tbody--> |
---|
92 | </table> |
---|
93 | </div> |
---|
94 | <div class="paginateButtons"> |
---|
95 | <g:paginate total="${studyInstanceTotal}" /> |
---|
96 | </div> |
---|
97 | </div> |
---|
98 | </body> |
---|
99 | </html> |
---|