Merge pull request #11951 from mydropwizard/open-flash-chart-markup
[civicrm-core.git] / templates / CRM / Contribute / Page / ContributionSoft.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
fee14197 3 | CiviCRM version 5 |
6a488035 4 +--------------------------------------------------------------------+
8c9251b3 5 | Copyright CiviCRM LLC (c) 2004-2018 |
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} &ndash; {$softCreditTotals.amount|crmMoney:$softCreditTotals.currency}</th>
91ef9be0 33 <th class="right" width="10px"> &nbsp; </th>
4c030d33 34 <th class="right contriTotalRight"> &nbsp; {ts}Avg Soft Credits{/ts} &ndash; {$softCreditTotals.avg|crmMoney:$softCreditTotals.currency}</th>
879fda37 35 {/if}
36 {if $softCreditTotals.cancelAmount}
4c030d33 37 <th class="right contriTotalRight"> &nbsp; {ts}Total Cancelled Soft Credits{/ts} &ndash; {$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">&nbsp;</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}