source: trunk/grails-app/views/wizard/pages/_eventDescriptions.gsp @ 209

Last change on this file since 209 was 209, checked in by duh, 12 years ago
  • added events, eventDescriptions, etc
File size: 2.3 KB
Line 
1<%
2/**
3 * Event Descriptions page
4 *
5 * @author  Jeroen Wesbeek
6 * @since   20100118
7 * @package wizard
8 * @see     dbnp.studycapturing.WizardTagLib::previousNext
9 * @see     dbnp.studycapturing.WizardController
10 *
11 * Revision information:
12 * $Rev$
13 * $Author$
14 * $Date$
15 */
16%>
17<wizard:pageContent>
18        <wizard:termElement name="classification" description="Classification" error="classification" value="${classification}">
19                The classification
20        </wizard:termElement>
21        <wizard:textFieldElement name="name" description="Name" error="name" value="${name}">
22                The name of the event description you are creating
23        </wizard:textFieldElement>
24        <wizard:textFieldElement name="description" description="Description" error="description" value="${description}">
25                A short description summarizing your event description
26        </wizard:textFieldElement>
27        <wizard:checkBoxElement name="isSamplingEvent" description="Sampling event" error="isSamplingEvent" value="${isSamplingEvent}">
28                Is this a sampling event description?
29        </wizard:checkBoxElement>
30        <wizard:buttonElement name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()"/>
31<g:if test="${eventDescriptions}">
32        <div class="table">
33                <div class="header">
34                        <div class="firstColumn">#</div>
35                        <div class="column">name</div>
36                        <div class="column">description</div>
37                        <div class="column">classification</div>
38                        <div class="column">sampling event</div>
39                        <div class="column">protocol</div>
40                </div>
41        <g:each var="eventDescription" status="i" in="${eventDescriptions}">
42                <div class="row">
43                        <div class="firstColumn">${i+1}</div>
44                        <div class="column"><g:textField name="eventDescription_${i}_name" value="${eventDescription.name}" size="12" maxlength="12" /></div>
45                        <div class="column"><g:textField name="eventDescription_${i}_description" value="${eventDescription.description}" size="12" maxlength="12" /></div>
46                        <div class="column"><wizard:termSelect name="eventDescription_${i}_classification" value="${eventDescription.classification}" /></div>
47                        <div class="column"><g:checkBox name="eventDescription_${i}_isSamplingEvent" value="${eventDescription.isSamplingEvent}" /></div>
48                        <div class="column"><g:if test="${eventDescription.protocol}">${eventDescription.protocol}</g:if><g:else>-</g:else></div>
49                </div>
50        </g:each>
51        </div>
52</g:if>
53</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.