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

Last change on this file since 132 was 132, checked in by duh, 11 years ago
  • removed <my:.../> references as they are obsolete
File size: 4.3 KB
RevLine 
[85]1<%@ page import="dbnp.studycapturing.Study" %>
2<html>
[91]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>
[95]8      <script type="text/javascript">
9        $(function() {
10                $("#accordion").accordion();
11        });
[91]12      </script>
13
[95]14</head>
15<body>
[91]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>
[95]21
[91]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">
[95]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>
[91]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>
[95]37        </ul> </div>
38      <a href="#"> Subjects </a><div> <ul>
[91]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>
[95]42        </ul> </div>
43      <a href="#"> Events </a><div> <ul>
[91]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>
[95]48      </div>
49      <a href="#"> Last Updated </a><div> <g:formatDate date="${studyInstance?.lastUpdated}" /> </div>
50      <a href="#"> Readers </a> <div>  <ul>
[91]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>
[95]54        </ul> </div>
[91]55
[95]56      <a href="#"> Code </a><div> ${fieldValue(bean: studyInstance, field: "code")} </div>
57      <a href="#"> Editors </a> <div> <ul>
[91]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>
[95]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>
[91]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>
[95]72        </ul> </div>
[91]73  </div>
[95]74    </div>
[91]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>
[95]84</div>
[91]85</body>
[85]86</html>
Note: See TracBrowser for help on using the repository browser.