{* +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2020 | +--------------------------------------------------------------------+ | 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 adding/editing/deleting memberships for a contact *} {if $cancelAutoRenew}

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

{/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)} {ts}For auto-renewing memberships the emails are sent when each payment is received{/ts} {elseif $context eq 'standalone' and $isEmailEnabledForSite} {ts}For auto-renewing memberships the emails are sent when each payment is received{/ts} {/if}
{$form.contact_id.label} {$form.contact_id.html}
{$form.membership_type_id.label} {$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}Over-ride 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}
{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 *}