Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
8c9251b3 | 5 | | Copyright CiviCRM LLC (c) 2004-2018 | |
6a488035 TO |
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} | |
f6eedce7 | 29 | <div class="help"> |
6a488035 TO |
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} | |
f6eedce7 | 33 | <div class="help"> |
6a488035 TO |
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). *} | |
ae33cc74 | 44 | <table class="selector" style="width: auto;"> |
6a488035 TO |
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> | |
ae33cc74 | 50 | <td class="crm-mailing-subscribe-form-block-title"><label for="{$cbName}"><strong>{$row.title}</strong></label></td> |
6a488035 TO |
51 | <td class="crm-mailing-subscribe-form-block-description"> {$row.description} </td> |
52 | </tr> | |
ebf2b57b | 53 | {/foreach} |
6a488035 TO |
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 --> |