Displays name of the person paying in unlogged payments.
authorStéphane Jacob <sj@m4x.org>
Mon, 19 Sep 2011 22:19:15 +0000 (00:19 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 19 Sep 2011 22:19:15 +0000 (00:19 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/payment.php
templates/payment/payment.tpl

index 1613259..66c56b2 100644 (file)
@@ -162,6 +162,7 @@ class PaymentModule extends PLModule
             } else {
                 $pay->init($val, $meth);
                 $pay->prepareform($user);
+                $page->assign('full_name', $user->fullName(true));
                 $page->assign('sex', $user->isFemale());
             }
         } elseif (S::logged()) {
index 07c849b..d926a91 100644 (file)
   <tr>
     <th colspan="2">Paiement via {$meth->text}</th>
   </tr>
+{if t($public)}
+  <tr>
+    <td><b>Nom</b></td>
+    <td>{$full_name}</td>
+  </tr>
+{/if}
   <tr>
     <td><b>Transaction</b></td>
     <td>{$pay->text}</td>