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

Last change on this file since 217 was 217, checked in by duh, 14 years ago
  • adding support for event deletion
File size: 3.5 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        <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        <span class="info">
26                <span class="title">Note!</span>
27                Currently 'classification' display all terms because there is no way to machine interpret
28                the different values. So please -for now- make sure to pick the Ontology reference applicable for
29                events until this particular challenge is solved.
30        </span>
31
32        <wizard:termElement name="classification" description="Classification" error="classification" value="${values?.classification}">
33                The ontology reference for this particular type of event
34        </wizard:termElement>
35        <wizard:textFieldElement name="name" description="Name" error="name" value="${values?.name}">
36                The name of the event description you are creating
37        </wizard:textFieldElement>
38        <wizard:textFieldElement name="description" description="Description" error="description" value="${values?.description}">
39                A short description summarizing your event description
40        </wizard:textFieldElement>
41        <wizard:checkBoxElement name="isSamplingEvent" description="Sampling event" error="isSamplingEvent" value="${values?.isSamplingEvent}">
42                Is this a sampling event description?
43        </wizard:checkBoxElement>
44        <wizard:buttonElement name="add" value="Add" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()"/>
45<g:if test="${eventDescriptions}">
46        <div class="table">
47                <div class="header">
48                        <div class="firstColumn">#</div>
49                        <div class="firstColumn"></div>
50                        <div class="column">name</div>
51                        <div class="column">description</div>
52                        <div class="column">classification</div>
53                        <div class="column">sampling event</div>
54                        <div class="column">protocol</div>
55                </div>
56        <g:each var="eventDescription" status="i" in="${eventDescriptions}">
57                <div class="row">
58                        <div class="firstColumn">${i+1}</div>
59                        <div class="firstColumn">
60                                <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()" />
61                        </div>
62                        <div class="column"><g:textField name="eventDescription_${i}_name" value="${eventDescription.name}" size="12" maxlength="12" /></div>
63                        <div class="column"><g:textField name="eventDescription_${i}_description" value="${eventDescription.description}" size="12" maxlength="12" /></div>
64                        <div class="column"><wizard:termSelect name="eventDescription_${i}_classification" value="${eventDescription.classification}" /></div>
65                        <div class="column"><g:checkBox name="eventDescription_${i}_isSamplingEvent" value="${eventDescription.isSamplingEvent}" /></div>
66                        <div class="column"><g:if test="${eventDescription.protocol}">${eventDescription.protocol}</g:if><g:else>-</g:else></div>
67                </div>
68        </g:each>
69        </div>
70</g:if>
71</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.