From b99a793cedd634fd51d8dccaddb6699ff95cc83c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 3 Dec 2015 14:33:42 -0500 Subject: [PATCH] Format and whitespace fixes --- templates/CRM/Contribute/Form/Selector.tpl | 135 +++++++++++---------- 1 file changed, 72 insertions(+), 63 deletions(-) diff --git a/templates/CRM/Contribute/Form/Selector.tpl b/templates/CRM/Contribute/Form/Selector.tpl index 6afb58f55c..7097f28761 100644 --- a/templates/CRM/Contribute/Form/Selector.tpl +++ b/templates/CRM/Contribute/Form/Selector.tpl @@ -26,75 +26,84 @@ {include file="CRM/common/pager.tpl" location="top"} {strip} - - - - {if !$single and $context eq 'Search' } +
+ + + {if !$single and $context eq 'Search' } - {/if} - {assign var="softCreditColumns" value=0} - {foreach from=$columnHeaders item=header} + {/if} + {assign var="softCreditColumns" value=0} + {foreach from=$columnHeaders item=header} - {if $header.name eq "Soft Credit For"} - {assign var='softCreditColumns' value=1} - {/if} - {/foreach} - - - -

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

- {counter start=0 skip=1 print=false} - {foreach from=$rows item=row} - - {if !$single } - {if $context eq 'Search' } - {assign var=cbName value=$row.checkbox} - - {/if} + {if $header.name eq "Soft Credit For"} + {assign var='softCreditColumns' value=1} + {/if} + {/foreach} + + - - {/if} - - {if $softCreditColumns} - - {/if} - - - - - + {if !$single } + {if $context eq 'Search' } + {assign var=cbName value=$row.checkbox} + + {/if} + {/if} - - - {if $softCreditColumns} - - - {/if} - - - {/foreach} + + {if $softCreditColumns} + + {/if} + + + + + + + {if $softCreditColumns} + + + {/if} + + + {/foreach} -
{$form.toggleSelect.html} - {if $header.sort} - {assign var='key' value=$header.sort} - {$sort->_response.$key.link} - {else} - {$header.name} - {/if} + {if $header.sort} + {assign var='key' value=$header.sort} + {$sort->_response.$key.link} + {else} + {$header.name} + {/if}
{$form.$cbName.html}
{$row.contact_type}   {$row.sort_name} - -   - {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} -
{$row.contribution_soft_credit_amount|crmMoney:$row.currency}{$row.financial_type}{$row.contribution_source}{$row.receive_date|crmDate}{$row.thankyou_date|crmDate} - {$row.contribution_status}
- {if $row.cancel_date} - {$row.cancel_date|crmDate} +

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

+ {counter start=0 skip=1 print=false} + {foreach from=$rows item=row} +
{$form.$cbName.html}{$row.contact_type}   {$row.sort_name}{$row.product_name}{$row.contribution_soft_credit_name}{$row.contribution_soft_credit_type}{$row.action|replace:'xx':$row.contribution_id}
+ +   {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} +
+ {$row.contribution_soft_credit_amount|crmMoney:$row.currency} + + {$row.financial_type} + + {$row.contribution_source} + + {$row.receive_date|crmDate} + + {$row.thankyou_date|crmDate} + + {$row.contribution_status}
+ {if $row.cancel_date} + {$row.cancel_date|crmDate} + {/if} +
{$row.product_name} + {$row.contribution_soft_credit_name} + {$row.contribution_soft_credit_type}{$row.action|replace:'xx':$row.contribution_id}
+ {/strip} {include file="CRM/common/pager.tpl" location="bottom"} -- 2.25.1