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

Last change on this file since 241 was 241, checked in by jahn, 10 years ago

Functionality of dynamic protocol parameter selection improved. The java scripts lines still need to be cleaned and put into a seperate fiel to be included by a grails source tag.

File size: 892 bytes
RevLine 
[221]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}" >
[241]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>
[221]24</g:each>
Note: See TracBrowser for help on using the repository browser.