[85] | 1 | |
---|
| 2 | <%@ page import="dbnp.studycapturing.Study" %> |
---|
| 3 | <html> |
---|
[91] | 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
[442] | 7 | <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}" /> |
---|
| 8 | <title><g:message code="default.list.label" args="[entityName]" /></title> |
---|
[91] | 9 | </head> |
---|
| 10 | <body> |
---|
[85] | 11 | |
---|
[165] | 12 | <g:form action="list_extended"> |
---|
[135] | 13 | |
---|
[91] | 14 | <div class="body"> |
---|
| 15 | <h1><g:message code="default.list.label" args="[entityName]" /></h1> |
---|
| 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
[135] | 19 | |
---|
[442] | 20 | <div class="list"> |
---|
| 21 | <table> |
---|
| 22 | <thead> |
---|
| 23 | <tr> |
---|
| 24 | <th></th> |
---|
| 25 | <g:sortableColumn property="title" title="${message(code: 'study.title.label', default: 'Title')}" /> |
---|
| 26 | <th>Subjects</th> |
---|
| 27 | <th>Events</th> |
---|
| 28 | <th>Assays</th> |
---|
| 29 | </tr> |
---|
| 30 | </thead> |
---|
| 31 | <tbody> |
---|
| 32 | <g:each in="${studyInstanceList}" var="studyInstance" status="i" > |
---|
| 33 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
[171] | 34 | |
---|
[442] | 35 | <td><input type="checkbox" name="${studyInstance.title}" id="${studyInstance.title}"></td> |
---|
[85] | 36 | |
---|
[442] | 37 | <td><g:link action="show" id="${studyInstance.id}">${fieldValue(bean: studyInstance, field: "title")}</g:link></td> |
---|
[85] | 38 | |
---|
[442] | 39 | <td> |
---|
| 40 | <g:if test="${studyInstance.subjects.species.size()==0}"> |
---|
| 41 | - |
---|
| 42 | </g:if> |
---|
| 43 | <g:else> |
---|
| 44 | <g:each in="${studyInstance.subjects.species.unique()}" var="currentSpecies" status="j"> |
---|
| 45 | <g:if test="${j > 0}">, </g:if> |
---|
| 46 | <%= studyInstance.subjects.findAll { return it.species == currentSpecies; }.size() %> |
---|
| 47 | ${currentSpecies} |
---|
| 48 | </g:each> |
---|
| 49 | </g:else> |
---|
| 50 | </td> |
---|
[85] | 51 | |
---|
[442] | 52 | <td> |
---|
| 53 | <g:if test="${studyInstance.giveEventTemplates().size()==0}"> |
---|
| 54 | - |
---|
| 55 | </g:if> |
---|
| 56 | <g:else> |
---|
| 57 | ${studyInstance.giveEventTemplates().name.join( ', ' )} |
---|
| 58 | </g:else> |
---|
| 59 | </td> |
---|
[85] | 60 | |
---|
[442] | 61 | <td> |
---|
| 62 | <g:if test="${studyInstance.assays.size()==0}"> |
---|
| 63 | - |
---|
| 64 | </g:if> |
---|
| 65 | <g:else> |
---|
| 66 | ${studyInstance.assays.module.platform.unique().join( ', ' )} |
---|
| 67 | </g:else> |
---|
| 68 | </td> |
---|
[85] | 69 | |
---|
[442] | 70 | </tr> |
---|
[210] | 71 | </g:each> |
---|
[442] | 72 | </tbody> |
---|
| 73 | </table> |
---|
| 74 | </div> |
---|
| 75 | <div class="buttons"> |
---|
| 76 | <span class="button"><g:link controller="wizard" class="create" action="index"><g:message code="default.new.label" args="[entityName]" /></g:link></span> |
---|
| 77 | </div> |
---|
[91] | 78 | <div class="paginateButtons"> |
---|
[442] | 79 | <g:paginate total="${studyInstanceTotal}" prev="« Previous" next="» Next" /> |
---|
| 80 | <br> |
---|
| 81 | <INPUT TYPE=submit name=submit Value="Compare selected studies"> |
---|
[91] | 82 | </div> |
---|
| 83 | </div> |
---|
| 84 | </g:form> |
---|
| 85 | </body> |
---|
[85] | 86 | </html> |
---|