{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {capture assign=customURL}{crmURL p='civicrm/admin/custom/group' q="reset=1"}{/capture} {capture assign=docLink}{docURL page="user/organising-your-data/relationships"}{/capture} {if $action eq 1 or $action eq 2 or $action eq 4 or $action eq 8} {include file="CRM/Admin/Form/RelationshipType.tpl"} {else}

{ts}Relationship types describe relationships between people, households and organizations. Relationship types labels describe the relationship from the perspective of each of the two entities (e.g. Parent >-< Child, Employer >-< Employee). For some types of relationships, the labels may be the same in both directions (e.g. Spouse >-< Spouse).{/ts} {$docLink}

{ts 1=$customURL}You can define as many additional relationships types as needed to cover the types of relationships you want to track. Once a relationship type is created, you may also define custom fields to extend relationship information for that type from Administer CiviCRM » Custom Data.{/ts}{help id='id-relationship-types'}

{if $rows} {if !($action eq 1 and $action eq 2)} {/if}
{strip} {* handle enable/disable actions*} {include file="CRM/common/enableDisableApi.tpl"} {include file="CRM/common/jsortable.tpl"} {foreach from=$rows item=row} {/foreach}
{ts}Relationship A to B{/ts} {ts}Relationship B to A{/ts} {ts}Contact Type A{/ts} {ts}Contact Type B{/ts} {ts}Enabled?{/ts}
{$row.label_a_b} {$row.label_b_a} {if $row.contact_type_a_display} {$row.contact_type_a_display} {if $row.contact_sub_type_a} - {$row.contact_sub_type_a} {/if}{else} {ts}All Contacts{/ts} {/if} {if $row.contact_type_b_display} {$row.contact_type_b_display} {if $row.contact_sub_type_b} - {$row.contact_sub_type_b}{/if} {else} {ts}All Contacts{/ts} {/if} {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} {$row.action|replace:'xx':$row.id}
{/strip}
{else}
{ts}status{/ts} {ts}None found.{/ts}
{/if} {/if}