diff --git a/templates/CRM/Contribute/Form/Contribution/Confirm.tpl b/templates/CRM/Contribute/Form/Contribution/Confirm.tpl index 979ac9f894d8..bb48dddede92 100644 --- a/templates/CRM/Contribute/Form/Contribution/Confirm.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Confirm.tpl @@ -24,261 +24,300 @@ +--------------------------------------------------------------------+ *} {if $action & 1024} - {include file="CRM/Contribute/Form/Contribution/PreviewHeader.tpl"} + {include file="CRM/Contribute/Form/Contribution/PreviewHeader.tpl"} {/if} {include file="CRM/common/TrackingFields.tpl"}
-
-

{ts}Please verify the information below carefully. Click Go Back if you need to make changes.{/ts} - {if $contributeMode EQ 'notify' and ! $is_pay_later} - {ts 1=$paymentProcessor.name 2=$button}Click the %2 button to go to %1, where you will select your payment method and complete the contribution.{/ts} - {elseif ! $is_monetary or $amount LE 0.0 or $is_pay_later} - {ts 1=$button}To complete this transaction, click the %1 button below.{/ts} - {else} - {ts 1=$button}To complete your contribution, click the %1 button below.{/ts} - {/if} -

-
-
- {include file="CRM/common/formButtons.tpl" location="top"} -
- {if $is_pay_later} -
{$pay_later_receipt}
- {/if} +
+

{ts}Please verify the information below carefully. ClickGo Backif you need to make changes.{/ts} + {if $contributeMode EQ 'notify' and ! $is_pay_later} + {ts 1=$paymentProcessor.name 2=$button}Click the + %2 + button to go to %1, where you will select your payment method and complete the contribution.{/ts} + {elseif ! $is_monetary or $amount LE 0.0 or $is_pay_later} + {ts 1=$button}To complete this transaction, click the%1button below.{/ts} + {else} + {ts 1=$button}To complete your contribution, click the%1button below.{/ts} + {/if} +

+
+
+ {include file="CRM/common/formButtons.tpl" location="top"} +
+ {if $is_pay_later} +
{$pay_later_receipt}
+ {/if} - {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="confirmContribution"} + {include file="CRM/Contribute/Form/Contribution/MembershipBlock.tpl" context="confirmContribution"} - {if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $priceSetID and $lineItem ) } + {if $amount GTE 0 OR $minimum_fee GTE 0 OR ( $priceSetID and $lineItem ) }
- {if !$useForMember} + {if !$useForMember}
- {if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem ) }{ts}Contribution Amount{/ts}{else}{ts}Membership Fee{/ts} {/if} + {if !$membershipBlock AND $amount OR ( $priceSetID and $lineItem ) }{ts}Contribution Amount{/ts}{else}{ts}Membership Fee{/ts} {/if}
- {/if} -
- {if !$useForMember} - {if $lineItem and $priceSetID} - {if !$amount}{assign var="amount" value=0}{/if} - {assign var="totalAmount" value=$amount} - {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"} - {elseif $is_separate_payment } - {if $amount AND $minimum_fee} - {$membership_name} {ts}Membership{/ts}: {$minimum_fee|crmMoney}
- {ts}Additional Contribution{/ts}: {$amount|crmMoney}
- -------------------------------------------
- {ts}Total{/ts}: {$amount+$minimum_fee|crmMoney}
- {elseif $amount } - {ts}Amount{/ts}: {$amount|crmMoney} {if $amount_level } – {$amount_level}{/if} - {else} - {$membership_name} {ts}Membership{/ts}: {$minimum_fee|crmMoney} + {/if} +
+ {if !$useForMember} + {if $lineItem and $priceSetID} + {if !$amount}{assign var="amount" value=0}{/if} + {assign var="totalAmount" value=$amount} + {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"} + {elseif $is_separate_payment } + {if $amount AND $minimum_fee} + {$membership_name} {ts}Membership{/ts}: + {$minimum_fee|crmMoney} +
+ {ts}Additional Contribution{/ts}: + {$amount|crmMoney} +
+ ------------------------------------------- +
+ {ts}Total{/ts}: + {$amount+$minimum_fee|crmMoney} +
+ {elseif $amount } + {ts}Amount{/ts}: + {$amount|crmMoney} {if $amount_level } + – {$amount_level}{/if} + {else} + {$membership_name} {ts}Membership{/ts}: + {$minimum_fee|crmMoney} + {/if} + {else} + {if $totalTaxAmount } + {ts 1=$taxTerm}Total %1 Amount{/ts}: + {$totalTaxAmount|crmMoney} +
+ {/if} + {if $amount} + {if $installments}{ts}Installment Amount{/ts}{else}{ts}Total Amount{/ts}{/if}: + {$amount|crmMoney}{if $amount_level } + – {$amount_level}{/if} + {else} + {$membership_name} {ts}Membership{/ts}: + {$minimum_fee|crmMoney} + {/if} + {/if} + {/if} + + {if $is_recur} + {if !empty($auto_renew)} {* Auto-renew membership confirmation *} + {crmRegion name="contribution-confirm-recur-membership"} +
+ + {if $autoRenewOption == 1} + {ts 1=$frequency_interval 2=$frequency_unit}I want this membership to be renewed automatically every %1 %2(s).{/ts} + {elseif $autoRenewOption == 2} + {ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts} {/if} + +

+
+ ({ts}Your initial membership fee will be processed once you complete the confirmation step. You will be able to cancel the auto-renewal option by visiting the web page link that will be included in your receipt.{/ts} + ) +
+ {/crmRegion} + {else} + {crmRegion name="contribution-confirm-recur"} + {if $installments} + {if $frequency_interval > 1} +

+ {ts 1=$frequency_interval 2=$frequency_unit 3=$installments}I want to contribute this amount every %1 %2s for %3 installments.{/ts} +

{else} - {if $totalTaxAmount } - {ts 1=$taxTerm}Total %1 Amount{/ts}: {$totalTaxAmount|crmMoney}
- {/if} - {if $amount} - {if $installments}{ts}Installment Amount{/ts}{else}{ts}Total Amount{/ts}{/if}: {$amount|crmMoney}{if $amount_level } – {$amount_level}{/if} - {else} - {$membership_name} {ts}Membership{/ts}: {$minimum_fee|crmMoney} - {/if} +

+ {ts 1=$frequency_unit 2=$installments}I want to contribute this amount every %1 for %2 installments.{/ts} +

+ {/if} + {else} + {if $frequency_interval > 1} +

+ {ts 1=$frequency_interval 2=$frequency_unit}I want to contribute this amount every %1 %2s.{/ts} +

+ {else} +

{ts 1=$frequency_unit }I want to contribute this amount every %1.{/ts}

{/if} - {/if} - - {if $is_recur} - {if !empty($auto_renew)} {* Auto-renew membership confirmation *} -{crmRegion name="contribution-confirm-recur-membership"} -
- - {if $autoRenewOption == 1} - {ts 1=$frequency_interval 2=$frequency_unit}I want this membership to be renewed automatically every %1 %2(s).{/ts} - {elseif $autoRenewOption == 2} - {ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts} - {/if} -

-
({ts}Your initial membership fee will be processed once you complete the confirmation step. You will be able to cancel the auto-renewal option by visiting the web page link that will be included in your receipt.{/ts})
-{/crmRegion} - {else} -{crmRegion name="contribution-confirm-recur"} - {if $installments} - {if $frequency_interval > 1} -

{ts 1=$frequency_interval 2=$frequency_unit 3=$installments}I want to contribute this amount every %1 %2s for %3 installments.{/ts}

- {else} -

{ts 1=$frequency_unit 2=$installments}I want to contribute this amount every %1 for %2 installments.{/ts}

- {/if} - {else} - {if $frequency_interval > 1} -

{ts 1=$frequency_interval 2=$frequency_unit}I want to contribute this amount every %1 %2s.{/ts}

- {else} -

{ts 1=$frequency_unit }I want to contribute this amount every %1.{/ts}

- {/if} - {/if} -

{ts}Your initial contribution will be processed once you complete the confirmation step. You will be able to cancel the recurring contribution by visiting the web page link that will be included in your receipt.{/ts}

-{/crmRegion} - {/if} {/if} +

{ts}Your initial contribution will be processed once you complete the confirmation step. You will be able to cancel the recurring contribution by visiting the web page link that will be included in your receipt.{/ts}

+ {/crmRegion} + {/if} + {/if} - {if $is_pledge } - {if $pledge_frequency_interval GT 1} -

{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %1 %2s for %3 installments.{/ts}

- {else} -

{ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %2 for %3 installments.{/ts}

- {/if} - {if $is_pay_later} -

{ts 1=$receiptFromEmail 2=$button}Click "%2" below to register your pledge. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}

- {else} -

{ts 1=$receiptFromEmail 2=$button}Your initial pledge payment will be processed when you click "%2" below. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}

- {/if} - {/if} -
+ {if $is_pledge } + {if $pledge_frequency_interval GT 1} +

+ {ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %1 %2s for %3 installments.{/ts} +

+ {else} +

+ {ts 1=$pledge_frequency_interval 2=$pledge_frequency_unit 3=$pledge_installments}I pledge to contribute this amount every %2 for %3 installments.{/ts} +

+ {/if} + {if $is_pay_later} +

{ts 1=$receiptFromEmail 2=$button}Click "%2" below to register your pledge. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}

+ {else} +

{ts 1=$receiptFromEmail 2=$button}Your initial pledge payment will be processed when you click "%2" below. You will be able to modify or cancel future pledge payments at any time by logging in to your account or contacting us at %1.{/ts}

+ {/if} + {/if} +
- {/if} + {/if} - {if $onbehalfProfile && $onbehalfProfile|@count} -
- {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'} -
- {/if} + {if $onbehalfProfile && $onbehalfProfile|@count} +
+ {include file="CRM/UF/Form/Block.tpl" fields=$onbehalfProfile prefix='onbehalf'} +
+ {/if} - {if $honoreeProfileFields && $honoreeProfileFields|@count} -
-
- {$soft_credit_type} -
-
-
- {$honorName}
- {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'} -
-
-
- {/if} + {if $honoreeProfileFields && $honoreeProfileFields|@count} +
+
+ {$soft_credit_type} +
+
+
+ {$honorName}
+ {include file="CRM/UF/Form/Block.tpl" fields=$honoreeProfileFields mode=8 prefix='honor'} +
+
+
+ {/if} - {if $customPre} -
- {include file="CRM/UF/Form/Block.tpl" fields=$customPre} -
- {/if} + {if $customPre} +
+ {include file="CRM/UF/Form/Block.tpl" fields=$customPre} +
+ {/if} - {if $pcpBlock} + {if $pcpBlock}
-
- {ts}Contribution Honor Roll{/ts} -
-
- {if $pcp_display_in_roll} - {ts}List my contribution{/ts} - {if $pcp_is_anonymous} - {ts}anonymously{/ts}. - {else} - {ts}under the name{/ts}: {$pcp_roll_nickname}
- {if $pcp_personal_note} - {ts}With the personal note{/ts}: {$pcp_personal_note} - {else} - {ts}With no personal note{/ts} - {/if} - {/if} +
+ {ts}Contribution Honor Roll{/ts} +
+
+ {if $pcp_display_in_roll} + {ts}List my contribution{/ts} + {if $pcp_is_anonymous} + {ts}anonymously{/ts}. + {else} + {ts}under the name{/ts}: + {$pcp_roll_nickname} +
+ {if $pcp_personal_note} + {ts}With the personal note{/ts}: + {$pcp_personal_note} {else} - {ts}Don't list my contribution in the honor roll.{/ts} + {ts}With no personal note{/ts} {/if} -
-
+ {/if} + {else} + {ts}Don't list my contribution in the honor roll.{/ts} + {/if} +
+
+ {/if} + + {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email } + {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) } + {if $billingName or $address} +
+
+ {ts}Billing Name and Address{/ts} +
+
+
{$billingName}
+
+
+
+
{$address|nl2br}
+
+
+
+ {/if} {/if} + {if $email} +
+
+ {ts}Your Email{/ts} +
+
+
{$email}
+
+
+
+ {/if} + {/if} - {if ( $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) ) or $email } - {if $contributeMode ne 'notify' and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) } - {if $billingName or $address} -
-
- {ts}Billing Name and Address{/ts} -
-
-
{$billingName}
-
+ {* Show credit or debit card section for 'direct' mode, except for PayPal Express (detected because credit card number is empty) *} + {if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )} + {crmRegion name="contribution-confirm-billing-block"} + {if ($credit_card_number or $bank_account_number)} +
+ {if $paymentFieldsetLabel} +
+ {$paymentFieldsetLabel} +
+ {/if} + {if $paymentProcessor.payment_type == 2} +
+ {ts}Account Holder{/ts}: {$account_holder}
+ {ts}Bank Account Number{/ts}: {$bank_account_number}
+ {ts}Bank Identification Number{/ts}: {$bank_identification_number}
+ {ts}Bank Name{/ts}: {$bank_name}
+
+ {if $contributeMode eq 'direct'} +
+
+ {ts}Agreement{/ts}
-
-
{$address|nl2br}
-
+
+ {ts}Your account data will be used to charge your bank account via direct debit. While submitting this form you agree to the charging of your bank account via direct debit.{/ts}
-
- {/if} - {/if} - {if $email} -
-
- {ts}Your Email{/ts} -
-
-
{$email}
-
-
+ {/if} + {else} +
+
{$credit_card_type|escape}
+
{$credit_card_number|escape}
+
{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}
+
+
{/if} +
{/if} + {/crmRegion} + {/if} - {* Show credit or debit card section for 'direct' mode, except for PayPal Express (detected because credit card number is empty) *} - {if $contributeMode eq 'direct' and ! $is_pay_later and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 )} -{crmRegion name="contribution-confirm-billing-block"} - {if ($credit_card_number or $bank_account_number)} -
- {if $paymentFieldsetLabel} -
- {$paymentFieldsetLabel} -
- {/if} - {if $paymentProcessor.payment_type == 2} -
- {ts}Account Holder{/ts}: {$account_holder}
- {ts}Bank Account Number{/ts}: {$bank_account_number}
- {ts}Bank Identification Number{/ts}: {$bank_identification_number}
- {ts}Bank Name{/ts}: {$bank_name}
-
- {if $contributeMode eq 'direct'} -
-
- {ts}Agreement{/ts} -
-
- {ts}Your account data will be used to charge your bank account via direct debit. While submitting this form you agree to the charging of your bank account via direct debit.{/ts} -
-
- {/if} - {else} -
-
{$credit_card_type|escape}
-
{$credit_card_number|escape}
-
{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}
-
-
- {/if} -
- {/if} -{/crmRegion} - {/if} - - {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="confirmContribution"} + {include file="CRM/Contribute/Form/Contribution/PremiumBlock.tpl" context="confirmContribution"} - {if $customPost} -
- {include file="CRM/UF/Form/Block.tpl" fields=$customPost} -
- {/if} + {if $customPost} +
+ {include file="CRM/UF/Form/Block.tpl" fields=$customPost} +
+ {/if} - {if $contributeMode NEQ 'notify' and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) } {* In 'notify mode, contributor is taken to processor payment forms next *} + {if $contributeMode NEQ 'notify' and $is_monetary and ( $amount GT 0 OR $minimum_fee GT 0 ) } {* In 'notify mode, contributor is taken to processor payment forms next *}
-

+

{if $is_pay_later OR $amount LE 0.0} - {ts 1=$button}Your transaction will not be completed until you click the %1 button. Please click the button one time only.{/ts} + {ts 1=$button}Your transaction will not be completed until you click the + %1 + button. Please click the button one time only.{/ts} {else} - {ts 1=$button}Your contribution will not be completed until you click the %1 button. Please click the button one time only.{/ts} + {ts 1=$button}Your contribution will not be completed until you click the + %1 + button. Please click the button one time only.{/ts} {/if} -

+

- {/if} + {/if} -
- {include file="CRM/common/formButtons.tpl" location="bottom"} -
+
+ {include file="CRM/common/formButtons.tpl" location="bottom"} +