{* +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2020 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *}
{if $groupCount eq 0}
 {ts}This contact does not currently belong to any groups.{/ts}
{else} {include file="CRM/common/jsortable.tpl"} {/if} {* Include 'add to new group' form if session has edit contact permissions *} {if $permission EQ 'edit'} {include file="CRM/Contact/Form/GroupContact.tpl"} {/if} {if $groupIn }

{ts}Regular Groups{/ts}

{ts 1=$displayName}%1 has joined or been added to these group(s).{/ts}
{strip} {foreach from=$groupIn item=row} {/foreach}
{ts}Group{/ts} {ts}Status{/ts} {ts}Date Added{/ts}
{$row.title} {ts 1=$row.in_method}Added (by %1){/ts} {$row.in_date|crmDate} {if $permission EQ 'edit'} {ts}Remove{/ts} {ts}Delete{/ts} {/if}
{/strip} {/if} {if $contactSmartGroupSettings neq 3}
{ts}Smart Groups{/ts}
{/if} {if $groupPending}

{ts}Pending{/ts}

{ts}Joining these group(s) is pending confirmation by this contact.{/ts}
{strip} {foreach from=$groupPending item=row} {/foreach}
{ts}Group{/ts} {ts}Status{/ts} {ts}Date Pending{/ts}
{$row.title} {ts 1=$row.pending_method}Pending (by %1){/ts} {$row.pending_date|crmDate} {if $permission EQ 'edit'} {ts}Remove{/ts} {ts}Delete{/ts} {/if}
{/strip} {/if} {if $groupOut}

{ts}Past Groups{/ts}

{ts 1=$displayName}%1 is no longer part of these group(s).{/ts}
{strip} {foreach from=$groupOut item=row} {/foreach}
{ts}Group{/ts} {ts}Status{/ts} {ts}Date Added{/ts} {ts}Date Removed{/ts}
{$row.title} {ts 1=$row.out_method}Removed (by %1){/ts} {$row.date_added|crmDate} {$row.out_date|crmDate} {if $permission EQ 'edit'} {ts}Rejoin Group{/ts} {ts}Delete{/ts}{/if}
{/strip} {/if}
{literal}