root/trunk/grails-app/views/study/show.gsp @ 137

Revision 137, 4.3 KB (checked in by ademcan, 4 years ago)

"compare selected studies" option with tabs view

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="#"> Id </a> <div> ${fieldValue(bean: studyInstance, field: "id")} </div>
33      <a href="#"> Template </a> <div> <g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link> </div>
34      <a href="#"> Start Date </a> <div> <g:formatDate date="${studyInstance?.startDate}" /> </div>
35      <a href="#"> Sampling Events </a> <div> <ul>
36          <g:each in="${studyInstance.samplingEvents}" var="s">
37            <li><g:link controller="samplingEvent" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
38          </g:each>
39        </ul> </div>
40      <a href="#"> Subjects </a><div> <ul>
41          <g:each in="${studyInstance.subjects}" var="s">
42            <li><g:link controller="subject" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
43          </g:each>
44        </ul> </div>
45      <a href="#"> Events </a><div> <ul>
46          <g:each in="${studyInstance.events}" var="e">
47            <li><g:link controller="event" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
48          </g:each>
49        </ul>
50      </div>
51      <a href="#"> Last Updated </a><div> <g:formatDate date="${studyInstance?.lastUpdated}" /> </div>
52      <a href="#"> Readers </a> <div>  <ul>
53          <g:each in="${studyInstance.readers}" var="r">
54            <li><g:link controller="user" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>
55          </g:each>
56        </ul> </div>
57
58      <a href="#"> Code </a><div> ${fieldValue(bean: studyInstance, field: "code")} </div>
59      <a href="#"> Editors </a> <div> <ul>
60          <g:each in="${studyInstance.editors}" var="e">
61            <li><g:link controller="user" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
62          </g:each>
63        </ul> </div>
64     <a href="#"> EC Code </a> <div>${fieldValue(bean: studyInstance, field: "ecCode")} </div>
65     <a href="#"> Research Question </a> <div>${fieldValue(bean: studyInstance, field: "researchQuestion")} </div>
66     <a href="#"> Title </a><div> ${fieldValue(bean: studyInstance, field: "title")} </div>
67      <a href="#"> Description </a> <div> ${fieldValue(bean: studyInstance, field: "description")} </div>
68      <a href="#"> Owner </a><div> <g:link controller="user" action="show" id="${studyInstance?.owner?.id}">${studyInstance?.owner?.encodeAsHTML()}</g:link> </div>
69      <a href="#"> Date Created </a><div> <g:formatDate date="${studyInstance?.dateCreated}" /> </div>
70      <a href="#"> Groups </a> <div><ul>
71          <g:each in="${studyInstance.groups}" var="g">
72            <li><g:link controller="subjectGroup" action="show" id="${g.id}">${g?.encodeAsHTML()}</g:link></li>
73          </g:each>
74        </ul> </div>
75  </div>
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</div>
87</body>
88</html>
Note: See TracBrowser for help on using the browser.