Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {if $action eq 1 or $action eq 2 or $action eq 8} | |
11 | {include file="CRM/Admin/Form/MailSettings.tpl"} | |
12 | {else} | |
13 | ||
c67e7149 | 14 | <div class="crm-block crm-content-block"> |
6a488035 TO |
15 | {if $rows} |
16 | <div id="mSettings"> | |
6a488035 TO |
17 | <div class="form-item"> |
18 | {strip} | |
c67e7149 | 19 | <table cellpadding="0" cellspacing="0" border="0" class="row-highlight"> |
6a488035 TO |
20 | <thead class="sticky"> |
21 | <th>{ts}Name{/ts}</th> | |
22 | <th>{ts}Server{/ts}</th> | |
23 | <th>{ts}Username{/ts}</th> | |
24 | <th>{ts}Localpart{/ts}</th> | |
25 | <th>{ts}Domain{/ts}</th> | |
26 | <th>{ts}Return-Path{/ts}</th> | |
27 | <th>{ts}Protocol{/ts}</th> | |
28 | <th>{ts}Source{/ts}</th> | |
29 | <!--<th>{ts}Port{/ts}</th>--> | |
30 | <th>{ts}Use SSL?{/ts}</th> | |
31 | <th>{ts}Used For{/ts}</th> | |
32 | <th></th> | |
33 | </thead> | |
34 | {foreach from=$rows item=row} | |
35 | <tr id='rowid{$row.id}' class="crm-mailSettings {cycle values="odd-row,even-row"}"> | |
36 | <td class="crm-mailSettings-name">{$row.name}</td> | |
37 | <td class="crm-mailSettings-server">{$row.server}</td> | |
38 | <td class="crm-mailSettings-username">{$row.username}</td> | |
39 | <td class="crm-mailSettings-localpart">{$row.localpart}</td> | |
40 | <td class="crm-mailSettings-domain">{$row.domain}</td> | |
41 | <td class="crm-mailSettings-return_path">{$row.return_path}</td> | |
42 | <td class="crm-mailSettings-protocol">{$row.protocol}</td> | |
43 | <td class="crm-mailSettings-source">{$row.source}</td> | |
44 | <!--<td>{$row.port}</td>--> | |
45 | <td class="crm-mailSettings-is_ssl">{if $row.is_ssl eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> | |
46 | <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> | |
47 | <td>{$row.action|replace:'xx':$row.id}</td> | |
48 | </tr> | |
49 | {/foreach} | |
50 | </table> | |
51 | {/strip} | |
52 | ||
6a488035 TO |
53 | </div> |
54 | </div> | |
55 | {else} | |
56 | <div class="messages status no-popup"> | |
e2046b33 CW |
57 | <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/> |
58 | {ts}None found.{/ts} | |
6a488035 TO |
59 | </div> |
60 | {/if} | |
e2046b33 | 61 | <div class="action-link"> |
80bc2820 AH |
62 | {crmButton q="action=add&reset=1" id="newMailSettings" icon="plus-circle"}{ts}Add Mail Account{/ts}{/crmButton} |
63 | {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton} | |
e2046b33 | 64 | </div> |
232624b1 | 65 | {/if} |
c67e7149 | 66 | </div> |