Merge pull request #21525 from eileenmcnaughton/cont_dep
[civicrm-core.git] / templates / CRM / Contribute / Page / ContributionTotals.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10{*Table displays contribution totals for a contact or search result-set *}
fac14ac5 11{if !empty($annual.count) OR $contributionSummary.total.count OR $contributionSummary.cancel.count OR $contributionSummary.soft_credit.count}
6a488035 12 <table class="form-layout-compressed">
31037a42 13
fac14ac5 14 {if !empty($annual.count)}
6a488035 15 <tr>
4c030d33
AH
16 <th class="contriTotalLeft right">{ts}Current Year-to-Date{/ts} &ndash; {$annual.amount}</th>
17 <th class="right"> &nbsp; {ts}# Completed Contributions{/ts} &ndash; {$annual.count}</th>
18 <th class="right contriTotalRight"> &nbsp; {ts}Avg Amount{/ts} &ndash; {$annual.avg}</th>
6a488035
TO
19 {if $contributionSummary.cancel.amount}
20 <td>&nbsp;</td>
21 {/if}
22 </tr>
23 {/if}
24
25 {if $contributionSummary }
26 <tr>
27 {if $contributionSummary.total.amount}
bfac1665 28 <th class="contriTotalLeft right">{ts}Total{/ts} &ndash; {$contributionSummary.total.amount}</th>
29 <th class="right"> &nbsp; {ts}# Completed{/ts} &ndash; {$contributionSummary.total.count}</th>
30 <th class="right contriTotalRight"> &nbsp; {ts}Avg{/ts} &ndash; {$contributionSummary.total.avg}</th>
6a488035 31 {/if}
fac14ac5 32 {if isset($contributionSummary.cancel.amount)}
2137c2f9 33 <th class="disabled right contriTotalRight"> &nbsp; {ts}Cancelled/Refunded{/ts} &ndash; {$contributionSummary.cancel.amount}</th>
6a488035 34 {/if}
31037a42 35 </tr>
fac14ac5 36 {if isset($contributionSummary.soft_credit.count)}
d9c8c3c8 37 {include file="CRM/Contribute/Page/ContributionSoftTotals.tpl" softCreditTotals=$contributionSummary.soft_credit}
d4e2b978 38 {/if}
6a488035 39 {/if}
31037a42 40
6a488035 41 </table>
232624b1 42{/if}