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

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

list and show for the studies list

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