source: trunk/grails-app/views/wizard/common/_navigation.gsp @ 1212

Last change on this file since 1212 was 1212, checked in by work@…, 11 years ago
  • resolving issue # 209, study title to title tags
  • Property svn:keywords set to Author Date Rev
File size: 1.7 KB
Line 
1<%
2/**
3 * Wizard navigational buttons
4 *
5 * @author  Jeroen Wesbeek
6 * @since   20100113
7 * @package wizard
8 * @see     dbnp.studycapturing.WizardController
9 *
10 * Revision information:
11 * $Rev: 1212 $
12 * $Author: work@osx.eu $
13 * $Date: 2010-11-29 15:48:27 +0000 (ma, 29 nov 2010) $
14 */
15%>
16    <div class="navigation">
17      <g:if test="${page>1 && page<pages.size}"><wizard:ajaxButton name="previous" value="&laquo; prev" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /></g:if>
18          <g:if test="${cancel}">
19                [ <wizard:ajaxButton name="cancel" value="cancel" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /> ]
20          </g:if>
21          <g:if test="${quickSave && page<pages.size}">
22                  [ <wizard:ajaxButton name="quickSave" value="quick save" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /> ]           
23          </g:if>
24      <g:elseif test="${page>1 && page<pages.size}">
25                  |               
26          </g:elseif>
27          <g:if test="${page<pages.size}"><wizard:ajaxButton name="next" value="next &raquo;" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" /></g:if>
28    </div>
29
30<script type="text/javascript">
31        // scriptable webflow action
32        function refreshWebFlow() {
33                <wizard:ajaxSubmitJs form="#wizardForm" name="refresh" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" />
34        }
35
36        // set page title to study title
37        var title = "${study?.title}";
38        document.title = (title) ? title : 'Create study wizard';
39</script>
Note: See TracBrowser for help on using the repository browser.