source: trunk/grails-app/views/study/show_backup.gsp @ 91

Last change on this file since 91 was 91, checked in by ademcan, 14 years ago

list and show for the studies list

File size: 9.7 KB
Line 
1
2<%@ page import="dbnp.studycapturing.Study" %>
3
4<html>
5    <head>
6        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7        <meta name="layout" content="main" />
8        <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}" />
9        <title><g:message code="default.show.label" args="[entityName]" /></title>
10      <my:jqueryui/>
11      <script type="text/javascript">
12        $(function() {
13                $("#accordions").accordion();
14        });
15      </script>
16    </head>
17
18
19    <body>
20
21<resource:accordion skin="default" />
22<richui:accordion> <richui:accordionItem id="1" caption="Sample 1"> A sample text. </richui:accordionItem>
23<richui:accordionItem caption="Sample 2"> Another sample text. </richui:accordionItem>
24<richui:accordionItem caption="Sample 3"> Even another sample text. </richui:accordionItem> </richui:accordion>
25
26      <div class="nav">
27            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
28            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
29            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
30        </div>
31        <div class="body">
32            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
33            <g:if test="${flash.message}">
34            <div class="message">${flash.message}</div>
35            </g:if>
36            <div class="dialog">
37                <table>
38                  <richui:accordion>
39                    <tbody>
40                        <tr class="prop">
41                            <td valign="top" class="name"><g:message code="study.id.label" default="Id" /></td>
42
43                            <td valign="top" class="value">${fieldValue(bean: studyInstance, field: "id")}</td>
44                        </tr>
45
46
47                        <tr class="prop">
48                            <td valign="top" class="name"><g:message code="study.template.label" default="Template" /></td>
49
50                            <td valign="top" class="value"><g:link controller="template" action="show" id="${studyInstance?.template?.id}">${studyInstance?.template?.encodeAsHTML()}</g:link></td>
51
52                        </tr>
53
54                        <tr class="prop">
55                            <td valign="top" class="name"><g:message code="study.startDate.label" default="Start Date" /></td>
56
57                            <td valign="top" class="value"><g:formatDate date="${studyInstance?.startDate}" /></td>
58
59                        </tr>
60
61                        <tr class="prop">
62                            <td valign="top" class="name"><g:message code="study.samplingEvents.label" default="Sampling Events" /></td>
63
64                            <td valign="top" style="text-align: left;" class="value">
65                                <ul>
66                                <g:each in="${studyInstance.samplingEvents}" var="s">
67                                    <li><g:link controller="samplingEvent" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
68                                </g:each>
69                                </ul>
70                            </td>
71
72                        </tr>
73
74                        <tr class="prop">
75                            <td valign="top" class="name"><g:message code="study.subjects.label" default="Subjects" /></td>
76
77                            <td valign="top" style="text-align: left;" class="value">
78                                <ul>
79                                <g:each in="${studyInstance.subjects}" var="s">
80                                    <li><g:link controller="subject" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
81                                </g:each>
82                                </ul>
83                            </td>
84
85                        </tr>
86
87                        <tr class="prop">
88                            <td valign="top" class="name"><g:message code="study.events.label" default="Events" /></td>
89
90                            <td valign="top" style="text-align: left;" class="value">
91                                <ul>
92                                <g:each in="${studyInstance.events}" var="e">
93                                    <li><g:link controller="event" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
94                                </g:each>
95                                </ul>
96                            </td>
97
98                        </tr>
99
100                        <tr class="prop">
101                            <td valign="top" class="name"><g:message code="study.lastUpdated.label" default="Last Updated" /></td>
102
103                            <td valign="top" class="value"><g:formatDate date="${studyInstance?.lastUpdated}" /></td>
104
105                        </tr>
106
107                        <tr class="prop">
108                            <td valign="top" class="name"><g:message code="study.readers.label" default="Readers" /></td>
109
110                            <td valign="top" style="text-align: left;" class="value">
111                                <ul>
112                                <g:each in="${studyInstance.readers}" var="r">
113                                    <li><g:link controller="user" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>
114                                </g:each>
115                                </ul>
116                            </td>
117
118                        </tr>
119
120                        <tr class="prop">
121                            <td valign="top" class="name"><g:message code="study.code.label" default="Code" /></td>
122
123                            <td valign="top" class="value">${fieldValue(bean: studyInstance, field: "code")}</td>
124
125                        </tr>
126
127                        <tr class="prop">
128                            <td valign="top" class="name"><g:message code="study.editors.label" default="Editors" /></td>
129
130                            <td valign="top" style="text-align: left;" class="value">
131                                <ul>
132                                <g:each in="${studyInstance.editors}" var="e">
133                                    <li><g:link controller="user" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
134                                </g:each>
135                                </ul>
136                            </td>
137
138                        </tr>
139
140                        <tr class="prop">
141                            <td valign="top" class="name"><g:message code="study.ecCode.label" default="Ec Code" /></td>
142
143                            <td valign="top" class="value">${fieldValue(bean: studyInstance, field: "ecCode")}</td>
144
145                        </tr>
146
147                        <tr class="prop">
148                            <td valign="top" class="name"><g:message code="study.researchQuestion.label" default="Research Question" /></td>
149
150                            <td valign="top" class="value">${fieldValue(bean: studyInstance, field: "researchQuestion")}</td>
151
152                        </tr>
153
154                        <tr class="prop">
155                            <td valign="top" class="name"><g:message code="study.title.label" default="Title" /></td>
156
157                            <td valign="top" class="value">${fieldValue(bean: studyInstance, field: "title")}</td>
158
159                        </tr>
160
161                        <tr class="prop">
162                            <td valign="top" class="name"><g:message code="study.description.label" default="Description" /></td>
163
164                            <td valign="top" class="value">${fieldValue(bean: studyInstance, field: "description")}</td>
165
166                        </tr>
167
168                        <tr class="prop">
169                            <td valign="top" class="name"><g:message code="study.owner.label" default="Owner" /></td>
170
171                            <td valign="top" class="value"><g:link controller="user" action="show" id="${studyInstance?.owner?.id}">${studyInstance?.owner?.encodeAsHTML()}</g:link></td>
172
173                        </tr>
174
175                        <tr class="prop">
176                            <td valign="top" class="name"><g:message code="study.dateCreated.label" default="Date Created" /></td>
177
178                            <td valign="top" class="value"><g:formatDate date="${studyInstance?.dateCreated}" /></td>
179
180                        </tr>
181
182                        <tr class="prop">
183                            <td valign="top" class="name"><g:message code="study.groups.label" default="Groups" /></td>
184
185                            <td valign="top" style="text-align: left;" class="value">
186                                <ul>
187                                <g:each in="${studyInstance.groups}" var="g">
188                                    <li><g:link controller="subjectGroup" action="show" id="${g.id}">${g?.encodeAsHTML()}</g:link></li>
189                                </g:each>
190                                </ul>
191                            </td>
192
193                        </tr>
194
195                    </tbody>
196                </table>
197            </div>
198            <div class="buttons">
199                <g:form>
200                    <g:hiddenField name="id" value="${studyInstance?.id}" />
201                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
202                    <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>
203                </g:form>
204            </div>
205        </div>
206    </body>
207</html>
Note: See TracBrowser for help on using the repository browser.