| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.5 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
| 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. *} |
| 27 | <h3>{if $action eq 1}{ts}New Email Settings{/ts}{elseif $action eq 2}{ts}Edit Email Settings{/ts}{else}{ts}Delete Email Settings{/ts}{/if}</h3> |
| 28 | <div class="crm-block crm-form-block crm-mail-settings-form-block"> |
| 29 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> |
| 30 | {if $action eq 8} |
| 31 | <div class="messages status no-popup"> |
| 32 | <div class="icon inform-icon"></div> |
| 33 | {ts}WARNING: Deleting this option will result in the loss of mail settings data.{/ts} {ts}Do you want to continue?{/ts} |
| 34 | </div> |
| 35 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> |
| 36 | {else} |
| 37 | <table class="form-layout-compressed"> |
| 38 | |
| 39 | <tr class="crm-mail-settings-form-block-name"><td class="label">{$form.name.label}</td><td>{$form.name.html}</td></tr> |
| 40 | <tr><td class="label"> </td><td class="description">{ts}Name of this group of settings.{/ts}</td></tr> |
| 41 | |
| 42 | <tr class="crm-mail-settings-form-block-server"><td class="label">{$form.server.label}</td><td>{$form.server.html}</td></tr> |
| 43 | <tr><td class="label"> </td><td class="description">{ts}Name or IP address of mail server machine.{/ts}</td></tr> |
| 44 | |
| 45 | <tr class="crm-mail-settings-form-block-username"><td class="label">{$form.username.label}</td><td>{$form.username.html}</td></tr> |
| 46 | <tr><td class="label"> </td><td class="description">{ts}Username to use when polling (for IMAP and POP3).{/ts}</td></tr> |
| 47 | |
| 48 | <tr class="crm-mail-settings-form-block-password"><td class="label">{$form.password.label}</td><td>{$form.password.html}</td></tr> |
| 49 | <tr><td class="label"> </td><td class="description">{ts}Password to use when polling (for IMAP and POP3).{/ts}</td></tr> |
| 50 | |
| 51 | <tr class="crm-mail-settings-form-block-localpart"><td class="label">{$form.localpart.label}</td><td>{$form.localpart.html}</td></tr> |
| 52 | <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> |
| 53 | |
| 54 | <tr class="crm-mail-settings-form-block-domain"><td class="label">{$form.domain.label}</td><td>{$form.domain.html}</td></tr> |
| 55 | <tr><td class="label"> </td><td class="description">{ts}Email address domain (the part after @).{/ts}</td></tr> |
| 56 | |
| 57 | <tr class="crm-mail-settings-form-block-return_path"><td class="label">{$form.return_path.label}</td><td>{$form.return_path.html}</td><tr> |
| 58 | <tr><td class="label"> </td><td class="description">{ts}Contents of the Return-Path header.{/ts}</td></tr> |
| 59 | |
| 60 | <tr class="crm-mail-settings-form-block-protocol"><td class="label">{$form.protocol.label}</td><td>{$form.protocol.html}</td></tr> |
| 61 | <tr><td class="label"> </td><td class="description">{ts}Name of the protocol to use for polling.{/ts}</td></tr> |
| 62 | |
| 63 | <tr class="crm-mail-settings-form-block-source"><td class="label">{$form.source.label}</td><td>{$form.source.html}</td></tr> |
| 64 | <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> |
| 65 | |
| 66 | <tr class="crm-mail-settings-form-block-is_ssl"><td class="label">{$form.is_ssl.label}</td><td>{$form.is_ssl.html}</td></tr> |
| 67 | <tr><td class="label"> </td><td class="description">{ts}Whether to use SSL for IMAP and POP3 or not.{/ts}</td></tr> |
| 68 | |
| 69 | <tr class="crm-mail-settings-form-block-is_default"><td class="label">{$form.is_default.label}</td><td>{$form.is_default.html}</td></tr> |
| 70 | <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> |
| 71 | </table> |
| 72 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> |
| 73 | {/if} |
| 74 | </div> |