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 | {* this template is used for web-based subscriptions to mailing list type groups *} | |
27 | <div class="crm-block crm-mailing-subscribe-form-block"> | |
28 | {if $single} | |
29 | <div id="help"> | |
30 | {ts}Enter your email address and click <strong>Subscribe</strong>. You will receive a confirmation request via email shortly. Your subscription will be activated after you respond to that email.{/ts} | |
31 | </div> | |
32 | {else} | |
33 | <div id="help"> | |
34 | {ts}Enter your email address and check the box next to each mailing list you want to join. Then click the <strong>Subscribe</strong> button. You will receive a confirmation request via email for each selected list. Activate your subscription to each list by responding to the corresponding confirmation email.{/ts} | |
35 | </div> | |
36 | {/if} | |
37 | ||
38 | <table class="form-layout-compressed"> | |
39 | <tr class="crm-mailing-subscribe-form-block-email"><td style="width: 10%;">{$form.email.label}</td><td>{$form.email.html}</td></tr> | |
40 | <tr><td colspan="2"> | |
41 | <div class="spacer"></div> | |
42 | ||
43 | {if ! $single} {* Show all public mailing list groups. Page was loaded w/o a specific group param (gid=N not in query string). *} | |
44 | <table summary="{ts}Group Listings.{/ts}" class="selector" style="width: auto;"> | |
45 | {counter start=0 skip=1 print=false} | |
46 | {foreach from=$rows item=row} | |
47 | <tr id='rowid{$row.id}' class="{cycle values="odd-row,even-row"}"> | |
48 | {assign var=cbName value=$row.checkbox} | |
49 | <td class="crm-mailing-subscribe-form-block-{$cbName}">{$form.$cbName.html}</td> | |
50 | <td class="crm-mailing-subscribe-form-block-title"><strong>{$row.title}</strong></td> | |
51 | <td class="crm-mailing-subscribe-form-block-description"> {$row.description} </td> | |
52 | </tr> | |
53 | {/foreach} | |
54 | </table> | |
55 | {/if} | |
56 | </td> | |
57 | </tr> | |
58 | </table> | |
71fc6ea4 DG |
59 | {if $isCaptcha} |
60 | {include file='CRM/common/ReCAPTCHA.tpl'} | |
61 | {/if} | |
6a488035 TO |
62 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> |
63 | </div><!-- end crm-block --> |