From: Kurund Jalmi Date: Thu, 2 May 2013 06:24:08 +0000 (-0700) Subject: whitespace fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3bd06df9c78f4bec6750c02bebcdfc8e9fc07ae0;p=civicrm-core.git whitespace fixes --- diff --git a/templates/CRM/Contribute/Form/ContributionView.tpl b/templates/CRM/Contribute/Form/ContributionView.tpl index 34a0ea099d..4b218284a8 100644 --- a/templates/CRM/Contribute/Form/ContributionView.tpl +++ b/templates/CRM/Contribute/Form/ContributionView.tpl @@ -25,264 +25,290 @@ *}

{ts}View Contribution{/ts}

+ + + + + + + + + + {if $lineItem} - - + + + {else} - - + + - {if $lineItem} - - - - - {else} + {/if} + {if $non_deductible_amount} - - + + - {/if} - {if $non_deductible_amount} - - - - {/if} {if $fee_amount} - - - - + + + + {/if} {if $net_amount} - - - - + + + + {/if} - - + + - {if $to_financial_account } + {if $to_financial_account } + + + + + {/if} - - - - {/if} - - - + {if $cancel_date} - - - - - {if $cancel_reason} - - - - - {/if} + + + + + {if $cancel_reason} + + + + + {/if} {/if} - - + + {if $payment_instrument eq 'Check'|ts} - - - - + + + + {/if} - - + + {if $campaign} - + - - + + {/if} {if $contribution_page_title} - - - - - {/if} + + + + + {/if} {if $receipt_date} - - - - + + + + {/if} {foreach from=$note item="rec"} {if $rec } - - - + + + + {/if} {/foreach} {if $trxn_id} - - - - + + + + {/if} {if $invoice_id} - - - - + + + + {/if} {if $honor_display} - - - - + + + + {/if} {if $thankyou_date} - - - - + + + + {/if}
{ts}From{/ts}{$displayName}
{ts}Financial Type{/ts}{$financial_type}{if $is_test} {ts}(test){/ts} {/if}
{ts}From{/ts}{$displayName}{ts}Contribution Amount{/ts}{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"} + {if $contribution_recur_id} + {ts}Recurring Contribution{/ts} +
+ {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s) + {/if} +
{ts}Financial Type{/ts}{$financial_type}{if $is_test} {ts}(test){/ts} {/if}{ts}Total Amount{/ts}{$total_amount|crmMoney:$currency}  + {if $contribution_recur_id} + {ts}Recurring Contribution{/ts} +
+ {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s) + {/if} +
{ts}Contribution Amount{/ts}{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"} - {if $contribution_recur_id} - {ts}Recurring Contribution{/ts}
- {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s) - {/if}
{ts}Total Amount{/ts}{$total_amount|crmMoney:$currency}  - {if $contribution_recur_id} - {ts}Recurring Contribution{/ts}
- {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s) - {/if} -
{ts}Non-deductible Amount{/ts}{$non_deductible_amount|crmMoney:$currency}
{ts}Non-deductible Amount{/ts}{$non_deductible_amount|crmMoney:$currency}
{ts}Fee Amount{/ts}{$fee_amount|crmMoney:$currency}
{ts}Fee Amount{/ts}{$fee_amount|crmMoney:$currency}
{ts}Net Amount{/ts}{$net_amount|crmMoney:$currency}
{ts}Net Amount{/ts}{$net_amount|crmMoney:$currency}
{ts}Received{/ts}{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}{ts}Received{/ts}{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}
{ts}Received Into{/ts}{$to_financial_account}
{ts}Received Into{/ts}{$to_financial_account}
{ts}Contribution Status{/ts}{$contribution_status} + {ts}Contribution Status{/ts}{$contribution_status} {if $contribution_status_id eq 2} {if $is_pay_later}: {ts}Pay Later{/ts} {else} : {ts}Incomplete Transaction{/ts} {/if}{/if}
{ts}Cancelled / Refunded Date{/ts}{$cancel_date|crmDate}
{ts}Cancellation / Refund Reason{/ts}{$cancel_reason}
{ts}Cancelled / Refunded Date{/ts}{$cancel_date|crmDate}
{ts}Cancellation / Refund Reason{/ts}{$cancel_reason}
{ts}Paid By{/ts}{$payment_instrument}{ts}Paid By{/ts}{$payment_instrument}
{ts}Check Number{/ts}{$check_number}
{ts}Check Number{/ts}{$check_number}
{ts}Source{/ts}{$source}{ts}Source{/ts}{$source}
{ts}Campaign{/ts}{$campaign}
{$campaign}
{ts}Online Contribution Page{/ts}{$contribution_page_title}
{ts}Online Contribution Page{/ts}{$contribution_page_title}
{ts}Receipt Sent{/ts}{$receipt_date|crmDate}
{ts}Receipt Sent{/ts}{$receipt_date|crmDate}
{ts}Note{/ts}{$rec}
{ts}Note{/ts}{$rec}
{ts}Transaction ID{/ts}{$trxn_id}
{ts}Transaction ID{/ts}{$trxn_id}
{ts}Invoice ID{/ts}{$invoice_id} 
{ts}Invoice ID{/ts}{$invoice_id} 
{$honor_type}{$honor_display} 
{$honor_type}{$honor_display} 
{ts}Thank-you Sent{/ts}{$thankyou_date|crmDate}
{ts}Thank-you Sent{/ts}{$thankyou_date|crmDate}
- {if $softContributions and !$pcp_id} {* We show soft credit name with PCP section if contribution is linked to a PCP. *} -
-
- {ts}Soft Credit{/ts} -
-
- - {foreach from=$softContributions item="softCont"} - {if $softCont } - - - - - - - {/if} - {/foreach} -
{ts}Soft Credit To{/ts}{$softCont.softCreditToName}{ts}Amount{/ts}{$softCont.soft_credit_amount|crmMoney:$currency}
-
+{if $softContributions and !$pcp_id} {* We show soft credit name with PCP section if contribution is linked to a PCP. *} +
+
+ {ts}Soft Credit{/ts}
- {/if} +
+ + {foreach from=$softContributions item="softCont"} + {if $softCont } + + + + + + + {/if} + {/foreach} +
{ts}Soft Credit To{/ts}{$softCont.softCreditToName}{ts}Amount{/ts}{$softCont.soft_credit_amount|crmMoney:$currency}
+
+
+{/if} {if $premium} -
-
- {ts}Premium Information{/ts} -
-
- - - - -
{ts}Premium{/ts}{$premium}{ts}Option{/ts}{$option}{ts}Fulfilled{/ts}{$fulfilled|truncate:10:''|crmDate}
-
+
+
+ {ts}Premium Information{/ts} +
+
+ + + + + + + +
{ts}Premium{/ts}{$premium}{ts}Option{/ts}{$option}{ts}Fulfilled{/ts}{$fulfilled|truncate:10:''|crmDate}
+
{/if} {if $pcp_id} -
-
- {ts}Personal Campaign Page Contribution Information{/ts} -
-
- - - - - - - - - - - {if $pcp_roll_nickname} - - {/if} - {if $pcp_personal_note} - - {/if} -
{ts}Personal Campaign Page{/ts}{$pcp}
- {ts}Contribution was made through this personal campaign page.{/ts} -
{ts}Soft Credit To{/ts}{$softCreditToName}
{ts}In Public Honor Roll?{/ts}{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
{ts}Honor Roll Name{/ts}{$pcp_roll_nickname}
{ts}Personal Note{/ts}{$pcp_personal_note}
-
+
+
+ {ts}Personal Campaign Page Contribution Information{/ts}
+
+ + + + + + + + + + + + + + {if $pcp_roll_nickname} + + + + + {/if} + {if $pcp_personal_note} + + + + + {/if} +
{ts}Personal Campaign Page{/ts}{$pcp}
+ {ts}Contribution was made through this personal campaign page.{/ts} +
{ts}Soft Credit To{/ts}{$softCreditToName}
{ts}In Public Honor Roll?{/ts}{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
{ts}Honor Roll Name{/ts}{$pcp_roll_nickname}
{ts}Personal Note{/ts}{$pcp_personal_note}
+
+
{/if} {include file="CRM/Custom/Page/CustomDataView.tpl"} {if $billing_address} -
{ts}Billing Address{/ts} -
- {$billing_address|nl2br} -
-
+
+ {ts}Billing Address{/ts} +
+ {$billing_address|nl2br} +
+
{/if}
- {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')} - {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"} - {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} - {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"} - {/if} -
{ts}Edit{/ts}
+ {if call_user_func(array('CRM_Core_Permission','check'), 'edit contributions')} + {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"} + {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} + {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"} {/if} - {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')} - {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"} - {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} - {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"} - {/if} -
{ts}Delete{/ts}
+
{ts}Edit{/ts}
+ {/if} + {if call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute')} + {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"} + {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} + {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"} {/if} - {include file="CRM/common/formButtons.tpl" location="bottom"} +
{ts}Delete{/ts}
+ {/if} + {include file="CRM/common/formButtons.tpl" location="bottom"}