Merge pull request #14591 from JKingsnorth/dev/core#1064
[civicrm-core.git] / templates / CRM / Admin / Page / MailSettings.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
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
14 <div class="crm-block crm-content-block">
15 {if $rows}
16 <div id="mSettings">
17 <div class="form-item">
18 {strip}
19 <table cellpadding="0" cellspacing="0" border="0" class="row-highlight">
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}&nbsp;</td>
47 <td>{$row.action|replace:'xx':$row.id}</td>
48 </tr>
49 {/foreach}
50 </table>
51 {/strip}
52
53 </div>
54 </div>
55 {else}
56 <div class="messages status no-popup">
57 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
58 {ts}None found.{/ts}
59 </div>
60 {/if}
61 <div class="action-link">
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}
64 </div>
65 {/if}
66 </div>