source: trunk/grails-app/views/wizard/pages/_samples_previous_warning.gsp @ 635

Last change on this file since 635 was 635, checked in by duh, 12 years ago
  • development version of samples page

-- improved handeling of samples
-- added warning page after clicking 'previous' in samples page

  • fixed exceptions in deleting events
  • added debug button to events page to reset revents
  • changed events page to check for at least 1 sampling event instead of just 1 event (you need sampling events in order to have samples and groups later on)
File size: 1.2 KB
Line 
1<%
2/**
3 * Warning page for browsing back from samples page
4 *
5 * @author  Jeroen Wesbeek
6 * @since   20100701
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
19        <script type="text/javascript">
20                var seconds = 8;
21                $(document).ready(function() {
22                        redirect();
23                        //handleDots();
24                        //goToSave();
25                });
26
27                function redirect() {
28                        var s = $('#seconds');
29                        if (s[0]) {
30                                s.html( seconds );
31
32                                if ( seconds < 1) {
33                                        goToPrevious();
34                                } else {
35                                        seconds--;
36                                        setTimeout("redirect();", 1000);
37                                }
38                        }
39                }
40
41                function goToPrevious() {
42                        <wizard:ajaxSubmitJs name="previous" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" />
43                }
44        </script>
45
46        <span class="info">
47                <span class="warning">Warning!</span>
48                Renaming, adding and removing subjects, sample events and / or grouping <i>may</i> result in (some of the) samples to be reset!<br />
49                Continuing to the groups page in <span id="seconds"></span> seconds...
50        </span>
51
52</wizard:pageContent>
Note: See TracBrowser for help on using the repository browser.