mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2026-08-04 04:30:22 +08:00
104 lines
3.6 KiB
PHP
104 lines
3.6 KiB
PHP
<?php
|
|
$viewdefs ['OutboundEmailAccounts'] = [
|
|
'DetailView' => [
|
|
'templateMeta' => [
|
|
'form' => [
|
|
'buttons' => [
|
|
'EDIT',
|
|
'DELETE',
|
|
[
|
|
'customCode' => '
|
|
{if $fields.type.value === "user" && $fields.created_by.value == $current_user_id}
|
|
<input title="{$MOD.LBL_SET_AS_DEFAULT_BUTTON}"
|
|
type="button"
|
|
class="button"
|
|
id="set-as-default-outbound"
|
|
onClick="document.location.href=\'index.php?module=OutboundEmailAccounts&action=SetDefault&record={$fields.id.value}&return_module=OutboundEmailAccounts&return_action=DetailView&return_id={$fields.id.value}\';window.parent.postMessage(\'cache-reload\');"
|
|
name="button" value="{$MOD.LBL_SET_AS_DEFAULT_BUTTON}" />
|
|
{/if}
|
|
'
|
|
]
|
|
],
|
|
],
|
|
'maxColumns' => '2',
|
|
'widths' => [
|
|
[
|
|
'label' => '10',
|
|
'field' => '30',
|
|
],
|
|
[
|
|
'label' => '10',
|
|
'field' => '30',
|
|
],
|
|
],
|
|
'useTabs' => false,
|
|
'tabDefs' => [
|
|
'DEFAULT' => [
|
|
'newTab' => false,
|
|
'panelDefault' => 'expanded',
|
|
],
|
|
'LBL_EDITVIEW_PANEL1' => [
|
|
'newTab' => false,
|
|
'panelDefault' => 'expanded',
|
|
],
|
|
],
|
|
'preForm' => '
|
|
<script type="text/javascript">
|
|
{literal}var userService = function() { return { isAdmin: function() { return {/literal}{if $is_admin}true{else}false{/if}{literal};}}}();{/literal}
|
|
{suite_combinescripts
|
|
files="modules/OutboundEmailAccounts/js/fields.js,
|
|
modules/OutboundEmailAccounts/js/owner_toggle.js,
|
|
modules/OutboundEmailAccounts/js/panel_toggle.js,
|
|
modules/OutboundEmailAccounts/js/auth_type_fields_toggle.js"}
|
|
</script>
|
|
',
|
|
],
|
|
'panels' => [
|
|
'default' => [
|
|
[
|
|
'name',
|
|
'is_default'
|
|
],
|
|
[
|
|
'type',
|
|
''
|
|
],
|
|
[
|
|
'owner_name',
|
|
],
|
|
],
|
|
'lbl_connection_configuration' => [
|
|
[
|
|
'auth_type',
|
|
'mail_smtpuser',
|
|
],
|
|
[
|
|
'mail_smtpserver',
|
|
'external_oauth_connection_name',
|
|
],
|
|
[
|
|
'mail_smtpssl',
|
|
'',
|
|
],
|
|
[
|
|
'mail_smtpport',
|
|
''
|
|
],
|
|
],
|
|
'lbl_outbound_configuration' => [
|
|
[
|
|
'smtp_from_name',
|
|
'reply_to_name'
|
|
],
|
|
[
|
|
'smtp_from_addr',
|
|
'reply_to_addr'
|
|
],
|
|
[
|
|
'signature',
|
|
''
|
|
]
|
|
],
|
|
],
|
|
],
|
|
];
|