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

Last change on this file since 959 was 959, checked in by j.a.m.wesbeek@…, 11 years ago
  • set keyword expansion
  • Property svn:keywords set to Author Date Rev
File size: 1.6 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: 959 $
12 * $Author: j.a.m.wesbeek@umail.leidenuniv.nl $
13 * $Date: 2010-10-20 19:13:14 +0000 (wo, 20 okt 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
32function refreshWebFlow() {
33        <wizard:ajaxSubmitJs form="#wizardForm" name="refresh" url="[controller:'wizard',action:'pages']" update="[success:'wizardPage',failure:'wizardError']" afterSuccess="onWizardPage()" class="prevnext" />
34}
35</script>
Note: See TracBrowser for help on using the repository browser.