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

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

"compare selected studies" option, with some examples studies, accordion view TODO

File size: 4.3 KB
Line 
1<%@ page import="dbnp.studycapturing.Study" %>
2<html>
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5    <meta name="layout" content="main" />
6  <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}" />
7  <title><g:message code="default.show.label" args="[entityName]" /></title>
8      <script type="text/javascript">
9        $(function() {
10                $("#accordion").accordion();
11        });
12      </script>
13
14</head>
15<body>
16
17<div class="nav">
18  <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
19  <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
20  <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
21</div>
22
23<div class="body">
24  <h1><g:message code="default.show.label" args="[entityName]" /></h1>
25  <g:if test="${flash.message}">
26    <div class="message">${flash.message}</div>
27  </g:if>
28  <div class="dialog">
29
30    <div id="accordion">
31      <a href="#"> Id </a> <div> ${fieldValue(bean: studyInstance, field: "id")} </div>
32      <a href="#"> Template </a> <div> <g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link> </div>
33      <a href="#"> Start Date </a> <div> <g:formatDate date="${studyInstance?.startDate}" /> </div>
34      <a href="#"> Sampling Events </a> <div> <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> </div>
39      <a href="#"> Subjects </a><div> <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> </div>
44      <a href="#"> Events </a><div> <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      </div>
50      <a href="#"> Last Updated </a><div> <g:formatDate date="${studyInstance?.lastUpdated}" /> </div>
51      <a href="#"> Readers </a> <div>  <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> </div>
56
57      <a href="#"> Code </a><div> ${fieldValue(bean: studyInstance, field: "code")} </div>
58      <a href="#"> Editors </a> <div> <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> </div>
63     <a href="#"> EC Code </a> <div>${fieldValue(bean: studyInstance, field: "ecCode")} </div>
64     <a href="#"> Research Question </a> <div>${fieldValue(bean: studyInstance, field: "researchQuestion")} </div>
65     <a href="#"> Title </a><div> ${fieldValue(bean: studyInstance, field: "title")} </div>
66      <a href="#"> Description </a> <div> ${fieldValue(bean: studyInstance, field: "description")} </div>
67      <a href="#"> Owner </a><div> <g:link controller="user" action="show" id="${studyInstance?.owner?.id}">${studyInstance?.owner?.encodeAsHTML()}</g:link> </div>
68      <a href="#"> Date Created </a><div> <g:formatDate date="${studyInstance?.dateCreated}" /> </div>
69      <a href="#"> Groups </a> <div><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> </div>
74  </div>
75    </div>
76  <br>
77  <div class="buttons">
78    <g:form>
79      <g:hiddenField name="id" value="${studyInstance?.id}" />
80      <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
81      <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>
82    </g:form>
83  </div>
84</div>
85</div>
86</body>
87</html>
Note: See TracBrowser for help on using the repository browser.