Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
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 | {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} </td> | |
63 | <td>{$row.action|replace:'xx':$row.id}</td> | |
64 | </tr> | |
65 | {/foreach} | |
66 | </table> | |
67 | {/strip} | |
68 | ||
69 | {if $action ne 1 and $action ne 2} | |
70 | <div class="action-link"> | |
71 | <a href="{crmURL q="action=add&reset=1"}" id="newMailSettings" class="button"><span><div class="icon add-icon"></div>{ts}Add Mail Account{/ts}</span></a> | |
72 | </div> | |
73 | {/if} | |
74 | </div> | |
75 | </div> | |
76 | {else} | |
77 | <div class="messages status no-popup"> | |
78 | <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/> | |
79 | {capture assign=crmURL}{crmURL p='civicrm/admin/mailSettings' q="action=add&reset=1"}{/capture} | |
80 | {ts 1=$crmURL}There are no Mail Settings present. You can <a href='%1'>add one</a>.{/ts} | |
81 | </div> | |
82 | {/if} | |
232624b1 | 83 | {/if} |