webform-submission-information.tpl.php in Webform 7.4
Same filename and directory in other branches
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.
1 theme call to webform-submission-information.tpl.php
- webform_submission_page in includes/
webform.submissions.inc - Menu callback; Present a Webform submission page for display or editing.
File
templates/webform-submission-information.tpl.phpView 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 clearfix">
<legend><?php
print t('Submission information');
?></legend>
<?php
print theme('user_picture', array(
'account' => $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', array(
'account' => $account,
)),
));
?></div>
<div><?php
print check_plain(format_date($submission->submitted, webform_variable_get('webform_date_type')));
?></div>
<div><?php
print check_plain($submission->remote_addr);
?></div>
</div>
</fieldset>