source: trunk/grails-app/views/wizard/pages/_unassigned_samplingEvent_warning.gsp @ 953

Last change on this file since 953 was 953, checked in by j.a.m.wesbeek@…, 11 years ago
File size: 1.3 KB
Line 
1<%
2/**
3 * Warning page for browsing back from samples page
4 *
5 * @author  Jeroen Wesbeek
6 * @since   20101020
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        <script type="text/javascript">
19                var seconds = 15;
20                $(document).ready(function() {
21                        redirect();
22                        //handleDots();
23                        //goToSave();
24                });
25
26                function redirect() {
27                        var s = $('#seconds');
28                        if (s[0]) {
29                                s.html( seconds );
30
31                                if ( seconds < 1) {
32                                        goToNext();
33                                } else {
34                                        seconds--;
35                                        setTimeout("redirect();", 1000);
36                                }
37                        }
38                }
39
40                function goToNext() {
41                        <wizard:ajaxSubmitJs name="next" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
42                }
43        </script>
44
45        <span class="info">
46                <span class="warning">Warning!</span>
47                In the previous page one (or more) sampling events were not assigned to a group which means no samples
48                will be generated for these sampling events. If this is in error, please go back to the previous
49                page and make sure to properly group the sampling events. If, however, this is how you intended it, press
50                next to continue, or wait <span id="seconds"></span> seconds...
51        </span>
52
53</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.