From dc3560bce542c1f141bea6ad49d654591f15ab58 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 22 Oct 2014 09:34:57 +1300 Subject: [PATCH] whitespace only --- templates/CRM/Core/BillingBlock.tpl | 495 ++++++++++++++-------------- 1 file changed, 249 insertions(+), 246 deletions(-) diff --git a/templates/CRM/Core/BillingBlock.tpl b/templates/CRM/Core/BillingBlock.tpl index ac15eaa723..794f329a84 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -24,7 +24,7 @@ +--------------------------------------------------------------------+ *} {crmRegion name="billing-block"} -{* Add 'required' marker to billing fields in this template for front-end / online contribution and event registration forms only. *} + {* Add 'required' marker to billing fields in this template for front-end / online contribution and event registration forms only. *} {if $context EQ 'front-end'} {assign var=reqMark value=' *'} {else} @@ -32,270 +32,273 @@ {/if} {if $form.credit_card_number or $form.bank_account_number} -
-
- - {if $paymentProcessor.payment_type & 2} - {ts}Direct Debit Information{/ts} - {else} - {ts}Credit Card Information{/ts} - {/if} - - {if $paymentProcessor.billing_mode & 2 and !$hidePayPalExpress } -
-
- {ts}If you have a PayPal account, you can click the PayPal button to continue. Otherwise, fill in the credit card and billing information on this form and click Continue at the bottom of the page.{/ts} -
+
+
+ + {if $paymentProcessor.payment_type & 2} + {ts}Direct Debit Information{/ts} + {else} + {ts}Credit Card Information{/ts} + {/if} + + {if $paymentProcessor.billing_mode & 2 and !$hidePayPalExpress } +
+
+ {ts}If you have a PayPal account, you can click the PayPal button to continue. Otherwise, fill in the credit card and billing information on this form and click + Continue + at the bottom of the page.{/ts} +
+
+
+
+ {$form.$expressButtonName.html} +
Save time. Checkout securely. Pay without sharing your financial information.
+
+
+ {/if} + + {if $paymentProcessor.billing_mode & 1} +
+ {if $paymentProcessor.payment_type & 2} +
+
{$form.account_holder.label}
+
{$form.account_holder.html}
+
+
+ +
+
{$form.bank_identification_number.label}
+
{$form.bank_identification_number.html}
+
+
+
+
{$form.bank_name.label}
+
{$form.bank_name.html}
+
+
+ {else} +
+
{$form.credit_card_type.label} {$reqMark}
+
+ {$form.credit_card_type.html} +
-
-
- {$form.$expressButtonName.html} -
Save time. Checkout securely. Pay without sharing your financial information.
-
+
+
+
+
{$form.credit_card_number.label} {$reqMark}
+
{$form.credit_card_number.html|crmAddClass:creditcard}
+
+
+
+
{$form.cvv2.label} {$reqMark}
+
+ {$form.cvv2.html} +
- {/if} +
+
+
+
{$form.credit_card_exp_date.label} {$reqMark}
+
{$form.credit_card_exp_date.html}
+
+
+ {/if} +
+
+ {else} +
+ {/if} + {/if} + {if $profileAddressFields} + + + {/if} +
+ {ts}Billing Name and Address{/ts} +
+
+
{$form.billing_first_name.label} {$reqMark}
+
{$form.billing_first_name.html}
+
+
+
+
{$form.billing_middle_name.label}
+
{$form.billing_middle_name.html}
+
+
+
+
{$form.billing_last_name.label} {$reqMark}
+
{$form.billing_last_name.html}
+
+
+ {assign var=n value=billing_street_address-$bltID} +
+
{$form.$n.label} {$reqMark}
+
{$form.$n.html}
+
+
+ {assign var=n value=billing_city-$bltID} +
+
{$form.$n.label} {$reqMark}
+
{$form.$n.html}
+
+
+ {assign var=n value=billing_country_id-$bltID} +
+
{$form.$n.label} {$reqMark}
+
{$form.$n.html|crmAddClass:big}
+
+
+ {assign var=n value=billing_state_province_id-$bltID} +
+
{$form.$n.label} {$reqMark}
+
{$form.$n.html|crmAddClass:big}
+
+
+ {assign var=n value=billing_postal_code-$bltID} +
+
{$form.$n.label} {$reqMark}
+
{$form.$n.html}
+
+
+
+
- {if $paymentProcessor.billing_mode & 1} -
- {if $paymentProcessor.payment_type & 2} -
-
{$form.account_holder.label}
-
{$form.account_holder.html}
-
-
- -
-
{$form.bank_identification_number.label}
-
{$form.bank_identification_number.html}
-
-
-
-
{$form.bank_name.label}
-
{$form.bank_name.html}
-
-
- {else} -
-
{$form.credit_card_type.label} {$reqMark}
-
- {$form.credit_card_type.html} -
-
-
-
-
-
{$form.credit_card_number.label} {$reqMark}
-
{$form.credit_card_number.html|crmAddClass:creditcard}
-
-
-
-
{$form.cvv2.label} {$reqMark}
-
- {$form.cvv2.html} - -
-
-
-
-
{$form.credit_card_exp_date.label} {$reqMark}
-
{$form.credit_card_exp_date.html}
-
-
- {/if} -
- - {else} - - {/if} -{/if} - {if $profileAddressFields} - - {/if} -
- {ts}Billing Name and Address{/ts} -
-
-
{$form.billing_first_name.label} {$reqMark}
-
{$form.billing_first_name.html}
-
-
-
-
{$form.billing_middle_name.label}
-
{$form.billing_middle_name.html}
-
-
-
-
{$form.billing_last_name.label} {$reqMark}
-
{$form.billing_last_name.html}
-
-
- {assign var=n value=billing_street_address-$bltID} -
-
{$form.$n.label} {$reqMark}
-
{$form.$n.html}
-
-
- {assign var=n value=billing_city-$bltID} -
-
{$form.$n.label} {$reqMark}
-
{$form.$n.html}
-
-
- {assign var=n value=billing_country_id-$bltID} -
-
{$form.$n.label} {$reqMark}
-
{$form.$n.html|crmAddClass:big}
-
-
- {assign var=n value=billing_state_province_id-$bltID} -
-
{$form.$n.label} {$reqMark}
-
{$form.$n.html|crmAddClass:big}
-
-
- {assign var=n value=billing_postal_code-$bltID} -
-
{$form.$n.label} {$reqMark}
-
{$form.$n.html}
-
-
-
-
+
+{if $profileAddressFields} + + // remove spaces, dashes from credit card number + $('#credit_card_number').change(function () { + var cc = $('#credit_card_number').val() + .replace(/ /g, '') + .replace(/-/g, ''); + $('#credit_card_number').val(cc); + }); + }); + {/literal} + {/if} {/crmRegion} -- 2.25.1