Bypass grumpy mode for contribution totals
[civicrm-core.git] / templates / CRM / Contribute / Page / ContributionTotals.tpl
... / ...
CommitLineData
1{*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9*}
10{*Table displays contribution totals for a contact or search result-set *}
11{if !empty($annual.count) OR $contributionSummary.total.count OR $contributionSummary.cancel.count OR $contributionSummary.soft_credit.count}
12 <table class="form-layout-compressed">
13
14 {if !empty($annual.count)}
15 <tr>
16 <th class="contriTotalLeft right">{ts}Current Year-to-Date{/ts} &ndash; {$annual.amount|smarty:nodefaults}</th>
17 <th class="right"> &nbsp; {ts}# Completed Contributions{/ts} &ndash; {$annual.count|smarty:nodefaults}</th>
18 <th class="right contriTotalRight"> &nbsp; {ts}Avg Amount{/ts} &ndash; {$annual.avg|smarty:nodefaults}</th>
19 {if $contributionSummary.cancel.amount|smarty:nodefaults}
20 <td>&nbsp;</td>
21 {/if}
22 </tr>
23 {/if}
24
25 {if $contributionSummary }
26 <tr>
27 {if $contributionSummary.total.amount}
28 <th class="contriTotalLeft right">{ts}Total{/ts} &ndash; {$contributionSummary.total.amount|smarty:nodefaults}</th>
29 <th class="right"> &nbsp; {ts}# Completed{/ts} &ndash; {$contributionSummary.total.count|smarty:nodefaults}</th>
30 <th class="right contriTotalRight"> &nbsp; {ts}Avg{/ts} &ndash; {$contributionSummary.total.avg|smarty:nodefaults}</th>
31 {/if}
32 {if $contributionSummary.cancel.amount|smarty:nodefaults}
33 <th class="disabled right contriTotalRight"> &nbsp; {ts}Cancelled/Refunded{/ts} &ndash; {$contributionSummary.cancel.amount|smarty:nodefaults}</th>
34 {/if}
35 </tr>
36 {if $contributionSummary.soft_credit.count|smarty:nodefaults}
37 {include file="CRM/Contribute/Page/ContributionSoftTotals.tpl" softCreditTotals=$contributionSummary.soft_credit|smarty:nodefaults}
38 {/if}
39 {/if}
40
41 </table>
42{/if}