2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 <div id="groupContact">
27 <div class="view-content">
28 {if $groupCount eq 0 }
29 <div class="messages status no-popup">
30 <div class="icon inform-icon"></div>
31 {ts}You are not currently subscribed to any Groups.{/ts}
36 <div class="form-item">
39 <table class="selector">
40 <tr class="columnheader">
41 <th>{ts}Group{/ts}</th>
42 <th>{ts}Status{/ts}</th>
43 <th>{ts}Date Added{/ts}</th>
48 {foreach from=$groupIn item=row}
49 <tr class="{cycle values="odd-row,even-row"}">
50 <td><strong>{$row.title}</strong></td>
51 <td>{ts 1=$row.in_method}Added (by %1){/ts}</td>
52 <td>{$row.in_date|crmDate}</td>
54 <td><a href="{crmURL p='civicrm/user/group' q="gcid=`$row.id`&action=delete&st=o"}" onclick ="return confirm('{ts 1=$row.title}Are you sure you want to unsubscribe from %1?{/ts}');">[ {ts}Unsubscribe{/ts} ]</a></td>
65 {* Include 'Join a Group' form *}
66 {include file="CRM/Contact/Form/GroupContact.tpl"}
70 <div class="form-item">
71 <div class="label status-pending">{ts}Pending Subscriptions{/ts}</div>
72 <div class="description">{ts}Your subscription to these group(s) is pending confirmation.{/ts}</div>
75 <table class="selector">
76 <tr class="columnheader">
77 <th>{ts}Group{/ts}</th>
78 <th>{ts}Status{/ts}</th>
79 <th>{ts}Date Pending{/ts}</th>
84 {foreach from=$groupPending item=row}
85 <tr class="{cycle values="odd-row,even-row"}">
86 <td><strong>{$row.title}</strong></td>
87 <td>{ts 1=$row.pending_method}Pending (by %1){/ts}</td>
88 <td>{$row.pending_date|crmDate}</td>
90 <td><a href="{crmURL p='civicrm/user/group' q="gcid=`$row.id`&action=delete&st=i"}" onclick ="return confirm('{ts 1=$row.title}Are you sure you want to confirm subscription for %1?{/ts}');">[ {ts}Confirm{/ts} ]</a></td>
101 <div class="form-item">
102 <div class="label status-removed">{ts}Unsubscribed Groups{/ts}</div>
103 <div class="description">{ts}You are no longer subscribed to these group(s). Click Rejoin Group if you want to re-subscribe.{/ts}</div>
106 <table class="selector">
107 <tr class="columnheader">
108 <th>{ts}Group{/ts}</th>
109 <th>{ts}Status{/ts}</th>
110 <th>{ts}Date Added{/ts}</th>
111 <th>{ts}Date Removed{/ts}</th>
116 {foreach from=$groupOut item=row}
117 <tr class="{cycle values="odd-row,even-row"}">
118 <td><strong>{$row.title}</strong></td>
119 <td class="status-removed">{ts 1=$row.out_method}Removed (by %1){/ts}</td>
120 <td>{$row.date_added|crmDate}</td>
121 <td>{$row.out_date|crmDate}</td>
123 <td><a href="{crmURL p='civicrm/user/group' q="gcid=`$row.id`&action=delete&st=i"}" onclick ="return confirm('{ts 1=$row.title}Are you sure you want to add back into %1?{/ts}');">[ {ts}Rejoin Group{/ts} ]</a></td>