dev/core#534 Re-instate pay-now button
[civicrm-core.git] / templates / CRM / Contribute / Page / ContributionSoft.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
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}
28 {if $context neq 'membership'}
29 <table class="form-layout-compressed">
30 {include file="CRM/Contribute/Page/ContributionSoftTotals.tpl"}
31 </table>
32 <p></p>
33 {/if}
34 <table class="crm-softcredit-selector crm-ajax-table">
35 <thead>
36 <tr>
37 <th data-data="contributor_name">{ts}Contributor{/ts}</th>
38 <th data-data="amount">{ts}Amount{/ts}</th>
39 <th data-data="sct_label">{ts}Type{/ts}</th>
40 <th data-data="financial_type">{ts}Financial Type{/ts}</th>
41 <th data-data="receive_date" class="sorting_desc">{ts}Received{/ts}</th>
42 <th data-data="contribution_status">{ts}Status{/ts}</th>
43 <th data-data="pcp_title">{ts}Personal Campaign Page?{/ts}</th>
44 <th data-data="links" data-orderable="false">&nbsp;</th>
45 </tr>
46 </thead>
47 </table>
48 {/strip}
49 {/if}
50
51 {if !empty($membership_id) && $context eq 'membership'}
52 {assign var="entityID" value=$membership_id}
53 {/if}
54
55 {literal}
56 <script type="text/javascript">
57 (function($) {
58 CRM.$('table.crm-softcredit-selector').data({
59 "ajax": {
60 "url": {/literal}'{crmURL p="civicrm/ajax/softcontributionlist" h=0 q="snippet=4&cid=`$contactId`&context=`$context`&entityID=`$entityID`&isTest=`$isTest`"}'{literal},
61 }
62 });
63 })(CRM.$);
64 </script>
65 {/literal}