{* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {crmRegion name="billing-block"}
{if $paymentFields|@count && (!$form.$expressButtonName || $paymentProcessor.payment_processor_type EQ 'PayPal')}
{$paymentTypeLabel} {crmRegion name="billing-block-pre"} {/crmRegion}
{foreach from=$paymentFields item=paymentField}
{$form.$paymentField.label}
{$form.$paymentField.html} {if $paymentField == 'cvv2'}{* @todo move to form assignment*} {/if} {if $paymentField == 'credit_card_type'}
{/if}
{/foreach}
{if $billingDetailsFields|@count} {if $profileAddressFields} {/if}
{ts}Billing Name and Address{/ts}
{foreach from=$billingDetailsFields item=billingField}
{$form.$billingField.label}
{if $form.$billingField.type == 'text'}
{$form.$billingField.html}
{else}
{$form.$billingField.html|crmAddClass:big}
{/if}
{/foreach}
{/if} {/if}
{if $profileAddressFields} {/literal} {/if} {/crmRegion} {crmRegion name="billing-block-post"} {* Payment processors sometimes need to append something to the end of the billing block. We create a region for clarity - the plan is to move to assigning this through the payment processor to this region *} {/crmRegion}