source: trunk/grails-app/views/exporter/index.gsp @ 1051

Last change on this file since 1051 was 1051, checked in by adem.bilican@…, 12 years ago

error messages in ExporterController? for SimpleTox?

File size: 2.9 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>SimpleTox Exporter</title>
9</head>
10<body>
11
12  <g:form action="export">
13
14  <div class="body">
15    <h1>Export as SimpleTox</h1>
16    <br> Select the study you want to export in SimpleTox format.<br><br>
17    <g:if test="${flash.message}">
18      <div class="message">${flash.message}</div>
19    </g:if>
20
21    <div class="list">
22      <table>
23          <thead>
24              <tr>
25                  <th></th>
26                  <g:sortableColumn property="code" title="${message(code: 'study.code.label', default: 'Code')}" />
27                      <th>Title</th>
28                  <th>Subjects</th>
29                  <th>Events</th>
30                  <th>Assays</th>
31              </tr>
32          </thead>
33          <tbody>
34          <g:each in="${studyInstanceList}" var="studyInstance" status="i" >
35              <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
36
37                  <td><input type="checkbox" name="${studyInstance.title}" id="${studyInstance.title}"></td>
38
39                  <td><g:link action="show" id="${studyInstance.id}">${fieldValue(bean: studyInstance, field: "code")}</g:link></td>
40                      <td>
41                              ${fieldValue(bean: studyInstance, field: "title")}
42                      </td>
43                  <td>
44                    <g:if test="${studyInstance.subjects.species.size()==0}">
45                      -
46                    </g:if>
47                    <g:else>
48                      <g:each in="${studyInstance.subjects.species.unique()}" var="currentSpecies" status="j">
49                        <g:if test="${j > 0}">, </g:if>
50                        <%= studyInstance.subjects.findAll { return it.species == currentSpecies; }.size() %>
51                        ${currentSpecies}
52                      </g:each>
53                    </g:else>
54                  </td>
55
56                  <td>
57                    <g:if test="${studyInstance.giveEventTemplates().size()==0}">
58                      -
59                    </g:if>
60                    <g:else>
61                      ${studyInstance.giveEventTemplates().name.join( ', ' )}
62                    </g:else>
63                  </td>
64
65                  <td>
66                    <g:if test="${studyInstance.assays.size()==0}">
67                      -
68                    </g:if>
69                    <g:else>
70                      ${studyInstance.assays.module.platform.unique().join( ', ' )}
71                    </g:else>
72                  </td>
73
74              </tr>
75          </g:each>
76          </tbody>
77      </table>
78    </div>
79
80
81    <div class="paginateButtons" id="button">
82    </div>
83   
84    <INPUT TYPE=submit name=submit Value="Export">
85
86  </div>
87    <div id="result">  </div>
88
89</g:form>
90
91</body>
92</html>
Note: See TracBrowser for help on using the repository browser.