You are here

webform-submission-information.tpl.php in Webform 6.3

Customize the header information shown when editing or viewing submissions.

Available variables:

  • $node: The node object for this webform.
  • $mode: Either "form" or "display". May be other modes provided by other modules, such as "print" or "pdf".
  • $submission: The contents of the webform submission.
  • $account: The user that submitted the form.

File

templates/webform-submission-information.tpl.php
View source
<?php

/**
 * @file
 * Customize the header information shown when editing or viewing submissions.
 *
 * Available variables:
 * - $node: The node object for this webform.
 * - $mode: Either "form" or "display". May be other modes provided by other
 *          modules, such as "print" or "pdf".
 * - $submission: The contents of the webform submission.
 * - $account: The user that submitted the form.
 */
?>
<fieldset class="webform-submission-info clear-block">
  <legend><?php

print t('Submission information');
?></legend>
  <?php

print theme('user_picture', $account);
?>
  <div class="webform-submission-info-text">
    <div><?php

print t('Form: !form', array(
  '!form' => l($node->title, 'node/' . $node->nid),
));
?></div>
    <div><?php

print t('Submitted by !name', array(
  '!name' => theme('username', $account),
));
?></div>
    <div><?php

print format_date($submission->submitted, 'large');
?></div>
    <div><?php

print $submission->remote_addr;
?></div>
  </div>
</fieldset>