Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
6b83d5bd | 5 | | Copyright CiviCRM LLC (c) 2004-2019 | |
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 adding/editing email settings. *} | |
6a488035 TO |
27 | <div class="crm-block crm-form-block crm-mail-settings-form-block"> |
28 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
29 | {if $action eq 8} | |
30 | <div class="messages status no-popup"> | |
31 | <div class="icon inform-icon"></div> | |
32 | {ts}WARNING: Deleting this option will result in the loss of mail settings data.{/ts} {ts}Do you want to continue?{/ts} | |
33 | </div> | |
34 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
35 | {else} | |
36 | <table class="form-layout-compressed"> | |
37 | ||
38 | <tr class="crm-mail-settings-form-block-name"><td class="label">{$form.name.label}</td><td>{$form.name.html}</td></tr> | |
39 | <tr><td class="label"> </td><td class="description">{ts}Name of this group of settings.{/ts}</td></tr> | |
40 | ||
41 | <tr class="crm-mail-settings-form-block-server"><td class="label">{$form.server.label}</td><td>{$form.server.html}</td></tr> | |
42 | <tr><td class="label"> </td><td class="description">{ts}Name or IP address of mail server machine.{/ts}</td></tr> | |
43 | ||
44 | <tr class="crm-mail-settings-form-block-username"><td class="label">{$form.username.label}</td><td>{$form.username.html}</td></tr> | |
45 | <tr><td class="label"> </td><td class="description">{ts}Username to use when polling (for IMAP and POP3).{/ts}</td></tr> | |
46 | ||
47 | <tr class="crm-mail-settings-form-block-password"><td class="label">{$form.password.label}</td><td>{$form.password.html}</td></tr> | |
48 | <tr><td class="label"> </td><td class="description">{ts}Password to use when polling (for IMAP and POP3).{/ts}</td></tr> | |
49 | ||
50 | <tr class="crm-mail-settings-form-block-localpart"><td class="label">{$form.localpart.label}</td><td>{$form.localpart.html}</td></tr> | |
51 | <tr><td class="label"> </td><td class="description">{ts}Optional local part (e.g., 'civimail+' for addresses like civimail+s.1.2@example.com).{/ts}</td></tr> | |
52 | ||
53 | <tr class="crm-mail-settings-form-block-domain"><td class="label">{$form.domain.label}</td><td>{$form.domain.html}</td></tr> | |
54 | <tr><td class="label"> </td><td class="description">{ts}Email address domain (the part after @).{/ts}</td></tr> | |
55 | ||
56 | <tr class="crm-mail-settings-form-block-return_path"><td class="label">{$form.return_path.label}</td><td>{$form.return_path.html}</td><tr> | |
57 | <tr><td class="label"> </td><td class="description">{ts}Contents of the Return-Path header.{/ts}</td></tr> | |
58 | ||
59 | <tr class="crm-mail-settings-form-block-protocol"><td class="label">{$form.protocol.label}</td><td>{$form.protocol.html}</td></tr> | |
60 | <tr><td class="label"> </td><td class="description">{ts}Name of the protocol to use for polling.{/ts}</td></tr> | |
61 | ||
62 | <tr class="crm-mail-settings-form-block-source"><td class="label">{$form.source.label}</td><td>{$form.source.html}</td></tr> | |
63 | <tr><td class="label"> </td><td class="description">{ts}Folder to poll from when using IMAP (will default to INBOX when empty), path to poll from when using Maildir, etc..{/ts}</td></tr> | |
64 | ||
65 | <tr class="crm-mail-settings-form-block-is_ssl"><td class="label">{$form.is_ssl.label}</td><td>{$form.is_ssl.html}</td></tr> | |
66 | <tr><td class="label"> </td><td class="description">{ts}Whether to use SSL for IMAP and POP3 or not.{/ts}</td></tr> | |
67 | ||
68 | <tr class="crm-mail-settings-form-block-is_default"><td class="label">{$form.is_default.label}</td><td>{$form.is_default.html}</td></tr> | |
69 | <tr><td class="label"> </td><td class="description">{ts}How this mail account will be used. Only one box may be used for bounce processing. It will also be used as the envelope email when sending mass mailings.{/ts}</td></tr> | |
040073c9 CW |
70 | |
71 | <tr class="crm-mail-settings-form-block-activity_status"><td class="label">{$form.activity_status.label}</td><td>{$form.activity_status.html}</td></tr> | |
6a488035 TO |
72 | </table> |
73 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
74 | {/if} | |
75 | </div> | |
040073c9 CW |
76 | {literal} |
77 | <script type="text/javascript"> | |
78 | CRM.$(function($) { | |
79 | var $form = $('form.{/literal}{$form.formClass}{literal}'); | |
80 | function showActivityStatus() { | |
81 | $('.crm-mail-settings-form-block-activity_status', $form).toggle($(this).val() === '0'); | |
82 | } | |
83 | $('select[name=is_default]').each(showActivityStatus).change(showActivityStatus); | |
84 | }); | |
85 | </script> | |
86 | {/literal} |