source: trunk/grails-app/views/wizard/pages/_events.gsp @ 397

Last change on this file since 397 was 397, checked in by duh, 9 years ago
  • reformatted source code
  • added mega huge big ASCII comments to UNDOCUMMENTED of not properly DOCUMENTED classess... we have agreed many many MANY times that everyone should document their code according to JavaDoc? style... but why does nobody do it, or just keep SLACKING! /annoyed modus
  • Property svn:keywords set to Date Author Rev
File size: 3.4 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: 397 $
13 * $Author: duh $
14 * $Date: 2010-05-07 12:53:11 +0000 (vr, 07 mei 2010) $
15 */
16%>
17<wizard:pageContent>
18        <span class="info">
19                <span class="title">Define all events that occur in your study</span>
20                Bla bla bla we need a good help text here ;)
21        </span>
22
23        <wizard:templateElement name="template" description="Template" value="${event?.template}" entity="${dbnp.studycapturing.Event}" addDummy="true" ajaxOnChange="switchTemplate" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" >
24                The template to use for this study
25        </wizard:templateElement>
26        <g:if test="${event?.template}"><wizard:templateElements entity="${event}" /></g:if>
27        <g:if test="${event?.template}"><wizard:buttonElement name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()"/></g:if>
28
29<g:if test="${events}">
30        <g:each var="eventTemplate" in="${eventTemplates}">
31                <h1>${eventTemplate.getValue().name} template</h1>
32        <div class="table">
33                <div class="header">
34                        <div class="firstColumn">#</div>
35                        <div class="firstColumn"></div>
36                        <wizard:templateColumnHeaders template="${eventTemplate.getValue().template}" class="column"/>
37                        <g:if test="${eventGroups}"><g:each var="eventGroup" status="g" in="${eventGroups}">
38                        <div class="column">
39                                <g:textField name="eventGroup_${g}_name" value="${eventGroup.name}" />
40                                <wizard:ajaxButton name="deleteEventGroup" src="../images/icons/famfamfam/delete.png" alt="delete this eventgroup" class="famfamfam" value="-" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" before="\$(\'input[name=do]\').val(${g});" afterSuccess="onWizardPage()" />
41                        </div>
42                        </g:each></g:if>
43                        <div class="column">
44                                <wizard:ajaxButton name="addEventGroup" src="../images/icons/famfamfam/add.png" alt="add a new eventgroup" class="famfamfam" value="+" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
45                        </div>
46                </div>
47                <g:each var="eventId" in="${eventTemplate.getValue().events}">
48                        <div class="row">
49                                <div class="firstColumn">${eventId + 1}</div>
50                                <div class="firstColumn">
51                                        <wizard:ajaxButton name="delete" src="../images/icons/famfamfam/delete.png" alt="delete this subject" class="famfamfam" value="-" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" before="\$(\'input[name=do]\').val(${eventId});" afterSuccess="onWizardPage()"/>
52                                </div>
53                                <wizard:templateColumns id="${eventId}" entity="${events[ eventId ]}" template="${events[ eventId ].template}" name="event_${eventId}" class="column" />
54                                <g:if test="${eventGroups}"><g:each var="eventGroup" status="j" in="${eventGroups}">
55                                <div class="column">
56                                        <g:if test="${eventGroup.events.find{ it == event} }">
57                                                <input type="checkbox" name="event_${eventId}_group_${j}" checked="checked" />
58                                        </g:if><g:else>
59                                                <input type="checkbox" name="event_${eventId}_group_${j}"/>
60                                        </g:else>
61                                </div>
62                                </g:each></g:if>
63                                <div class="column"></div>
64                        </div>
65                </g:each>
66        </div>
67        <div class="sliderContainer">
68                <div class="slider"></div>
69        </div>
70        </g:each>
71</g:if>
72
73</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.