{* +--------------------------------------------------------------------+ | 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 adding/editing/deleting memberships for a contact *} {if $isRecur}

{ts}This membership is set to renew automatically {if $endDate}on {$endDate|crmDate}{/if}. Please be aware that any changes that you make here may not be reflected in the payment processor. Please ensure that you alter the related subscription at the payment processor.{/ts}

{if $cancelAutoRenew}

{ts 1=$cancelAutoRenew}To stop the automatic renewal: Cancel auto-renew {/ts}

{/if}
{/if}
{if $priceSetId} {include file="CRM/Price/Form/PriceSet.tpl" context="standalone" extends="Membership"} {literal} {/literal} {else} {if $membershipMode == 'test' } {assign var=registerMode value="TEST"} {elseif $membershipMode == 'live'} {assign var=registerMode value="LIVE"} {/if} {if !$emailExists and $action neq 8 and $context neq 'standalone'}

{ts}You will not be able to send an automatic email receipt for this 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 recording the Membership.{/ts}

{/if} {if $membershipMode}
{ts 1=$displayName 2=$registerMode}Use this form to submit Membership Record on behalf of %1. A %2 transaction will be submitted using the selected payment processor.{/ts}
{/if}
{if $newCredit AND $action EQ 1 AND $membershipMode EQ null} {/if}
{include file="CRM/common/formButtons.tpl" location="top"}
{if $action eq 8}
  {$deleteMessage}
{else} {if $action eq 1} {/if} {* CRM-7362 --add campaign to membership *} {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignTrClass="crm-membership-form-block-campaign_id"} {if !$membershipMode} {* Show read-only Status block - when action is UPDATE and is_override is FALSE *} {if $action eq 2} {/if} {* Show editable status field when is_override is TRUE *} {/if} {if $accessContribution and !$membershipMode AND ($action neq 2 or (!$rows.0.contribution_id AND !$softCredit) or $onlinePendingContributionId)} {elseif $context eq 'standalone' and $isEmailEnabledForSite} {/if}
{$form.contact_id.label} {$form.contact_id.html}
{$form.membership_type_id.label} : {ts}Override organization and type{/ts} {help id="override_membership_type"} {$form.membership_type_id.html} {if $hasPriceSets} {ts}OR{/ts} {$form.price_set_id.html} {if $buildPriceSet && $priceSet}

{include file="CRM/Price/Form/PriceSet.tpl" extends="Membership"}
{else}
{/if} {/if} {if $member_is_test} {ts}(test){/ts}{/if}
{ts}Select Membership Organization and then Membership Type.{/ts}{if $hasPriceSets} {ts}Alternatively, you can use a price set.{/ts}{/if}
{$form.num_terms.label}  {$form.num_terms.html}
{ts}Set the membership end date this many membership periods from now. Make sure the appropriate corresponding fee is entered below.{/ts}
{$form.source.label}  {$form.source.html}
{ts}Source of this membership. This value is searchable.{/ts}
{$form.join_date.label}{$form.join_date.html}
{ts}When did this contact first become a member?{/ts}
{$form.start_date.label}{$form.start_date.html}
{ts}First day of current continuous membership period. Start Date will be automatically set based on Membership Type if you don't select a date.{/ts}
{$form.end_date.label} {$endDate|crmDate} {ts}Override end date{/ts} {help id="override_end_date"} {$form.end_date.html}
{ts}Latest membership period expiration date. End Date will be automatically set based on Membership Type if you don't select a date.{/ts}
{$form.is_override.label} {help id="id-status-override"} {$form.is_override.html} {$form.status_override_end_date.html}
{$form.status_id.label}{$membershipStatus}
{$form.status_id.label}{$form.status_id.html}
{ts}When Status Override is active, the selected status will remain in force (it will NOT be subject to membership status rules) until it is cancelled or become inactive.{/ts}
{if $onlinePendingContributionId}{ts}Update Payment Status{/ts}{else}{$form.record_contribution.label}{/if} {$form.record_contribution.html}
{ts}Check this box to enter or update payment information. You will also be able to generate a customized receipt.{/ts}
{ts}Membership Payment and Receipt{/ts} {/if} {include file="CRM/Member/Form/MembershipCommon.tpl"} {if $emailExists and $isEmailEnabledForSite}
{$form.send_receipt.label} {$form.send_receipt.html}
{ts 1=$emailExists}Automatically email a membership confirmation and receipt to %1? OR if the payment is from a different contact, this email will only go to them.{/ts} {ts}For auto-renewing memberships the emails are sent when each payment is received{/ts}
{include file="CRM/common/customDataBlock.tpl"} {if $accessContribution and $action eq 2 and $rows.0.contribution_id}
{ts}Related Contributions{/ts}
{include file="CRM/Contribute/Form/Selector.tpl" context="Search"}
{/if} {if $softCredit}
{ts}Related Soft Contributions{/ts}
{include file="CRM/Contribute/Page/ContributionSoft.tpl" context="membership"}
{/if} {/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{if $action neq 8} {* Jscript additions not need for Delete action *} {if $accessContribution and !$membershipMode AND ($action neq 2 or !$rows.0.contribution_id or $onlinePendingContributionId)} {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} {literal} {/literal} {/if} {* closing of delete check if *} {/if}{* closing of custom data if *}