{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* this template is used for renewing memberships for a contact *} {if $membershipMode == 'test' } {assign var=registerMode value="TEST"} {elseif $membershipMode == 'live'} {assign var=registerMode value="LIVE"} {/if} {if !$email}
{icon icon="fa-info-circle"}{/icon}

{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}
{icon icon="fa-info-circle"}{/icon}

{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 $accessContribution and ! $membershipMode}
{$form.contact_id.label} {$form.contact_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|crmDate}
{$form.renewal_date.label} {$form.renewal_date.html}
{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.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} {include file="CRM/Member/Form/MembershipCommon.tpl"}
{if $emailExists and $outBound_option != 2}
{$form.send_receipt.label} {$form.send_receipt.html}
{ts 1=$emailExists}Automatically email a membership confirmation and receipt to %1?{/ts}
{$form.from_email_address.label} {$form.from_email_address.html} {help id="id-from_email" file="CRM/Contact/Form/Task/Email.hlp" isAdmin=$isAdmin}
{$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 file="CRM/common/customDataBlock.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 ="send_receipt" trigger_value ="" target_element_id ="fromEmail" target_element_type ="table-row" field_type ="radio" invert = 0 } {/if} {literal} {/literal}