Line | |
---|
1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | <% def list = [] %> |
---|
10 | <g:each in="${description.protocol.parameters}" > <% list.add( it )%> </g:each> |
---|
11 | <% list.sort{ a,b -> a.name <=> b.name }%> |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | <g:each in="${list}" var="${parameter}"> |
---|
16 | |
---|
17 | <tr class="prop"> |
---|
18 | <td valign="top" class="name" width=200> |
---|
19 | <label for="parameter"><g:message code="${parameter.name}" /></label> |
---|
20 | </td> |
---|
21 | |
---|
22 | <td valign="top" class="name"> |
---|
23 | |
---|
24 | <g:if test="${parameter.type==dbnp.studycapturing.ProtocolParameterType.STRINGLIST}"> |
---|
25 | <g:select name="parameterValue.${parameter.id}" id="protocol" from="${parameter.listEntries}" optionKey="id" optionValue="${{it.name}}" value="${{it?.id}}" /> |
---|
26 | </g:if> |
---|
27 | <g:else> |
---|
28 | <% def value = '' %> |
---|
29 | <g:if test="${event!=null}"> |
---|
30 | <% if( parameter.type==dbnp.studycapturing.ProtocolParameterType.FLOAT ) { value= event.parameterFloatValues[parameter.name] } %> |
---|
31 | <% if( parameter.type==dbnp.studycapturing.ProtocolParameterType.STRING ) { value= event.parameterStringValues[parameter.name] } %> |
---|
32 | <% if( parameter.type==dbnp.studycapturing.ProtocolParameterType.INTEGER) { value= event.parameterIntegerValues[parameter.name] } %> |
---|
33 | </g:if> |
---|
34 | <g:textField name="parameterValue.${parameter.id}" value="${value}" /> |
---|
35 | </g:else> |
---|
36 | </td> |
---|
37 | |
---|
38 | </tr> |
---|
39 | |
---|
40 | </g:each> |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | |
---|
47 | <% showSample=true %> |
---|
48 | <tr class="prop"> |
---|
49 | <td valign="top" class="name"> |
---|
50 | <label for="endTime"><g:message code="event.endTime.label" default="This is a sampling event" /></label> |
---|
51 | </td> |
---|
52 | <td valign="top" class="name"> |
---|
53 | <g:checkBox name="isSamplingEvent" value="${false}" /> |
---|
54 | </td> |
---|
55 | </tr> |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | |
---|
Note: See
TracBrowser
for help on using the repository browser.