{* +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {capture assign=crmURL}{crmURL p='civicrm/admin/member/membershipStatus' q="action=add&reset=1"}{/capture} {if $action eq 1 or $action eq 2 or $action eq 8} {include file="CRM/Member/Form/MembershipStatus.tpl"} {else}

{ts}CiviMember automatically calculates the current status of each contact's membership based on the status names and rules configured here. The status 'rule' tells CiviMember what status to assign based on the start and end dates of a given membership. For example, the default Grace status rule says: 'assign Grace status if the membership period ended sometime within the past month.'{/ts} {docURL page="user/membership/defining-memberships/"}

{ts 1=$crmURL}The status rules provided by default may be sufficient for your organization. However, you can easily change the status names and/or adjust the rules by clicking the Edit links below. Or you can add a new status and rule.{/ts}

{if $rows}

{strip} {* handle enable/disable actions*} {include file="CRM/common/enableDisableApi.tpl"} {foreach from=$rows item=row} {/foreach}
{ts}Status{/ts} {ts}Start Event{/ts} {ts}End Event{/ts} {ts}Member{/ts} {ts}Admin{/ts} {ts}Order{/ts} {ts}Reserved?{/ts}
{$row.label} {$row.start_event} {$row.end_event} {if $row.is_current_member eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} {if $row.is_admin eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} {$row.weight} {if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} {$row.action|replace:'xx':$row.id}
{/strip} {if $action ne 1 and $action ne 2} {/if}
{else} {if $action ne 1}
{ts}status{/ts}{ts 1=$crmURL}There are no custom membership status entered. You can add one.{/ts}
{/if} {/if} {/if}