{*
+--------------------------------------------------------------------+
| CiviCRM version 4.3 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
| 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/viewing relationships *}
{if $cdType }
{include file="CRM/Custom/Form/CustomData.tpl"}
{else}
{if $action eq 4 } {* action = view *}
{ts}Select the relationship type. Then locate target contact(s) for this relationship by entering a partial name and selecting from the dropdown, or clicking 'Search'. If the target contact does not exist, you can create a new contact.{/ts}
{if $searchDone } {* Search button clicked *}
{if $searchCount || $callAjax}
{if $searchRows || $callAjax} {* we got rows to display *}
{else} {* too many results - we display only 50 *}
{if $duplicateRelationship}
{capture assign=infoTitle}{ts}Duplicate relationship.{/ts}{/capture}
{capture assign=infoMessage}{ts}This relationship already exists.{/ts}{/capture}
{else}
{capture assign=infoTitle}{ts}Too many matching results.{/ts}{/capture}
{capture assign=infoMessage}{ts}Please narrow your search by entering a more complete target contact name.{/ts}{/capture}
{/if}
{include file="CRM/common/info.tpl"}
{/if}
{else} {* no valid matches for name + contact_type *}
{capture assign=infoTitle}{ts}No matching results for{/ts}{/capture}
{capture assign=infoMessage}
{ts 1=$form.contact_1.value}Name like: %1{/ts}
{ts}Contact Type{/ts}: {$contact_type_display}
{ts}Check your spelling, or try fewer letters for the target contact name.{/ts}{/capture}
{include file="CRM/common/info.tpl"}
{/if} {* end if searchCount *}
{else}
{/if} {* end if searchDone *}
{/if} {* end action = add *}
{include file="CRM/common/jcalendar.tpl" elementName=end_date} {ts}If this relationship has start and/or end dates, specify them here.{/ts}
{$form.description.label}
{$form.description.html}
{$form.note.label}
{$form.note.html}
{$form.is_permission_a_b.html}
{if $action eq 1}
'{$sort_name_a}' {ts}can view and update information for selected contact(s){/ts}
{else}
'{$sort_name_a}' {ts}can view and update information for {/ts} '{$sort_name_b}'
{/if}
{if $action eq 1}
{ts}Selected contact(s) can view and update information for {/ts} '{$sort_name_a}'
{else}
'{$sort_name_b}' {ts}can view and update information for {/ts} '{$sort_name_a}'
{/if}
{$form.is_permission_b_a.html}
{if $action eq 1}
'{$sort_name_a}' {ts}can view and update information for selected contact(s){/ts}
{else}
'{$sort_name_a}' {ts}can view and update information for {/ts} '{$sort_name_b}'
{/if}
{if $action eq 1}
{ts}Selected contact(s) can view and update information for {/ts} '{$sort_name_a}'
{else}
'{$sort_name_b}' {ts}can view and update information for {/ts} '{$sort_name_a}'
{/if}