Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
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 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} | |
32 | </div> | |
33 | {/if} | |
34 | ||
35 | {if $groupIn } | |
36 | <div class="form-item"> | |
37 | <div> | |
38 | {strip} | |
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> | |
44 | {if $edit} | |
45 | <th></th> | |
46 | {/if} | |
47 | </tr> | |
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> | |
53 | {if $edit} | |
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> | |
55 | {/if} | |
56 | </tr> | |
57 | {/foreach} | |
58 | </table> | |
59 | {/strip} | |
60 | </div> | |
61 | </div> | |
62 | {/if} | |
63 | ||
64 | {if $edit} | |
65 | {* Include 'Join a Group' form *} | |
66 | {include file="CRM/Contact/Form/GroupContact.tpl"} | |
67 | {/if} | |
68 | ||
69 | {if $groupPending } | |
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> | |
73 | <div> | |
74 | {strip} | |
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> | |
80 | {if $edit} | |
81 | <th></th> | |
82 | {/if} | |
83 | </tr> | |
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> | |
89 | {if $edit} | |
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> | |
91 | {/if} | |
92 | </tr> | |
93 | {/foreach} | |
94 | </table> | |
95 | {/strip} | |
96 | </div> | |
97 | </div> | |
98 | {/if} | |
99 | ||
100 | {if $groupOut } | |
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> | |
104 | <div> | |
105 | {strip} | |
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> | |
112 | {if $edit} | |
113 | <th></th> | |
114 | {/if} | |
115 | </tr> | |
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> | |
122 | {if $edit} | |
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> | |
124 | {/if} | |
125 | </tr> | |
126 | {/foreach} | |
127 | </table> | |
128 | {/strip} | |
129 | </div> | |
130 | </div> | |
131 | {/if} | |
132 | </div> | |
232624b1 | 133 | </div> |