source: trunk/grails-app/views/common/_eventDescriptionTableRows.gsp @ 118

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

Committed as part of Event editing.

File size: 2.1 KB
Line 
1
2<!-- Rows for a two column table -->
3
4
5
6
7        <tr class="prop">
8            <td valign="top" class="name">
9              <label for="protocol"><g:message code="eventDescription.protocol.label" default="Protocol" /></label>
10            </td>
11            <td valign="top" class="value ${hasErrors(bean: description, field: 'protocol', 'errors')}">
12                <g:select name="protocol.id" id="protocol" from="${dbnp.studycapturing.Protocol.list()}" optionKey="id" optionValue="${{it.id}}" value="${description?.protocol?.id}" onchange="${remoteFunction(action:'showMyProtocol', controller:'eventDescription', id:description.id, update:'preview', onComplete:'Effect.Appear(preview)', params:'\'protocol=\' + this.value' )}" />
13            </td>
14        </tr>
15
16
17        <tr class="prop">
18            <td valign="top" class="name">
19              <label for="name"><g:message code="eventDescription.name.label" default="Name" /></label>
20            </td>
21            <td valign="top" class="value ${hasErrors(bean: description, field: 'name', 'errors')}">
22                <g:textField name="name" value="${description?.name}" />
23            </td>
24        </tr>
25
26
27
28
29        <tr class="prop">
30            <td valign="top" class="name">
31              <label for="description"><g:message code="eventDescription.description.label" default="Description" /></label>
32            </td>
33            <td valign="top" class="value ${hasErrors(bean: description, field: 'description', 'errors')}">
34                <g:textArea name="description" value="${description?.description}" cols="40" rows="6" />
35            </td>
36        </tr>
37
38
39        <!-- changes here on select -->
40        <tbody id="preview">
41            <g:each in="${description.protocol.values}">
42
43                 <tr class="prop">
44                 <td valign="top" class="name">
45                 <label for="protocolInstance"><g:message code="${it.protocolParameter.name}" /></label>
46                 </td>
47
48                 <td valign="top" class="name">
49                 <g:textField name="protocolInstance.${it.id}" value="${it.value}" />
50                 </td>
51
52                 </tr>
53            </g:each>
54        </tbody>
Note: See TracBrowser for help on using the repository browser.