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.show.label" args="[entityName]" /></title> |
---|
9 | <script type="text/javascript"> |
---|
10 | $(function() { |
---|
11 | $("#accordion").accordion(); |
---|
12 | }); |
---|
13 | </script> |
---|
14 | |
---|
15 | </head> |
---|
16 | <body> |
---|
17 | |
---|
18 | <div class="nav"> |
---|
19 | <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span> |
---|
20 | <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span> |
---|
21 | <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span> |
---|
22 | </div> |
---|
23 | |
---|
24 | <div class="body"> |
---|
25 | <h1><g:message code="default.show.label" args="[entityName]" /></h1> |
---|
26 | <g:if test="${flash.message}"> |
---|
27 | <div class="message">${flash.message}</div> |
---|
28 | </g:if> |
---|
29 | <div class="dialog"> |
---|
30 | |
---|
31 | <% protocolList = dbnp.studycapturing.Protocol.list() %> |
---|
32 | |
---|
33 | <div id="accordion"> |
---|
34 | <a href="#"> Study Information </a> |
---|
35 | |
---|
36 | <div> Id : ${fieldValue(bean: studyInstance, field: "id")} <br> |
---|
37 | Template :<g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link><br> |
---|
38 | Start :<g:formatDate date="${studyInstance?.startDate}" /> <br> |
---|
39 | Sampling Events : |
---|
40 | <g:each in="${studyInstance.samplingEvents}" var="s"> |
---|
41 | <li><g:link controller="samplingEvent" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
42 | </g:each> |
---|
43 | </ul><br> |
---|
44 | Last Updated :<g:formatDate date="${studyInstance?.lastUpdated}" /><br> |
---|
45 | Readers :<ul> |
---|
46 | <g:each in="${studyInstance.readers}" var="r"> |
---|
47 | <li><g:link controller="user" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li> |
---|
48 | </g:each> |
---|
49 | </ul> <br> |
---|
50 | Code : ${fieldValue(bean: studyInstance, field: "code")} <br> |
---|
51 | Editors : <ul> |
---|
52 | <g:each in="${studyInstance.editors}" var="e"> |
---|
53 | <li><g:link controller="user" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li> |
---|
54 | </g:each> |
---|
55 | </ul> <br> |
---|
56 | EC Code : ${fieldValue(bean: studyInstance, field: "ecCode")} <br> |
---|
57 | Research Question : ${fieldValue(bean: studyInstance, field: "researchQuestion")} <br> |
---|
58 | Title : ${fieldValue(bean: studyInstance, field: "title")} <br> |
---|
59 | Description : ${fieldValue(bean: studyInstance, field: "description")} <br> |
---|
60 | Owner :<g:link controller="user" action="show" id="${studyInstance?.owner?.id}">${studyInstance?.owner?.encodeAsHTML()}</g:link> <br> |
---|
61 | Date Created :<g:formatDate date="${studyInstance?.dateCreated}" /> <br> |
---|
62 | </div> |
---|
63 | |
---|
64 | <a href="#"> Subjects </a><div> |
---|
65 | <table> |
---|
66 | <tr> |
---|
67 | <td><b>Id </b></td> |
---|
68 | <td><b>Species</b></td> |
---|
69 | <td><b>Name</b></td> |
---|
70 | <g:each in="${studyInstance.template.subjectFields}" var="g"> |
---|
71 | <td><b> |
---|
72 | <g:link controller="templateSubjectField" action="show" id="${g.id}"> |
---|
73 | ${g}</b></td> |
---|
74 | </g:link> |
---|
75 | </g:each> |
---|
76 | </tr> |
---|
77 | |
---|
78 | <g:each in="${studyInstance.subjects}" var="s"> |
---|
79 | <tr> |
---|
80 | <td><g:link controller="subject" action="show" id="${s.id}">${s.id}</g:link></td> |
---|
81 | <td>${s.species}</td> |
---|
82 | <td>${s.name}</td> |
---|
83 | |
---|
84 | <g:each in="${studyInstance.template.subjectFields}" var="g"> |
---|
85 | <td> |
---|
86 | <% if (g.type==dbnp.studycapturing.TemplateFieldType.INTEGER){ %> |
---|
87 | <% print s.templateIntegerFields.get(g.toString()) %> |
---|
88 | <% } %> |
---|
89 | <% if (g.type==dbnp.studycapturing.TemplateFieldType.STRINGLIST){ %> |
---|
90 | <% print s.templateStringFields.get(g.toString()) %> |
---|
91 | <% } %> |
---|
92 | |
---|
93 | </td> |
---|
94 | </g:each> |
---|
95 | </tr> |
---|
96 | </g:each> |
---|
97 | </table> |
---|
98 | </div> |
---|
99 | |
---|
100 | <a href="#"> Groups </a> <div><ul> |
---|
101 | <g:each in="${studyInstance.groups}" var="g"> |
---|
102 | <li><g:link controller="subjectGroup" action="show" id="${g.id}">${g?.encodeAsHTML()}</g:link></li> |
---|
103 | </g:each> |
---|
104 | </ul> </div> |
---|
105 | |
---|
106 | <a href="#"> Protocols </a><div> |
---|
107 | <table> |
---|
108 | <tr> |
---|
109 | <td><b>Id </b></td> |
---|
110 | <td><b>Name</b></td> |
---|
111 | <td><b>Parameters</b></td> |
---|
112 | <td><b>Reference</b></td> |
---|
113 | </tr> |
---|
114 | <g:each in="${protocolList}" var="s"> |
---|
115 | <tr> |
---|
116 | <td><g:link controller="protocol" action="show" id="${s.id}">${s.id}</g:link></td> |
---|
117 | <td>${s.name}</td> |
---|
118 | <td> |
---|
119 | <g:each in="${s.parameters}" var="p"><ul><li> |
---|
120 | <g:link controller="protocolParameter" action="show" id="${p.id}">${p.name}</g:link> |
---|
121 | </li></ul> |
---|
122 | </g:each> |
---|
123 | </td> |
---|
124 | <td>${s.reference}</td> |
---|
125 | </tr> |
---|
126 | </g:each> |
---|
127 | </table> |
---|
128 | </div> |
---|
129 | |
---|
130 | <a href="#"> Events </a><div> |
---|
131 | <table> |
---|
132 | <tr> |
---|
133 | <td><b>Event Description</b></td> |
---|
134 | <td><b>Subject</b></td> |
---|
135 | <td><b>Start Time</b></td> |
---|
136 | <td><b>End Time</b></td> |
---|
137 | <td><b>Duration</b></td> |
---|
138 | </tr> |
---|
139 | <g:each in="${studyInstance.events}" var="e"> |
---|
140 | <tr> |
---|
141 | <td><g:link controller="event" action="show" id="${e.id}"> ${e.eventDescription.name}</g:link></td> |
---|
142 | <td>${e.subject.id}</td> |
---|
143 | <td>${e.startTime}</td> |
---|
144 | <td>${e.endTime}</td> |
---|
145 | <td>${e.getDurationString()}</td> |
---|
146 | </tr> |
---|
147 | </g:each> |
---|
148 | </table> |
---|
149 | </div> |
---|
150 | |
---|
151 | <a href="#"> Assays </a><div> |
---|
152 | </div> |
---|
153 | |
---|
154 | </div> |
---|
155 | </div> |
---|
156 | <br> |
---|
157 | <div class="buttons"> |
---|
158 | <g:form> |
---|
159 | <g:hiddenField name="id" value="${studyInstance?.id}" /> |
---|
160 | <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span> |
---|
161 | <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span> |
---|
162 | </g:form> |
---|
163 | </div> |
---|
164 | </div> |
---|
165 | </div> |
---|
166 | </body> |
---|
167 | </html> |
---|