{* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {* View existing membership record. *}
{* Check permissions and make sure this is not an inherited membership (edit and delete not allowed for inherited memberships) *} {if ! $owner_contact_id AND call_user_func(array('CRM_Core_Permission','check'), 'edit memberships') } {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"} {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"} {/if}
{ts}Edit{/ts}
{/if} {if ! $owner_contact_id AND call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviMember')} {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"} {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"} {/if}
{ts}Delete{/ts}
{/if} {include file="CRM/common/formButtons.tpl" location="bottom"}
{if $owner_display_name} {/if} {if $has_related} {/if} {if $campaign}{/if}
{ts}Member{/ts}{$displayName}
{ts}By Relationship{/ts}{$relationship}  {$owner_display_name} 
{ts}Membership Type{/ts}{$membership_type}
{ts}Max related{/ts}{$max_related}
{ts}Status{/ts}{$status}
{ts}Source{/ts}{$source}
{ts}Campaign{/ts}{$campaign}
{ts}Member Since{/ts}{$join_date|crmDate}
{ts}Start date{/ts}{$start_date|crmDate}
{ts}End date{/ts}{$end_date|crmDate}
{ts}Auto-renew{/ts}{$auto_renew}
{include file="CRM/Custom/Page/CustomDataView.tpl"} {if $accessContribution 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 $has_related} {include file="CRM/Member/Form/MembershipRelated.tpl" context="Search"} {/if}
{* Check permissions and make sure this is not a related membership (edit and delete not allowed for related memberships) *} {if ! $owner_contact_id AND call_user_func(array('CRM_Core_Permission','check'), 'edit memberships') } {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"} {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"} {/if}
{ts}Edit{/ts}
{/if} {if ! $owner_contact_id AND call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviMember')} {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"} {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey} {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"} {/if}
{ts}Delete{/ts}
{/if} {include file="CRM/common/formButtons.tpl" location="bottom"}