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

Last change on this file since 132 was 132, checked in by duh, 13 years ago
  • removed <my:.../> references as they are obsolete
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<div class="nav">
17  <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
18  <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
19  <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
20</div>
21
22<div class="body">
23  <h1><g:message code="default.show.label" args="[entityName]" /></h1>
24  <g:if test="${flash.message}">
25    <div class="message">${flash.message}</div>
26  </g:if>
27  <div class="dialog">
28
29    <div id="accordion">
30      <a href="#"> Id </a> <div> ${fieldValue(bean: studyInstance, field: "id")} </div>
31      <a href="#"> Template </a> <div> <g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link> </div>
32      <a href="#"> Start Date </a> <div> <g:formatDate date="${studyInstance?.startDate}" /> </div>
33      <a href="#"> Sampling Events </a> <div>  <ul>
34          <g:each in="${studyInstance.samplingEvents}" var="s">
35            <li><g:link controller="samplingEvent" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
36          </g:each>
37        </ul> </div>
38      <a href="#"> Subjects </a><div> <ul>
39          <g:each in="${studyInstance.subjects}" var="s">
40            <li><g:link controller="subject" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
41          </g:each>
42        </ul> </div>
43      <a href="#"> Events </a><div> <ul>
44          <g:each in="${studyInstance.events}" var="e">
45            <li><g:link controller="event" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
46          </g:each>
47        </ul>
48      </div>
49      <a href="#"> Last Updated </a><div> <g:formatDate date="${studyInstance?.lastUpdated}" /> </div>
50      <a href="#"> Readers </a> <div>  <ul>
51          <g:each in="${studyInstance.readers}" var="r">
52            <li><g:link controller="user" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>
53          </g:each>
54        </ul> </div>
55
56      <a href="#"> Code </a><div> ${fieldValue(bean: studyInstance, field: "code")} </div>
57      <a href="#"> Editors </a> <div> <ul>
58          <g:each in="${studyInstance.editors}" var="e">
59            <li><g:link controller="user" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
60          </g:each>
61        </ul> </div>
62     <a href="#"> EC Code </a> <div>${fieldValue(bean: studyInstance, field: "ecCode")} </div>
63     <a href="#"> Research Question </a> <div>${fieldValue(bean: studyInstance, field: "researchQuestion")} </div>
64     <a href="#"> Title </a><div> ${fieldValue(bean: studyInstance, field: "title")} </div>
65      <a href="#"> Description </a> <div> ${fieldValue(bean: studyInstance, field: "description")} </div>
66      <a href="#"> Owner </a><div> <g:link controller="user" action="show" id="${studyInstance?.owner?.id}">${studyInstance?.owner?.encodeAsHTML()}</g:link> </div>
67      <a href="#"> Date Created </a><div> <g:formatDate date="${studyInstance?.dateCreated}" /> </div>
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  </div>
74    </div>
75  <br>
76  <div class="buttons">
77    <g:form>
78      <g:hiddenField name="id" value="${studyInstance?.id}" />
79      <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
80      <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>
81    </g:form>
82  </div>
83</div>
84</div>
85</body>
86</html>
Note: See TracBrowser for help on using the repository browser.