Mercurial > hg > rr-repo
diff sites/all/modules/webform/templates/webform-submission-information.tpl.php @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sites/all/modules/webform/templates/webform-submission-information.tpl.php Wed Aug 21 18:51:11 2013 +0100 @@ -0,0 +1,24 @@ +<?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 format_date($submission->submitted, 'long'); ?></div> + <div><?php print $submission->remote_addr; ?></div> + </div> +</fieldset>