From cfea64a9af9a2d0523e07512ec5fe25db80edf3e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 3 Dec 2015 13:52:33 -0500 Subject: [PATCH] CRM-17620 - Improve contribution results table layout --- CRM/Contribute/Selector/Search.php | 8 -------- templates/CRM/Contribute/Form/Selector.tpl | 21 ++++++++------------- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/CRM/Contribute/Selector/Search.php b/CRM/Contribute/Selector/Search.php index 98fb7b10b3..d7c007b8af 100644 --- a/CRM/Contribute/Selector/Search.php +++ b/CRM/Contribute/Selector/Search.php @@ -526,10 +526,8 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C ), ) ); - $pre = array(); if (!$this->_single) { $pre = array( - array('desc' => ts('Contact Type')), array( 'name' => ts('Name'), 'sort' => 'sort_name', @@ -537,12 +535,6 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C ), ); } - $pre[] = array( - array( - 'desc' => '', - array(), - ), - ); self::$_columnHeaders = array_merge($pre, self::$_columnHeaders); if ($this->_includeSoftCredits) { self::$_columnHeaders = array_merge( diff --git a/templates/CRM/Contribute/Form/Selector.tpl b/templates/CRM/Contribute/Form/Selector.tpl index b2994bb0fc..6afb58f55c 100644 --- a/templates/CRM/Contribute/Form/Selector.tpl +++ b/templates/CRM/Contribute/Form/Selector.tpl @@ -62,21 +62,16 @@ {$form.$cbName.html} {/if} - {$row.contact_type} - {$row.sort_name} + {$row.contact_type}   {$row.sort_name} {/if} - - + + +   + {if !$row.contribution_soft_credit_amount}{$row.total_amount|crmMoney:$row.currency}{/if} + + {if $row.amount_level }
({$row.amount_level}){/if} + {if $row.contribution_recur_id}
{ts}(Recurring Contribution){/ts}{/if} - {if $row.contribution_soft_credit_amount} -   - {else} - {$row.total_amount|crmMoney:$row.currency} {if $row.amount_level }
({$row.amount_level}){/if} - {if $row.contribution_recur_id} -
{ts}(Recurring Contribution){/ts} - {/if} - - {/if} {if $softCreditColumns} {$row.contribution_soft_credit_amount|crmMoney:$row.currency} {/if} -- 2.25.1