| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.4 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2013 | |
| 6 | +--------------------------------------------------------------------+ |
| 7 | | This file is a part of CiviCRM. | |
| 8 | | | |
| 9 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 10 | | under the terms of the GNU Affero General Public License | |
| 11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 12 | | | |
| 13 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 16 | | See the GNU Affero General Public License for more details. | |
| 17 | | | |
| 18 | | You should have received a copy of the GNU Affero General Public | |
| 19 | | License and the CiviCRM Licensing Exception along | |
| 20 | | with this program; if not, contact CiviCRM LLC | |
| 21 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 22 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 24 | +--------------------------------------------------------------------+ |
| 25 | *} |
| 26 | {* Relationship tab within View Contact - browse, and view relationships for a contact *} |
| 27 | {if !empty($cdType) } |
| 28 | {include file="CRM/Custom/Form/CustomData.tpl"} |
| 29 | {elseif $action neq 16} {* add, update or view *} |
| 30 | {include file="CRM/Contact/Form/Relationship.tpl"} |
| 31 | {else} |
| 32 | <div class="view-content"> |
| 33 | {if $permission EQ 'edit'} |
| 34 | <div class="action-link"> |
| 35 | <a accesskey="N" href="{crmURL p='civicrm/contact/view/rel' q="cid=`$contactId`&action=add&reset=1"}" |
| 36 | class="button"><span><div class="icon add-icon"></div>{ts}Add Relationship{/ts}</span></a> |
| 37 | </div> |
| 38 | {/if} |
| 39 | |
| 40 | {* display current relationships *} |
| 41 | <h3>{ts}Current Relationships{/ts}</h3> |
| 42 | {include file="CRM/Contact/Page/View/RelationshipSelector.tpl" context="current"} |
| 43 | <div id="permission-legend" class="crm-content-block"> |
| 44 | <span class="crm-marker">* </span> |
| 45 | {ts}Indicates a permissioned relationship. This contact can be viewed and updated by the other.{/ts} |
| 46 | </div> |
| 47 | |
| 48 | <div class="spacer"></div> |
| 49 | <p></p> |
| 50 | {* display past relationships *} |
| 51 | <div class="label font-red">{ts}Inactive Relationships{/ts}</div> |
| 52 | <div class="description">{ts}These relationships are Disabled OR have a past End Date.{/ts}</div> |
| 53 | {include file="CRM/Contact/Page/View/RelationshipSelector.tpl" context="past"} |
| 54 | </div> |
| 55 | |
| 56 | {include file="CRM/common/enableDisableApi.tpl"} |
| 57 | {/if} {* close of custom data else*} |
| 58 | |