| 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 | <div class="section-shown"> |
| 27 | {if !$groupSmart AND !$groupParent} |
| 28 | <div class="messages status no-popup"> |
| 29 | <div class="icon inform-icon"></div> |
| 30 | {ts}This contact does not currently belong to any smart groups.{/ts} |
| 31 | </div> |
| 32 | {/if} |
| 33 | |
| 34 | {if $groupSmart} |
| 35 | <div class="ht-one"></div> |
| 36 | <div class="description"> |
| 37 | {ts 1=$displayName}%1 is currently included in these Smart group(s) (e.g. saved searches).{/ts} |
| 38 | </div> |
| 39 | {strip} |
| 40 | <table id="smart_group" class="display"> |
| 41 | <thead> |
| 42 | <tr> |
| 43 | <th>{ts}Group{/ts}</th> |
| 44 | <th>{ts}Description{/ts}</th> |
| 45 | </tr> |
| 46 | </thead> |
| 47 | {foreach from=$groupSmart item=row} |
| 48 | <tr id="grp_{$row.id}" class="{cycle values="odd-row,even-row"}"> |
| 49 | <td class="bold"> |
| 50 | <a href="{crmURL p='civicrm/group/search' q="reset=1&force=1&context=smog&gid=`$row.id`"}"> |
| 51 | {$row.title} |
| 52 | </a> |
| 53 | </td> |
| 54 | <td>{$row.description}</td> |
| 55 | </tr> |
| 56 | {/foreach} |
| 57 | </table> |
| 58 | {/strip} |
| 59 | {/if} |
| 60 | {if $groupParent} |
| 61 | <div class="ht-one"></div> |
| 62 | <h3>{ts}Parent Groups{/ts}</h3> |
| 63 | <div class="description"> |
| 64 | {ts 1=$displayName}%1 is included in these Parent group(s) based on belonging to group(s) which are their |
| 65 | children.{/ts} |
| 66 | </div> |
| 67 | {strip} |
| 68 | <table id="parent_group" class="display"> |
| 69 | <thead> |
| 70 | <tr> |
| 71 | <th>{ts}Group{/ts}</th> |
| 72 | </tr> |
| 73 | </thead> |
| 74 | {foreach from=$groupParent item=row} |
| 75 | <tr id="grp_{$row.id}" class="{cycle values="odd-row,even-row"}"> |
| 76 | <td class="bold"> |
| 77 | <a href="{crmURL p='civicrm/group/search' q="reset=1&force=1&context=smog&gid=`$row.id`"}"> |
| 78 | {$row.title} |
| 79 | </a> |
| 80 | </td> |
| 81 | </tr> |
| 82 | {/foreach} |
| 83 | </table> |
| 84 | {/strip} |
| 85 | {/if} |
| 86 | </div> |