Project

General

Profile

Paste
Download (1.28 KB) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / webform / templates / webform-submission-navigation.tpl.php @ 389fb945

1
<?php
2

    
3
/**
4
 * @file
5
 * Customize the navigation shown when editing or viewing submissions.
6
 *
7
 * Available variables:
8
 * - $node: The node object for this webform.
9
 * - $mode: Either "form" or "display". May be other modes provided by other
10
 *          modules, such as "print" or "pdf".
11
 * - $submission: The contents of the webform submission.
12
 * - $previous: The previous submission ID.
13
 * - $next: The next submission ID.
14
 * - $previous_url: The URL of the previous submission.
15
 * - $next_url: The URL of the next submission.
16
 */
17
?>
18
<div class="webform-submission-navigation">
19
  <?php if ($previous): ?>
20
    <?php print l(t('Previous submission'), $previous_url, array('attributes' => array('class' => array('webform-submission-previous')), 'query' => ($mode == 'form' ? array('destination' => $previous_url) : NULL))); ?>
21
  <?php else: ?>
22
    <span class="webform-submission-previous"><?php print t('Previous submission'); ?></span>
23
  <?php endif; ?>
24

    
25
  <?php if ($next): ?>
26
    <?php print l(t('Next submission'), $next_url, array('attributes' => array('class' => array('webform-submission-next')), 'query' => ($mode == 'form' ? array('destination' => $next_url) : NULL))); ?>
27
  <?php else: ?>
28
    <span class="webform-submission-next"><?php print t('Next submission'); ?></span>
29
  <?php endif; ?>
30
</div>