source: trunk/grails-app/views/eventDescription/showProtocolParameters.gsp @ 247

Last change on this file since 247 was 247, checked in by duh, 9 years ago
  • set keyword expansion
  • Property svn:keywords set to Author Rev Date
File size: 892 bytes
Line 
1
2
3
4
5<!--- This is a table body. It contains exactly one Protocol Parameters per row. -->
6<% tableRowId=0 %>
7<g:each in ="${list}" >
8
9    <g:if test="it.type==dbnp.studycapturing.ProtocolParameterType.STRINGLIST" >
10        <% def listEntries=it.listEntries.collect { it } %>
11
12        <script type="text/javascript">
13            var tmpList = [];
14            <% listEntries.each{ print "tmpList.push( escape('${it}') ); tmpList.push( '${it.id}' );" } %>
15            addRow('showProtocolParameters',"${list.id[0]}","${it.name}","${it.unit}","${it.type}","${it.reference}","${it.description}", tmpList );
16            delete tmpList;
17        </script>
18    </g:if>
19    <g:else>
20        <script type="text/javascript">
21            addRow('showProtocolParameters',"${list.id[0]}","${it.name}","${it.unit}","${it.type}","${it.reference}","${it.description}", new Array() );
22        </script>
23    </g:else>
24</g:each>
Note: See TracBrowser for help on using the repository browser.