From 9806f96d0d949af842e64d3f74393aa987d3797d Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Tue, 20 Feb 2018 19:35:42 +0000 Subject: [PATCH] CRM-21784 Clean up contribution tab templates --- templates/CRM/Contribute/Form/Selector.tpl | 5 ++--- .../CRM/Contribute/Page/ContributionRecur.tpl | 6 ++---- .../Contribute/Page/ContributionTotals.tpl | 2 +- templates/CRM/Contribute/Page/Tab.tpl | 21 ++++++++----------- 4 files changed, 14 insertions(+), 20 deletions(-) diff --git a/templates/CRM/Contribute/Form/Selector.tpl b/templates/CRM/Contribute/Form/Selector.tpl index 57b961e702..3ccd8315e2 100644 --- a/templates/CRM/Contribute/Form/Selector.tpl +++ b/templates/CRM/Contribute/Form/Selector.tpl @@ -26,6 +26,7 @@ {include file="CRM/common/pager.tpl" location="top"} {strip} +
@@ -45,9 +46,6 @@ -

- {ts}Click arrow to view payment details.{/ts} -

{counter start=0 skip=1 print=false} {foreach from=$rows item=row} @@ -107,6 +105,7 @@ {/foreach}
+
{/strip} {include file="CRM/common/pager.tpl" location="bottom"} diff --git a/templates/CRM/Contribute/Page/ContributionRecur.tpl b/templates/CRM/Contribute/Page/ContributionRecur.tpl index bce7514e2e..6821532484 100644 --- a/templates/CRM/Contribute/Page/ContributionRecur.tpl +++ b/templates/CRM/Contribute/Page/ContributionRecur.tpl @@ -72,7 +72,7 @@ {ts}Start Date{/ts} {ts}Installments{/ts} {ts}Status{/ts} -   + {foreach from=$recurRows item=row} @@ -83,9 +83,7 @@ {$row.start_date|crmDate} {$row.installments} {$row.contribution_status} - - {$row.action|replace:'xx':$row.recurId} - + {$row.action|replace:'xx':$row.recurId} {/foreach} diff --git a/templates/CRM/Contribute/Page/ContributionTotals.tpl b/templates/CRM/Contribute/Page/ContributionTotals.tpl index 20936373ec..888d06c025 100644 --- a/templates/CRM/Contribute/Page/ContributionTotals.tpl +++ b/templates/CRM/Contribute/Page/ContributionTotals.tpl @@ -24,7 +24,7 @@ +--------------------------------------------------------------------+ *} {*Table displays contribution totals for a contact or search result-set *} -{if $annual.count OR $contributionSummary} +{if $annual.count OR $contributionSummary.total.count OR $contributionSummary.cancel.count OR $contributionSummary.soft_credit.count} {if $annual.count} diff --git a/templates/CRM/Contribute/Page/Tab.tpl b/templates/CRM/Contribute/Page/Tab.tpl index 68690af559..cd38ffa634 100644 --- a/templates/CRM/Contribute/Page/Tab.tpl +++ b/templates/CRM/Contribute/Page/Tab.tpl @@ -28,7 +28,7 @@ {elseif $action eq 4} {include file="CRM/Contribute/Form/ContributionView.tpl"} {else} -
+
{if $permission EQ 'edit'} {capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution"}{/capture} @@ -52,13 +52,12 @@ {/if}

-
+
{/if} - {if $rows} {include file="CRM/Contribute/Page/ContributionTotals.tpl" mode="view"} -

+
{include file="CRM/Contribute/Form/Selector.tpl"} {else}
@@ -68,19 +67,17 @@ {/if} {if $recur} -
-
-
+
+

{ts}Recurring Contributions{/ts}

{include file="CRM/Contribute/Page/ContributionRecur.tpl"} +
{/if} {if $softCredit} -
-
-
{ts}Soft credits{/ts} {help id="id-soft_credit"}
-
-
+
+

{ts}Soft credits{/ts} {help id="id-soft_credit"}

{include file="CRM/Contribute/Page/ContributionSoft.tpl"} +
{/if}
{/if} -- 2.25.1