source: trunk/grails-app/views/wizard/pages/_events.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 * Events page
4 *
5 * @author  Jeroen Wesbeek
6 * @since   20100212
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:selectElement name="eventDescription" description="Event Description" error="eventDescription" from="${eventDescriptions}" value="${eventDescription}">
19                The event description for this event
20        </wizard:selectElement>
21        <wizard:timeElement name="startTime" description="Start Time" error="startTime" value="${startTime}">
22                The start time of the study
23        </wizard:timeElement>
24        <wizard:timeElement name="endTime" description="End time" error="endTimee" value="${endTime}">
25                The end time of the study
26        </wizard:timeElement>
27        <wizard:buttonElement name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()"/>
28<g:if test="${events}">
29        <div class="table">
30                <div class="header">
31                        <div class="firstColumn">#</div>
32                        <div class="column">eventDescription</div>
33                        <div class="column">startTime</div>
34                        <div class="column">endTime</div>
35                        <div class="column">duration</div>
36                        <g:if test="${eventGroups}"><g:each var="eventGroup" status="i" in="${eventGroups}">
37                        <div class="column"><g:textField name="eventGroup_${i}_name" value="${eventGroup.name}" /></div>
38                        </g:each></g:if>
39                        <div class="column"><wizard:ajaxButton name="addEventGroup" value="+" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" /></div>
40                </div>
41        <g:each var="event" status="i" in="${events}">
42                <div class="row">
43                        <div class="firstColumn">${i+1}</div>
44                        <div class="column">${event.eventDescription}</div>
45                        <div class="column"><g:formatDate format="dd/MM/yyyy hh:mm" date="${event.startTime}" /></div>
46                        <div class="column"><g:formatDate format="dd/MM/yyyy hh:mm" date="${event.endTime}" /></div>
47                        <div class="column">${event.getShortDuration()}</div>
48                        <g:if test="${eventGroups}"><g:each var="eventGroup" status="j" in="${eventGroups}">
49                        <div class="column"><input type="checkbox" name="event_${i}_group_${j}"/></div>
50                        </g:each></g:if>
51                        <div class="column"></div>
52                </div>
53        </g:each>
54        </div>
55</g:if>
56</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.