Display total cancelled soft credits in summary
[civicrm-core.git] / templates / CRM / Contribute / Page / ContributionSoft.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
2c4c49ca 3 | CiviCRM version 4.7 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
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>
31 <th class="contriTotalLeft">{ts}Total Soft Credits{/ts} - {$softCreditTotals.amount|crmMoney:$softCreditTotals.currency}</th>
32 <th class="right" width="10px"> &nbsp; </th>
33 <th class="right contriTotalRight"> &nbsp; {ts}Avg Soft Credits{/ts} - {$softCreditTotals.avg|crmMoney:$softCreditTotals.currency}</th>
971cdafb 34
35 {if $softCreditTotals.cancelAmount}
36 <th class="right contriTotalRight"> &nbsp; {ts}Total Cancelled Soft Credits{/ts} - {$softCreditTotals.cancelAmount|crmMoney:$softCreditTotals.currency}</th>
37 {/if}
38
91ef9be0 39 </tr>
40 </table>
41 <p></p>
42{/if}
6a488035 43
16850d34 44<table class="selector row-highlight">
6a488035 45 <tr class="columnheader">
7f7fa13a 46 <th scope="col">{ts}Contributor{/ts}</th>
6a488035
TO
47 <th scope="col">{ts}Amount{/ts}</th>
48 <th scope="col">{ts}Type{/ts}</th>
51fa20cb 49 <th scope="col">{ts}Financial Type{/ts}</th>
6a488035
TO
50 <th scope="col" class="sorting_desc">{ts}Received{/ts}</th>
51 <th scope="col">{ts}Status{/ts}</th>
52 <th scope="col">{ts}Personal Campaign Page?{/ts}</th>
53 <th></th>
54 </tr>
55 {foreach from=$softCreditRows item=row}
56 <tr id='rowid{$row.id}' class="{cycle values="odd-row,even-row"}">
57 <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.contributor_id`"}" id="view_contact" title="{ts}View contributor contact record{/ts}">{$row.contributor_name}</a></td>
58 <td>{$row.amount|crmMoney:$row.currency}</td>
51fa20cb 59 <td>{$row.sct_label}</td>
6a488035
TO
60 <td>{$row.financial_type}</td>
61 <td>{$row.receive_date|truncate:10:''|crmDate}</td>
62 <td>{$row.contribution_status}</td>
63 <td>{if $row.pcp_id}<a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$row.pcp_id`"}" title="{ts}View Personal Campaign Page{/ts}">{$row.pcp_title}</a>{else}{ts}(n/a){/ts}{/if}</td>
64 <td><a href="{crmURL p="civicrm/contact/view/contribution" q="reset=1&id=`$row.contribution_id`&cid=`$contactId`&action=view&context=contribution&selectedChild=contribute"}" title="{ts}View related contribution{/ts}">{ts}View{/ts}</a></td>
65 </tr>
66 {/foreach}
67</table>
68{/strip}
69{/if}