source: trunk/grails-app/views/wizard/pages/_confirmation.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: 2.6 KB
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: 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">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 ${subjects.size()} subjects,
31                ${eventDescriptions.size()} event descriptions and ${events.size()} events grouped into
32                ${eventGroups.size()} event groups.
33                </p>
34        </div>
35        <h3><a href="#">Study</a></h3>
36        <div>
37                <p>
38                  <ul>
39                <li>title: ${study?.title}</li>
40                <li>description: ${study?.description}</li>
41                <li>research question: ${study?.researchQuestion}</li>
42                <li>code: ${study?.code}</li>
43                <li>EC code: ${study?.ecCode}</li>
44                <g:each var="field" in="${study.template.fields}">
45                        <li>${field.name} - ${study.getFieldValue(field.name)}</li>
46                </g:each>
47                  </ul>
48                </p>
49                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.
50        </div>
51        <h3><a href="#">Subjects</a></h3>
52        <div>
53                <p>
54                ${subjects}
55                </p>
56                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.
57        </div>
58        <h3><a href="#">Events</a></h3>
59        <div>
60                <p>
61                ${subjects}
62                </p>
63                <ul>
64                        <li>List item one</li>
65                        <li>List item two</li>
66                        <li>List item three</li>
67                </ul>
68                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.
69        </div>
70</div>
71
72<g:if env="development">
73<span class="info">
74        <span class="todo">TODO</span>
75        <ul>
76                <li>this page is not complete yet, finish it to summerize the study you are about to store in the database</li>
77        </ul>
78</span>
79</g:if>
80
81</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.