root/trunk/grails-app/views/wizard/pages/_confirmation.gsp @ 1037

Revision 1037, 4.5 KB (checked in by j.a.m.wesbeek@…, 3 years ago)

- fixed issue #153, improved the confirmation page (removed dummy content and added real data)

  • Property svn:keywords set to Author Date Rev
Line 
1<%
2/**
3 * Confirmation page
4 *
5 * @author  Jeroen Wesbeek
6 * @since   20100225
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">You are almost there...</span>
20        You are almost done creating your study. Below you will find a summary of the study you have just defined.
21        If everything
22        is well, click 'next' to permanently save the study you have created, or click 'previous' if you need to modify parts
23        of your study.
24</span>
25
26<div id="accordion">
27        <h3><a href="#">General overview</a></h3>
28        <div>
29                <p>
30                You are about to create a study containing ${(study.subjects) ? study.subjects.size() : 0} subjects,
31                ${(study.events) ? study.events.size() : 0} events and ${(study.samplingEvents) ? study.samplingEvents.size(): 0} sampling events grouped into
32                ${(study.eventGroups) ? study.eventGroups.size() : 0} event groups. The study is results in
33                ${(study.samples) ? study.samples.size() : 0} samples analyzed using ${(study.assays) ? study.assays.size() : 0} assays.
34                </p>
35        </div>
36        <h3><a href="#">Study</a></h3>
37        <div>
38                <p>
39                  <ul>
40                <g:each var="field" in="${study.giveFields()}">
41                        <g:if test="${study.getFieldValue(field.name)}"><li>${field.name} - ${study.getFieldValue(field.name)}</li></g:if>
42                </g:each>
43                  </ul>
44                </p>
45                Not right? Click <wizard:ajaxButton name="toStudy" value="here" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /> to go back to the study page and make corrections.
46        </div>
47        <h3><a href="#">Subjects</a></h3>
48        <div>
49                <g:each var="subject" in="${study.subjects}">
50                        <p><b>${subject}</b></p>
51                        <ul>
52                        <g:each var="field" in="${subject.giveFields()}">
53                                <g:if test="${subject.getFieldValue(field.name)}"><li>${field.name} - ${subject.getFieldValue(field.name)}</li></g:if> 
54                        </g:each>
55                        </ul>
56                </g:each>
57
58                Not right? Click <wizard:ajaxButton name="toSubjects" value="here" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /> to go back to the subjects page and make corrections.
59        </div>
60        <h3><a href="#">Events</a></h3>
61        <div>
62                <g:each var="template" in="${study.giveAllEventTemplates()}">
63                        <p><b>${template}</b></p>
64                        <ul>
65                        <g:each var="event" in="${study.giveEventsForTemplate(template)}">
66                                <li>
67                                        <i><g:if test="${(event.getClass() == 'SamplingEvent')}">Sampling </g:if>Event</i>
68                                        <ul>
69                                <g:each var="field" in="${event.giveFields()}">
70                                                <li>${field} - ${event.getFieldValue(field.name)}</li>
71                                </g:each>
72                                        </ul>
73                                </li>
74                        </g:each>
75                        </ul>
76                </g:each>
77
78                Not right? Click <wizard:ajaxButton name="toEvents" value="here" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /> to go back to the events page and make corrections.
79        </div>
80        <h3><a href="#">Samples</a></h3>
81        <div>
82                <g:each var="sample" in="${study.samples}">
83                        <p><b>${sample}</b></p>
84                        <ul>
85                        <g:each var="field" in="${sample.giveFields()}">
86                                <g:if test="${sample.getFieldValue(field.name)}"><li>${field.name} - ${sample.getFieldValue(field.name)}</li></g:if>
87                        </g:each>
88                        </ul>
89                </g:each>
90
91                Not right? Click <wizard:ajaxButton name="toSamples" value="here" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /> to go back to the subjects page and make corrections.
92        </div>
93        <h3><a href="#">Assays</a></h3>
94        <div>
95                <g:each var="sample" in="${study.assays}">
96                        <p><b>${assay}</b></p>
97                        <ul>
98                        <g:each var="field" in="${assay.giveFields()}">
99                                <g:if test="${assay.getFieldValue(field.name)}"><li>${field.name} - ${assay.getFieldValue(field.name)}</li></g:if>
100                        </g:each>
101                        </ul>
102                </g:each>
103
104                Not right? Click <wizard:ajaxButton name="toAssays" value="here" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /> to go back to the subjects page and make corrections.
105        </div>
106</div>
107
108<g:if env="development">
109<span class="info">
110        <span class="todo">TODO</span>
111        <ul>
112                <li>this page is not complete yet, finish it to summerize the study you are about to store in the database</li>
113        </ul>
114</span>
115</g:if>
116
117</wizard:pageContent>
Note: See TracBrowser for help on using the browser.