2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2016 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
28 {if $context neq 'membership'}
29 <table class="form-layout-compressed">
31 {if $softCreditTotals.amount}
32 <th class="contriTotalLeft">{ts}Total Soft Credits{/ts} - {$softCreditTotals.amount|crmMoney:$softCreditTotals.currency}</th>
33 <th class="right" width="10px"> </th>
34 <th class="right contriTotalRight"> {ts}Avg Soft Credits{/ts} - {$softCreditTotals.avg|crmMoney:$softCreditTotals.currency}</th>
36 {if $softCreditTotals.cancelAmount}
37 <th class="right contriTotalRight"> {ts}Total Cancelled Soft Credits{/ts} - {$softCreditTotals.cancelAmount|crmMoney:$softCreditTotals.currency}</th>
43 <table class="crm-softcredit-selector crm-ajax-table">
46 <th data-data="contributor_name">{ts}Contributor{/ts}</th>
47 <th data-data="amount">{ts}Amount{/ts}</th>
48 <th data-data="sct_label">{ts}Type{/ts}</th>
49 <th data-data="financial_type">{ts}Financial Type{/ts}</th>
50 <th data-data="receive_date" class="sorting_desc">{ts}Received{/ts}</th>
51 <th data-data="contribution_status">{ts}Status{/ts}</th>
52 <th data-data="pcp_title">{ts}Personal Campaign Page?{/ts}</th>
53 <th data-data="links" data-orderable="false"> </th>
60 {if !empty($membership_id) && $context eq 'membership'}
61 {assign var="entityID" value=$membership_id}
65 <script type="text/javascript">
67 CRM.$('table.crm-softcredit-selector').data({
69 "url": {/literal}'{crmURL p="civicrm/ajax/softcontributionlist" h=0 q="snippet=4&cid=`$contactId`&context=`$context`&entityID=`$entityID`&isTest=`$isTest`"}'{literal},