Show amount next to soft credit
authorJon goldberg - Linux laptop <jon@palantetech.coop>
Tue, 30 Apr 2013 17:09:33 +0000 (10:09 -0700)
committerJon goldberg - Linux laptop <jon@palantetech.coop>
Tue, 30 Apr 2013 23:32:54 +0000 (16:32 -0700)
templates/CRM/Contribute/Form/ContributionView.tpl

index e1b4f819be0627712729c4e00f30377a2314a2be..2b930414e29e7e519e7a4de6447370803cfc6359 100644 (file)
           <td>{$thankyou_date|crmDate}</td>
       </tr>
   {/if}
+</table>
 
   {if $softCreditToName and !$pcp_id} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
-    <tr>
-      <td class="label">{ts}Soft Credit To{/ts}</td>
-        <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$soft_credit_to`"}" id="view_contact" title="{ts}View contact record{/ts}">{$softCreditToName}</a></td>
-    </tr>
-    {/if}
-</table>
+    <div class="crm-accordion-wrapper ">
+      <div class="crm-accordion-header">
+          {ts}Soft Credit{/ts}
+      </div>
+      <div class="crm-accordion-body">
+        <table class="crm-info-panel">
+          <tr>
+            <td class="label">{ts}Soft Credit To{/ts}</td>
+            <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$soft_credit_to`"}" id="view_contact" title="{ts}View contact record{/ts}">{$softCreditToName}</a></td>
+            <td class="label">{ts}Amount{/ts}</td>
+            <td>{$soft_credit_amount|crmMoney:$currency}</td>
+          </tr>
+        </table>
+      </div>
+    </div>
+  {/if}
 
 {if $premium}
     <div class="crm-accordion-wrapper ">