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="${layout}" /> |
---|
7 | <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}" /> |
---|
8 | <title><g:message code="default.show.label" args="[entityName]" /></title> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="body"> |
---|
12 | <h1><g:message code="default.show.label" args="[entityName]" /></h1> |
---|
13 | <g:if test="${flash.message}"> |
---|
14 | <div class="message">${flash.message}</div> |
---|
15 | </g:if> |
---|
16 | <div class="dialog"> |
---|
17 | <p> |
---|
18 | <b>Instructions</b>: You are now on the Study page. |
---|
19 | All information within the application is related to a study. |
---|
20 | For this pilot a Metabolomics Assay has been created.<br /><br /> |
---|
21 | |
---|
22 | <g:if test="${studyInstance.samples.size() == 0}"> |
---|
23 | Currently there are no samples registered for this study. Please use the <b>"Import Samples"</b> to add samples to this study. |
---|
24 | </g:if> |
---|
25 | |
---|
26 | <g:if test="${studyInstance.samples.size() > 0}"> |
---|
27 | Click on this assay to continue with the pilot. |
---|
28 | </g:if> |
---|
29 | </p> |
---|
30 | |
---|
31 | <table> |
---|
32 | <tbody> |
---|
33 | |
---|
34 | <tr class="prop"> |
---|
35 | <td valign="top" class="name"><g:message code="study.title.label" default="Title" /></td> |
---|
36 | |
---|
37 | <td valign="top" class="value">${fieldValue(bean: studyInstance, field: "title")} (${fieldValue(bean: studyInstance, field: "code")})</td> |
---|
38 | |
---|
39 | </tr> |
---|
40 | <tr class="prop"> |
---|
41 | <td valign="top" class="name">Samples (${studyInstance.samples.size()})</td> |
---|
42 | |
---|
43 | <td valign="top" class="value"> |
---|
44 | |
---|
45 | <g:if test="${studyInstance.samples.size() == 0}"> |
---|
46 | <g:link controller="importer" action="index" params="[redirectTo: 'http://localhost:8080/gscf/pilot/show/'+studyInstance.id]">Import Samples</g:link> |
---|
47 | </g:if> |
---|
48 | |
---|
49 | <g:if test="${studyInstance.samples.size() > 0}"> |
---|
50 | ${studyInstance.samples.join( ', ' )} |
---|
51 | </g:if> |
---|
52 | </td> |
---|
53 | |
---|
54 | </tr> |
---|
55 | |
---|
56 | <g:if test="${studyInstance.samples.size() > 0}"> |
---|
57 | <tr class="prop"> |
---|
58 | <td valign="top" class="name">Assays</td> |
---|
59 | |
---|
60 | <td valign="top" class="value"> |
---|
61 | <g:each in="${studyInstance.assays.unique()}" var="assay"> |
---|
62 | <jumpbar:link |
---|
63 | linkDest="${createLink(action:'show', id:studyInstance.id)}" |
---|
64 | linkText='Go back to GSCF' |
---|
65 | frameSource="${assay.module.url}/assay/showByToken?id=${assay.externalAssayID}&sessionToken=${session.id}" |
---|
66 | pageTitle="Assay View in Module"> |
---|
67 | ${assay.name} |
---|
68 | </jumpbar:link><br /> |
---|
69 | </g:each> |
---|
70 | </td> |
---|
71 | </tr> |
---|
72 | </g:if> |
---|
73 | |
---|
74 | </tbody> |
---|
75 | </table> |
---|
76 | </div> |
---|
77 | <div class="buttons"> |
---|
78 | <g:form> |
---|
79 | <g:hiddenField name="id" value="${studyInstance?.id}" /> |
---|
80 | <g:each in="${extraparams}" var="param"> |
---|
81 | <input type="hidden" name="${param.key}" value="${param.value}"> |
---|
82 | </g:each> |
---|
83 | <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span> |
---|
84 | <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> |
---|
85 | <span class="button"><g:link class="backToList" action="list" params="${extraparams}">Back to list</g:link></span> |
---|
86 | </g:form> |
---|
87 | </div> |
---|
88 | </div> |
---|
89 | </body> |
---|
90 | </html> |
---|