source: trunk/grails-app/views/study/show.gsp @ 141

Last change on this file since 141 was 141, checked in by ademcan, 11 years ago

show in tab views : new organization

File size: 4.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.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    <div id="accordion">
32      <a href="#"> Study Information </a>
33       
34       <div> Id : ${fieldValue(bean: studyInstance, field: "id")} <br>
35       Template :<g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link><br>
36       Start :<g:formatDate date="${studyInstance?.startDate}" /> <br>
37      Sampling Events :
38          <g:each in="${studyInstance.samplingEvents}" var="s">
39            <li><g:link controller="samplingEvent" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
40          </g:each>
41        </ul><br>
42       Last Updated :<g:formatDate date="${studyInstance?.lastUpdated}" /><br>
43             Readers :<ul>
44          <g:each in="${studyInstance.readers}" var="r">
45            <li><g:link controller="user" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>
46          </g:each>
47        </ul> <br>
48      Code : ${fieldValue(bean: studyInstance, field: "code")} <br>
49      Editors : <ul>
50          <g:each in="${studyInstance.editors}" var="e">
51            <li><g:link controller="user" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
52          </g:each>
53        </ul> <br>
54     EC Code : ${fieldValue(bean: studyInstance, field: "ecCode")} <br>
55     Research Question : ${fieldValue(bean: studyInstance, field: "researchQuestion")} <br>
56     Title : ${fieldValue(bean: studyInstance, field: "title")} <br>
57     Description : ${fieldValue(bean: studyInstance, field: "description")} <br>
58     Owner :<g:link controller="user" action="show" id="${studyInstance?.owner?.id}">${studyInstance?.owner?.encodeAsHTML()}</g:link> <br>
59      Date Created :<g:formatDate date="${studyInstance?.dateCreated}" /> <br>
60       </div>
61
62      <a href="#"> Subjects </a><div> <ul>
63          <g:each in="${studyInstance.subjects}" var="s">
64            <li><g:link controller="subject" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
65          </g:each>
66        </ul> </div>
67
68       <a href="#"> Groups </a> <div><ul>
69          <g:each in="${studyInstance.groups}" var="g">
70            <li><g:link controller="subjectGroup" action="show" id="${g.id}">${g?.encodeAsHTML()}</g:link></li>
71          </g:each>
72        </ul> </div>
73
74       <a href="#"> Protocols </a><div> <ul>
75          <g:each in="${studyInstance.events.eventDescription.protocol}" var="s">
76            <li><g:link controller="protocol" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
77          </g:each>
78        </ul> </div>
79
80      <a href="#"> Events </a><div> <ul>
81          <g:each in="${studyInstance.events}" var="e">
82            <li><g:link controller="event" action="show" id="${e.id}">  ${e?.encodeAsHTML()}</g:link></li>
83          </g:each>
84        </ul>
85      </div>
86
87      <a href="#"> Assays </a><div>
88      </div>
89
90  </div>
91    </div>
92  <br>
93  <div class="buttons">
94    <g:form>
95      <g:hiddenField name="id" value="${studyInstance?.id}" />
96      <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
97      <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>
98    </g:form>
99  </div>
100</div>
101</div>
102</body>
103</html>
Note: See TracBrowser for help on using the repository browser.