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 | </head> |
---|
10 | <body> |
---|
11 | |
---|
12 | |
---|
13 | <script type="text/javascript"> |
---|
14 | render "hello" |
---|
15 | </script> |
---|
16 | |
---|
17 | |
---|
18 | <resource:accordion skin="default" /> |
---|
19 | <div class="nav"> |
---|
20 | <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span> |
---|
21 | <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span> |
---|
22 | <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span> |
---|
23 | </div> |
---|
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 | <richui:accordion> |
---|
31 | <richui:accordionItem id="1" caption="Id"> ${fieldValue(bean: studyInstance, field: "id")} </richui:accordionItem> |
---|
32 | <richui:accordionItem id="1" caption="Template"> <g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link> </richui:accordionItem> |
---|
33 | <richui:accordionItem id="1" caption="Start Date"> <g:formatDate date="${studyInstance?.startDate}" /> </richui:accordionItem> |
---|
34 | <richui:accordionItem id="1" caption="Sampling Events"> <ul> |
---|
35 | <g:each in="${studyInstance.samplingEvents}" var="s"> |
---|
36 | <li><g:link controller="samplingEvent" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
37 | </g:each> |
---|
38 | </ul> </richui:accordionItem> |
---|
39 | <richui:accordionItem id="1" caption="Subjects"> <ul> |
---|
40 | <g:each in="${studyInstance.subjects}" var="s"> |
---|
41 | <li><g:link controller="subject" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
42 | </g:each> |
---|
43 | </ul> </richui:accordionItem> |
---|
44 | <richui:accordionItem id="1" caption="Events"> <ul> |
---|
45 | <g:each in="${studyInstance.events}" var="e"> |
---|
46 | <li><g:link controller="event" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li> |
---|
47 | </g:each> |
---|
48 | </ul> |
---|
49 | </richui:accordionItem> |
---|
50 | <richui:accordionItem id="1" caption="Last Updated"> <g:formatDate date="${studyInstance?.lastUpdated}" /> </richui:accordionItem> |
---|
51 | <richui:accordionItem id="1" caption="Readers"> <ul> |
---|
52 | <g:each in="${studyInstance.readers}" var="r"> |
---|
53 | <li><g:link controller="user" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li> |
---|
54 | </g:each> |
---|
55 | </ul> </richui:accordionItem> |
---|
56 | |
---|
57 | <richui:accordionItem id="1" caption="Code">${fieldValue(bean: studyInstance, field: "code")} </richui:accordionItem> |
---|
58 | <richui:accordionItem id="1" caption="Editors"> <ul> |
---|
59 | <g:each in="${studyInstance.editors}" var="e"> |
---|
60 | <li><g:link controller="user" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li> |
---|
61 | </g:each> |
---|
62 | </ul> </richui:accordionItem> |
---|
63 | <richui:accordionItem id="1" caption="EC Code">${fieldValue(bean: studyInstance, field: "ecCode")} </richui:accordionItem> |
---|
64 | <richui:accordionItem id="1" caption="Research Question">${fieldValue(bean: studyInstance, field: "researchQuestion")} </richui:accordionItem> |
---|
65 | <richui:accordionItem id="1" caption="Title">${fieldValue(bean: studyInstance, field: "title")} </richui:accordionItem> |
---|
66 | <richui:accordionItem id="1" caption="Description">${fieldValue(bean: studyInstance, field: "description")} </richui:accordionItem> |
---|
67 | <richui:accordionItem id="1" caption="Owner"> <g:link controller="user" action="show" id="${studyInstance?.owner?.id}">${studyInstance?.owner?.encodeAsHTML()}</g:link> </richui:accordionItem> |
---|
68 | <richui:accordionItem id="1" caption="Date Created"> <g:formatDate date="${studyInstance?.dateCreated}" /> </richui:accordionItem> |
---|
69 | <richui:accordionItem id="1" caption="Groups"><ul> |
---|
70 | <g:each in="${studyInstance.groups}" var="g"> |
---|
71 | <li><g:link controller="subjectGroup" action="show" id="${g.id}">${g?.encodeAsHTML()}</g:link></li> |
---|
72 | </g:each> |
---|
73 | </ul> </richui:accordionItem> |
---|
74 | |
---|
75 | </richui:accordion> |
---|
76 | </div> |
---|
77 | <br> |
---|
78 | <div class="buttons"> |
---|
79 | <g:form> |
---|
80 | <g:hiddenField name="id" value="${studyInstance?.id}" /> |
---|
81 | <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span> |
---|
82 | <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> |
---|
83 | </g:form> |
---|
84 | </div> |
---|
85 | </div> |
---|
86 | </body> |
---|
87 | </html> |
---|