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

Last change on this file since 342 was 342, checked in by duh, 14 years ago
  • restyled wizard tabs
  • made info and todo boxes only appear in development, not in production and test
  • Property svn:keywords set to Date Rev Author
File size: 3.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: 342 $
13 * $Author: duh $
14 * $Date: 2010-04-14 13:38:39 +0000 (wo, 14 apr 2010) $
15 */
16%>
17<wizard:pageContent>
18        <span class="info">
19                <span class="title">Describe all unique event types that occur in your study</span>
20                These unique events are, for example, treatments, challenges and sampling events. Every event description
21                should be unique. If your study, for example, samples both blood as well as tissue on one or more subjects,
22                then create two sample descriptions. One for 'sampling blood', and one for 'sampling tissue'.
23        </span>
24
25        <wizard:textFieldElement name="name" description="Name" error="name" value="${values?.name}">
26                The name of the event description you are creating
27        </wizard:textFieldElement>
28        <wizard:textFieldElement name="description" description="Description" error="description" value="${values?.description}">
29                A short description summarizing your event description
30        </wizard:textFieldElement>
31        <wizard:protocolElement name="protocol" description="Protocol" error="protocol" value="${values?.protocol}" >
32                Select the protocol for this event description
33        </wizard:protocolElement>
34        <wizard:checkBoxElement name="isSamplingEvent" description="Sampling event" error="isSamplingEvent" value="${values?.isSamplingEvent}">
35                Is this a sampling event description?
36        </wizard:checkBoxElement>
37        <wizard:buttonElement name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()"/>
38<g:if test="${eventDescriptions}">
39        <div class="table">
40                <div class="header">
41                        <div class="firstColumn">#</div>
42                        <div class="firstColumn"></div>
43                        <div class="column">name</div>
44                        <div class="column">description</div>
45                        <div class="column">protocol</div>
46                        <div class="column">sampling event</div>
47                </div>
48        <g:each var="eventDescription" status="i" in="${eventDescriptions}">
49                <div class="row">
50                        <div class="firstColumn">${i+1}</div>
51                        <div class="firstColumn">
52                                <wizard:ajaxButton name="delete" src="../images/icons/famfamfam/delete.png" alt="delete this event" class="famfamfam" value="-" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" before="\$(\'input[name=do]\').val(${i});" afterSuccess="onWizardPage()" />
53                        </div>
54                        <div class="column"><g:textField name="eventDescription_${i}_name" value="${eventDescription.name}" size="12" maxlength="12" /></div>
55                        <div class="column"><g:textField name="eventDescription_${i}_description" value="${eventDescription.description}" size="12" maxlength="12" /></div>
56                        <div class="column"><wizard:protocolSelect name="eventDescription_${i}_protocol" value="${eventDescription.protocol}" /></div>
57                        <div class="column"><g:checkBox name="eventDescription_${i}_isSamplingEvent" value="${eventDescription.isSamplingEvent}" /></div>
58                </div>
59        </g:each>
60        </div>
61</g:if>
62
63<g:if env="development">
64<span class="info">
65        <span class="todo">TODO</span>
66        <ul>
67                <li>parameter values should still be asked and implemented</li>
68        </ul>
69</span>
70
71<span class="info">
72        <span class="known">Known issues</span>
73        <ul>
74                <li>no protocol selection available yet</li>
75        </ul>
76</span>
77</g:if>
78
79</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.