source: trunk/grails-app/views/study/list.gsp @ 148

Last change on this file since 148 was 148, checked in by ademcan, 10 years ago

reorganization of the study views : template and protocol views in the accordion menu

File size: 2.3 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><g:message code="default.list.label" args="[entityName]" /></title>
9</head>
10<body>
11
12  <g:form action="list_extended.gsp">
13
14  <div class="nav">
15    <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
16    <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
17  </div>
18  <div class="body">
19    <h1><g:message code="default.list.label" args="[entityName]" /></h1>
20    <g:if test="${flash.message}">
21      <div class="message">${flash.message}</div>
22    </g:if>
23    <div class="list">
24
25      <g:each in="${studyInstanceList}" status="i" var="studyInstance">
26        <br>
27        <table>
28          <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
29            <td>
30              <input type="checkbox" name="${studyInstance.title}" id="${studyInstance.title}"></td>
31
32            <td width=200>
33          <g:link action="show" id="${studyInstance.id}">
34${message(code: 'study.id.label', default: 'Id')} :
35${fieldValue(bean: studyInstance, field: "id")}</g:link></td>
36
37          <td width=300>
38${message(code: 'study.template.label', default: 'Template')} :
39${fieldValue(bean: studyInstance, field: "template")}</td>
40
41          <td width=500>
42${message(code: 'study.startDate.label', default: 'Start Date')} :
43          <g:formatDate date="${studyInstance.startDate}" /></td>
44
45          <td width=500>
46${message(code: 'study.lastUpdated.label', default: 'Last Updated')} :
47          <g:formatDate date="${studyInstance.lastUpdated}" /></td>
48
49          <td width=300>
50${message(code: 'study.code.label', default: 'Code')} :
51${fieldValue(bean: studyInstance, field: "code")}</td>
52
53          <td width=300>
54${message(code: 'study.ecCode.label', default: 'Ec Code')} :
55${fieldValue(bean: studyInstance, field: "ecCode")}</td>
56
57          </tr>
58        </table>
59      </g:each>
60      </table>
61    </div>
62    <div class="paginateButtons">
63      <g:paginate total="${studyInstanceTotal}" />
64      <br>
65      <INPUT TYPE=submit name=submit Value="Compare selected studies">
66    </div>
67  </div>
68</g:form>
69</body>
70</html>
Note: See TracBrowser for help on using the repository browser.