Remove last in-between parser class
[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 {if !empty($setupActions)}
62 <form>
63 <select id="crm-mail-setup" name="crm-mail-setup" class="crm-select2 crm-form-select" aria-label="{ts}Add Mail Account{/ts}">
64 <option value="" aria-hidden="true">{ts}Add Mail Account{/ts}</option>
65 {foreach from=$setupActions key=setupActionsName item=setupAction}
66 <option value="{$setupActionsName|escape}">{$setupAction.title|escape}</option>
67 {/foreach}
68 </select>
69 </form>
70 {else}
71 <div class="action-link">
72 {crmButton q="action=add&reset=1" id="newMailSettings" icon="plus-circle"}{ts}Add Mail Account{/ts}{/crmButton}
73 {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}
74 </div>
75 {/if}
76
77 {/if}
78 </div>
79 {literal}
80 <script type="text/javascript">
81 cj('#crm-mail-setup').val('');
82 cj('#crm-mail-setup').on('select2-selecting', function(event) {
83 if (!event.val) {
84 return;
85 }
86 event.stopPropagation();
87 var url = CRM.url('civicrm/ajax/setupMailAccount', {type: event.val});
88 window.location = url;
89 });
90 </script>
91 {/literal}