Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
2a73d3b0 | 5 | | Copyright CiviCRM LLC (c) 2004-2017 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
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. | | |
12 | | | | |
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. | | |
17 | | | | |
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 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {if $softCreditRows} | |
27 | {strip} | |
91ef9be0 | 28 | {if $context neq 'membership'} |
29 | <table class="form-layout-compressed"> | |
30 | <tr> | |
879fda37 | 31 | {if $softCreditTotals.amount} |
4c030d33 | 32 | <th class="contriTotalLeft">{ts}Total Soft Credits{/ts} – {$softCreditTotals.amount|crmMoney:$softCreditTotals.currency}</th> |
91ef9be0 | 33 | <th class="right" width="10px"> </th> |
4c030d33 | 34 | <th class="right contriTotalRight"> {ts}Avg Soft Credits{/ts} – {$softCreditTotals.avg|crmMoney:$softCreditTotals.currency}</th> |
879fda37 | 35 | {/if} |
36 | {if $softCreditTotals.cancelAmount} | |
4c030d33 | 37 | <th class="right contriTotalRight"> {ts}Total Cancelled Soft Credits{/ts} – {$softCreditTotals.cancelAmount|crmMoney:$softCreditTotals.currency}</th> |
879fda37 | 38 | {/if} |
91ef9be0 | 39 | </tr> |
40 | </table> | |
41 | <p></p> | |
42 | {/if} | |
dfe9afbf | 43 | <table class="crm-softcredit-selector crm-ajax-table"> |
44 | <thead> | |
45 | <tr> | |
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> | |
6a488035 | 54 | </tr> |
dfe9afbf | 55 | </thead> |
6a488035 TO |
56 | </table> |
57 | {/strip} | |
58 | {/if} | |
dfe9afbf | 59 | |
60 | {if !empty($membership_id) && $context eq 'membership'} | |
61 | {assign var="entityID" value=$membership_id} | |
62 | {/if} | |
63 | ||
64 | {literal} | |
65 | <script type="text/javascript"> | |
66 | (function($) { | |
67 | CRM.$('table.crm-softcredit-selector').data({ | |
68 | "ajax": { | |
69 | "url": {/literal}'{crmURL p="civicrm/ajax/softcontributionlist" h=0 q="snippet=4&cid=`$contactId`&context=`$context`&entityID=`$entityID`&isTest=`$isTest`"}'{literal}, | |
70 | } | |
71 | }); | |
72 | })(CRM.$); | |
73 | </script> | |
74 | {/literal} |