{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {* this template is used for renewing memberships for a contact *} {if $cdType } {include file="CRM/Custom/Form/CustomData.tpl"} {else} {if $membershipMode == 'test' } {assign var=registerMode value="TEST"} {elseif $membershipMode == 'live'} {assign var=registerMode value="LIVE"} {/if} {if !$email}

{ts}You will not be able to send an automatic email receipt for this Renew Membership because there is no email address recorded for this contact. If you want a receipt to be sent when this Membership is recorded, click Cancel and then click Edit from the Summary tab to add an email address before Renewal the Membership.{/ts}

{/if} {if $membershipMode}
{ts 1=$displayName 2=$registerMode}Use this form to Renew Membership Record on behalf of %1. A %2 transaction will be submitted using the selected payment processor.{/ts}
{/if} {if $action eq 32768} {if $cancelAutoRenew}

{ts 1=$cancelAutoRenew}This membership is set to renew automatically {if $renewalDate}on {$renewalDate|crmDate}{/if}. You will need to cancel the auto-renew option if you want to modify the Membership Type, End Date or Membership Status. Click here if you want to cancel the automatic renewal option.{/ts}

{/if} {/if}
{ts}Renewing will add the normal membership period to the End Date of the previous period for members whose status is Current or Grace. For Expired memberships, renewing will create a membership period commencing from the 'Date Renewal Entered'. This date can be adjusted including being set to the day after the previous End Date - if continuous membership is required.{/ts}
{include file="CRM/common/formButtons.tpl" location="top"}
{if $membershipMode} {if !empty($form.auto_renew)} {/if} {/if} {if $accessContribution and ! $membershipMode} {else} {/if}
{$form.payment_processor_id.label} {$form.payment_processor_id.html}
{ts}Membership Organization and Type{/ts} {$orgName}  -  {$memType} {if $member_is_test} {ts}(test){/ts}{/if}   {ts}change membership type{/ts}
{$form.membership_type_id.label} {$form.membership_type_id.html} {if $member_is_test} {ts}(test){/ts}{/if}
{ts}Select Membership Organization and then Membership Type.{/ts}
{ts}Membership Status{/ts}  {$membershipStatus}
{ts}Status of this membership.{/ts}
{ts}Membership End Date{/ts}  {$endDate}
{$form.renewal_date.label} {include file="CRM/common/jcalendar.tpl" elementName=renewal_date}
{$form.auto_renew.label} {help id="id-auto_renew" file="CRM/Member/Form/Membership.hlp" action=$action} {$form.auto_renew.html}
{$form.financial_type_id.label} {$form.financial_type_id.html}
{ts}Select the appropriate financial type for this payment.{/ts}
{$form.record_contribution.label} {$form.record_contribution.html}
{ts}Check this box to enter payment information. You will also be able to generate a customized receipt.{/ts}
{ts}Renewal Payment and Receipt{/ts} {if $context neq 'standalone'} {/if}
{ts}Renewal extends membership end date by one membership period{/ts}   {ts}change{/ts}
{$form.num_terms.label} {$form.num_terms.html|crmAddClass:two} {ts}membership periods{/ts}
{ts}Extend the membership end date by this many membership periods. Make sure the appropriate corresponding fee is entered below.{/ts}
{$form.contribution_contact.label} {$form.contribution_contact.html}  {help id="id-contribution_contact"}
 
{$form.soft_credit_type_id.label} {$form.soft_credit_type_id.html}
{$form.soft_credit_contact_id.label} {$form.soft_credit_contact_id.html}
{$form.financial_type_id.label} {$form.financial_type_id.html}
{ts}Select the appropriate financial type for this payment.{/ts}
{$form.total_amount.label} {$form.total_amount.html}
{ts}Membership payment amount. A contribution record will be created for this amount.{/ts}
{$form.receive_date.label} {include file="CRM/common/jcalendar.tpl" elementName=receive_date}
{$form.payment_instrument_id.label}* {$form.payment_instrument_id.html} {help id="payment_instrument_id" file="CRM/Contribute/Page/Tab.hlp"}
{$form.check_number.label} {$form.check_number.html|crmAddClass:six}
{$form.trxn_id.label} {$form.trxn_id.html}
{$form.contribution_status_id.label} {$form.contribution_status_id.html}
{$form.total_amount.label} {$form.total_amount.html}
{ts}Membership payment amount. A contribution record will be created for this amount.{/ts}
{if $membershipMode} {if $context neq 'standalone'}
{$form.contribution_contact.label} {$form.contribution_contact.html}  {help id="id-contribution_contact"}
 
{$form.soft_credit_type_id.label} {$form.soft_credit_type_id.html}
{$form.soft_credit_contact_id.label} {$form.soft_credit_contact_id.html}
{/if}
{include file='CRM/Core/BillingBlock.tpl'} {/if} {if $email and $outBound_option != 2}
{$form.send_receipt.label} {$form.send_receipt.html}
{ts 1=$email}Automatically email a membership confirmation and receipt to %1?{/ts}
{$form.from_email_address.label} {$form.from_email_address.html}
{$form.receipt_text_renewal.label} {ts}Enter a message you want included at the beginning of the emailed receipt. EXAMPLE: 'Thanks for supporting our organization with your membership.'{/ts}
{$form.receipt_text_renewal.html|crmAddClass:huge}
{/if}
{*include custom data js file*} {include file="CRM/common/customData.tpl"}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{if $accessContribution and ! $membershipMode} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="record_contribution" trigger_value ="" target_element_id ="recordContribution" target_element_type ="table-row" field_type ="radio" invert = 0 } {/if} {if $email and $outBound_option != 2} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="send_receipt" trigger_value ="" target_element_id ="notice" target_element_type ="table-row" field_type ="radio" invert = 0 } {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="send_receipt" trigger_value ="" target_element_id ="fromEmail" target_element_type ="table-row" field_type ="radio" invert = 0 } {/if} {if !$membershipMode} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="payment_instrument_id" trigger_value = '4' target_element_id ="checkNumber" target_element_type ="table-row" field_type ="select" invert = 0 } {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="send_receipt" trigger_value ="" target_element_id ="fromEmail" target_element_type ="table-row" field_type ="radio" invert = 0 } {/if} {literal} {/literal} {/if}{* closing of custom data if *}