{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{if $groupCount eq 0}
{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}
{ts}Group{/ts} |
{ts}Status{/ts} |
{ts}Date Added{/ts} |
|
{foreach from=$groupIn item=row}
{$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}
|
{/foreach}
{/strip}
{/if}
{if $contactSmartGroupSettings neq 3}
{/if}
{if $groupPending}
{ts}Pending{/ts}
{ts}Joining these group(s) is pending confirmation by this contact.{/ts}
{strip}
{ts}Group{/ts} |
{ts}Status{/ts} |
{ts}Date Pending{/ts} |
|
{foreach from=$groupPending item=row}
{$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}
|
{/foreach}
{/strip}
{/if}
{if $groupOut}
{ts}Past Groups{/ts}
{ts 1=$displayName}%1 is no longer part of these group(s).{/ts}
{strip}
{ts}Group{/ts} |
{ts}Status{/ts} |
{ts}Date Added{/ts} |
{ts}Date Removed{/ts} |
|
{foreach from=$groupOut item=row}
{$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}
|
{/foreach}
{/strip}
{/if}
{literal}