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

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

list and show for the studies list

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
10        <my:jqueryui/>
11      <script type="text/javascript">
12        $(function() {
13                $("#accordion").accordion();
14        });
15      </script>
16
17</head>
18<body>
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
25<div class="body">
26  <h1><g:message code="default.show.label" args="[entityName]" /></h1>
27  <g:if test="${flash.message}">
28    <div class="message">${flash.message}</div>
29  </g:if>
30  <div class="dialog">
31
32    <div id="accordion">
33      <a href="#"> Id </a> <div> ${fieldValue(bean: studyInstance, field: "id")} </div>
34      <a href="#"> Template </a> <div> <g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link> </div>
35      <a href="#"> Start Date </a> <div> <g:formatDate date="${studyInstance?.startDate}" /> </div>
36      <a href="#"> Sampling Events </a> <div>  <ul>
37          <g:each in="${studyInstance.samplingEvents}" var="s">
38            <li><g:link controller="samplingEvent" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
39          </g:each>
40        </ul> </div>
41      <a href="#"> Subjects </a><div> <ul>
42          <g:each in="${studyInstance.subjects}" var="s">
43            <li><g:link controller="subject" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
44          </g:each>
45        </ul> </div>
46      <a href="#"> Events </a><div> <ul>
47          <g:each in="${studyInstance.events}" var="e">
48            <li><g:link controller="event" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
49          </g:each>
50        </ul>
51      </div>
52      <a href="#"> Last Updated </a><div> <g:formatDate date="${studyInstance?.lastUpdated}" /> </div>
53      <a href="#"> Readers </a> <div>  <ul>
54          <g:each in="${studyInstance.readers}" var="r">
55            <li><g:link controller="user" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>
56          </g:each>
57        </ul> </div>
58
59      <a href="#"> Code </a><div> ${fieldValue(bean: studyInstance, field: "code")} </div>
60      <a href="#"> Editors </a> <div> <ul>
61          <g:each in="${studyInstance.editors}" var="e">
62            <li><g:link controller="user" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
63          </g:each>
64        </ul> </div>
65     <a href="#"> EC Code </a> <div>${fieldValue(bean: studyInstance, field: "ecCode")} </div>
66     <a href="#"> Research Question </a> <div>${fieldValue(bean: studyInstance, field: "researchQuestion")} </div>
67     <a href="#"> Title </a><div> ${fieldValue(bean: studyInstance, field: "title")} </div>
68      <a href="#"> Description </a> <div> ${fieldValue(bean: studyInstance, field: "description")} </div>
69      <a href="#"> Owner </a><div> <g:link controller="user" action="show" id="${studyInstance?.owner?.id}">${studyInstance?.owner?.encodeAsHTML()}</g:link> </div>
70      <a href="#"> Date Created </a><div> <g:formatDate date="${studyInstance?.dateCreated}" /> </div>
71      <a href="#"> Groups </a> <div><ul>
72          <g:each in="${studyInstance.groups}" var="g">
73            <li><g:link controller="subjectGroup" action="show" id="${g.id}">${g?.encodeAsHTML()}</g:link></li>
74          </g:each>
75        </ul> </div>
76  </div>
77    </div>
78  <br>
79  <div class="buttons">
80    <g:form>
81      <g:hiddenField name="id" value="${studyInstance?.id}" />
82      <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
83      <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>
84    </g:form>
85  </div>
86</div>
87</div>
88</body>
89</html>
Note: See TracBrowser for help on using the repository browser.