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