{* +--------------------------------------------------------------------+ | CiviCRM version 4.5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | 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, End Date or Membership Status. Click here if you want to cancel the automatic renewal option.{/ts}

{/if}
{if $cdType } {include file="CRM/Custom/Form/CustomData.tpl"} {elseif $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}
{include file="CRM/common/formButtons.tpl" location="top"}
{if $action eq 8}
  {ts}WARNING: Deleting this membership will also delete any related payment (contribution) records.{/ts} {ts}This action cannot be undone.{/ts}

{ts}Consider modifying the membership status instead if you want to maintain an audit trail and avoid losing payment data. You can set the status to Cancelled by editing the membership and clicking the Status Override checkbox.{/ts}

{ts}Click 'Delete' if you want to continue.{/ts}

{else} {if $context neq 'standalone'} {else} {/if} {if $membershipMode} {/if} {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 !empty($form.auto_renew)} {/if} {if !$membershipMode} {/if} {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 *} {elseif $membershipMode} {/if} {if $accessContribution and ! $membershipMode AND ($action neq 2 or (!$rows.0.contribution_id AND !$softCredit) or $onlinePendingContributionId)} {else}
{/if} {if $emailExists and $outBound_option != 2 } {elseif $context eq 'standalone' and $outBound_option != 2 } {/if}
{ts}Member{/ts}{$displayName}
{$form.contact_id.label} {$form.contact_id.html}
{$form.payment_processor_id.label}{$form.payment_processor_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}{include file="CRM/common/jcalendar.tpl" elementName=join_date}
{ts}When did this contact first become a member?{/ts}
{$form.start_date.label}{include file="CRM/common/jcalendar.tpl" elementName=start_date}
{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} {if $isRecur && $endDate}{$endDate|crmDate}{else}{include file="CRM/common/jcalendar.tpl" elementName=end_date}{/if}
{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.auto_renew.label} {help id="id-auto_renew" file="CRM/Member/Form/Membership.hlp" action=$action} {$form.auto_renew.html}
{$form.is_override.label} {help id="id-status-override"}{$form.is_override.html}
{$form.status_id.label}{$membershipStatus}
{$form.status_id.label}{$form.status_id.html}
{ts}If Status Override is checked, the selected status will remain in force (it will NOT be modified by the automated status update script).{/ts}
{$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.{/ts}
{$form.is_different_contribution_contact.label} {$form.is_different_contribution_contact.html}  {help id="id-contribution_contact"}
  {*CRM-15366*}
{$form.soft_credit_type_id.label} {$form.soft_credit_type_id.html}
{$form.soft_credit_contact_id.label} {$form.soft_credit_contact_id.html}
{include file='CRM/Core/BillingBlock.tpl'}
{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 $action neq 2 } {/if}
{$form.is_different_contribution_contact.label} {$form.is_different_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.send_receipt.label}{$form.send_receipt.html}
{ts 1=$emailExists}Automatically email a membership confirmation and receipt to %1?{/ts}
{*include custom data js file*} {include file="CRM/common/customData.tpl"} {literal} {/literal} {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 } {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 } {/if} {literal} {/literal} {if ($emailExists and $outBound_option != 2) OR $context eq 'standalone' } {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} {literal} {/literal} {/if} {* closing of delete check if *} {/if}{* closing of custom data if *}