Merge remote-tracking branch 'upstream/4.6' into 4.6-master-2015-05-19-00-08-12
[civicrm-core.git] / templates / CRM / Admin / Page / MailSettings.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 {if $action eq 1 or $action eq 2 or $action eq 8}
27 {include file="CRM/Admin/Form/MailSettings.tpl"}
28 {else}
29
30 {if $rows}
31 <div id="mSettings">
32 <p></p>
33 <div class="form-item">
34 {strip}
35 <table cellpadding="0" cellspacing="0" border="0">
36 <thead class="sticky">
37 <th>{ts}Name{/ts}</th>
38 <th>{ts}Server{/ts}</th>
39 <th>{ts}Username{/ts}</th>
40 <th>{ts}Localpart{/ts}</th>
41 <th>{ts}Domain{/ts}</th>
42 <th>{ts}Return-Path{/ts}</th>
43 <th>{ts}Protocol{/ts}</th>
44 <th>{ts}Source{/ts}</th>
45 <!--<th>{ts}Port{/ts}</th>-->
46 <th>{ts}Use SSL?{/ts}</th>
47 <th>{ts}Used For{/ts}</th>
48 <th></th>
49 </thead>
50 {foreach from=$rows item=row}
51 <tr id='rowid{$row.id}' class="crm-mailSettings {cycle values="odd-row,even-row"}">
52 <td class="crm-mailSettings-name">{$row.name}</td>
53 <td class="crm-mailSettings-server">{$row.server}</td>
54 <td class="crm-mailSettings-username">{$row.username}</td>
55 <td class="crm-mailSettings-localpart">{$row.localpart}</td>
56 <td class="crm-mailSettings-domain">{$row.domain}</td>
57 <td class="crm-mailSettings-return_path">{$row.return_path}</td>
58 <td class="crm-mailSettings-protocol">{$row.protocol}</td>
59 <td class="crm-mailSettings-source">{$row.source}</td>
60 <!--<td>{$row.port}</td>-->
61 <td class="crm-mailSettings-is_ssl">{if $row.is_ssl eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
62 <td class="crm-mailSettings-is_default">{if $row.is_default eq 1}{ts}Bounce Processing <strong>(Default)</strong>{/ts}{else}{ts}Email-to-Activity{/ts}{/if}&nbsp;</td>
63 <td>{$row.action|replace:'xx':$row.id}</td>
64 </tr>
65 {/foreach}
66 </table>
67 {/strip}
68
69 </div>
70 </div>
71 {else}
72 <div class="messages status no-popup">
73 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
74 {ts}None found.{/ts}
75 </div>
76 {/if}
77 <div class="action-link">
78 {crmButton q="action=add&reset=1" id="newMailSettings" icon="circle-plus"}{ts}Add Mail Account{/ts}{/crmButton}
79 {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
80 </div>
81 {/if}