
<div class="detail-border-bottom"></div>

<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/smtp_auth_toggle.js"}
                </script>
<script language="javascript">
    {literal}
    SUGAR.util.doWhen(function () {
        return $("#contentTable").length == 0;
    }, SUGAR.themes.actionMenu);
    {/literal}
</script>
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="">
<tr>
<td class="buttons" align="left" NOWRAP width="80%">
<div class="actionsContainer">
<form action="index.php" method="post" name="DetailView" id="formDetailView">
<input type="hidden" name="module" value="{$module}">
<input type="hidden" name="record" value="{$fields.id.value}">
<input type="hidden" name="return_action">
<input type="hidden" name="return_module">
<input type="hidden" name="return_id">
<input type="hidden" name="module_tab">
<input type="hidden" name="isDuplicate" value="false">
<input type="hidden" name="offset" value="{$offset}">
<input type="hidden" name="action" value="EditView">
<input type="hidden" name="sugar_body_only">
{if !$config.enable_action_menu}
<div class="buttons">
{if $bean->aclAccess("edit")}
<input title="{$APP.LBL_EDIT_BUTTON_TITLE}"
accessKey="{$APP.LBL_EDIT_BUTTON_KEY}"
name="Edit"
id="edit_button"
class="button primary"
type="button"
value="{$APP.LBL_EDIT_BUTTON_LABEL}"
onclick="window.location.href='index.php?module=OutboundEmailAccounts&action=EditView&record={$id}&return_module=OutboundEmailAccounts&return_action=DetailView&return_id={$id}'"/>
{/if}
{if $bean->aclAccess("delete")}<input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="button" onclick="var _form = document.getElementById('formDetailView'); _form.return_module.value='OutboundEmailAccounts'; _form.return_action.value='ListView'; _form.action.value='Delete'; if(confirm('{$APP.NTC_DELETE_CONFIRMATION}')) SUGAR.ajaxUI.submitForm(_form); return false;" type="submit" name="Delete" value="{$APP.LBL_DELETE_BUTTON_LABEL}" id="delete_button">{/if} 
{if $bean->aclAccess("detail")}{if !empty($fields.id.value) && $isAuditEnabled}<input id="btn_view_change_log" title="{$APP.LNK_VIEW_CHANGE_LOG}" class="button" onclick='open_popup("Audit", "600", "400", "&record={$fields.id.value}&module_name=OutboundEmailAccounts", true, false,  {ldelim} "call_back_function":"set_return","form_name":"EditView","field_to_name_array":[] {rdelim} ); return false;' type="button" value="{$APP.LNK_VIEW_CHANGE_LOG}">{/if}{/if}
</div>
{/if}
</form>
</div>
</td>
<td align="right" width="20%" class="buttons">{$ADMIN_EDIT}
</td>
</tr>
</table>
{sugar_include include=$includes}
<div class="detail-view">
<div class="mobile-pagination">{$PAGINATION}</div>

<ul class="nav nav-tabs">

{if $config.enable_action_menu and $config.enable_action_menu != false}
<li role="presentation" class="active">
<a id="tab0" data-toggle="tab" class="hidden-xs">
{sugar_translate label='DEFAULT' module='OutboundEmailAccounts'}
</a>
<a id="xstab0" href="#" class="visible-xs first-tab dropdown-toggle" data-toggle="dropdown">
{sugar_translate label='DEFAULT' module='OutboundEmailAccounts'}
</a>
</li>


{/if}
{if $config.enable_action_menu and $config.enable_action_menu != false}
<li id="tab-actions" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">ACTIONS<span class="suitepicon suitepicon-action-caret"></span></a>
<ul class="dropdown-menu">
<li>{if $bean->aclAccess("edit")}
<input title="{$APP.LBL_EDIT_BUTTON_TITLE}"
accessKey="{$APP.LBL_EDIT_BUTTON_KEY}"
name="Edit"
id="edit_button"
class="button primary"
type="button"
value="{$APP.LBL_EDIT_BUTTON_LABEL}"
onclick="window.location.href='index.php?module=OutboundEmailAccounts&action=EditView&record={$id}&return_module=OutboundEmailAccounts&return_action=DetailView&return_id={$id}'"/>
{/if}</li>
<li>{if $bean->aclAccess("delete")}<input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="button" onclick="var _form = document.getElementById('formDetailView'); _form.return_module.value='OutboundEmailAccounts'; _form.return_action.value='ListView'; _form.action.value='Delete'; if(confirm('{$APP.NTC_DELETE_CONFIRMATION}')) SUGAR.ajaxUI.submitForm(_form); return false;" type="submit" name="Delete" value="{$APP.LBL_DELETE_BUTTON_LABEL}" id="delete_button">{/if} </li>
<li>{if $bean->aclAccess("detail")}{if !empty($fields.id.value) && $isAuditEnabled}<input id="btn_view_change_log" title="{$APP.LNK_VIEW_CHANGE_LOG}" class="button" onclick='open_popup("Audit", "600", "400", "&record={$fields.id.value}&module_name=OutboundEmailAccounts", true, false,  {ldelim} "call_back_function":"set_return","form_name":"EditView","field_to_name_array":[] {rdelim} ); return false;' type="button" value="{$APP.LNK_VIEW_CHANGE_LOG}">{/if}{/if}</li>
</ul>
</li>
<li class="tab-inline-pagination">
{$PAGINATION}
</li>
{/if}
</ul>
<div class="clearfix"></div>

{if $config.enable_action_menu and $config.enable_action_menu != false}

<div class="tab-content">
{else}

<div class="tab-content" style="padding: 0; border: 0;">
{/if}


{if $config.enable_action_menu and $config.enable_action_menu != false}
<div class="tab-pane-NOBOOTSTRAPTOGGLER active fade in" id='tab-content-0'>





<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="name">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_NAME' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="name" field="name" >

{if !$fields.name.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.name.value) <= 0}
{assign var="value" value=$fields.name.default_value }
{else}
{assign var="value" value=$fields.name.value }
{/if} 
<span class="sugar_field" id="{$fields.name.name}">{$fields.name.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="">
</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="type">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_TYPE' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="enum" field="type" >

{if !$fields.type.hidden}
{counter name="panelFieldCount" print=false}


{if is_string($fields.type.options)}
<input type="hidden" class="sugar_field" id="{$fields.type.name}" value="{ $fields.type.options }">
{ $fields.type.options }
{else}
<input type="hidden" class="sugar_field" id="{$fields.type.name}" value="{ $fields.type.value }">
{ $fields.type.options[$fields.type.value]}
{/if}
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="">
</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-12 detail-view-row-item" data-field="owner_name">


<div class="col-xs-12 col-sm-2 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_OWNER_NAME' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-10 detail-view-field d-flex" type="relate" field="owner_name" colspan='3'>

{if !$fields.owner_name.hidden}
{counter name="panelFieldCount" print=false}

<span id="user_id" class="sugar_field" data-id-value="{$fields.user_id.value}">{$fields.owner_name.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>

</div>

</div>
{else}

<div class="tab-pane-NOBOOTSTRAPTOGGLER panel-collapse"></div>
{/if}
</div>

<div class="panel-content">





{if $config.enable_action_menu and $config.enable_action_menu != false}

{else}

<div class="panel panel-default">
<div class="panel-heading ">
<a class="" role="button" data-toggle="collapse" href="#top-panel--1" aria-expanded="false">
<div class="col-xs-10 col-sm-11 col-md-11">
{sugar_translate label='DEFAULT' module='OutboundEmailAccounts'}
</div>
</a>
</div>
<div class="panel-body panel-collapse collapse in panelContainer" id="top-panel--1" data-id="DEFAULT">
<div class="tab-content">
<!-- TAB CONTENT -->





<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="name">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_NAME' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="name" field="name" >

{if !$fields.name.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.name.value) <= 0}
{assign var="value" value=$fields.name.default_value }
{else}
{assign var="value" value=$fields.name.value }
{/if} 
<span class="sugar_field" id="{$fields.name.name}">{$fields.name.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="">
</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="type">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_TYPE' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="enum" field="type" >

{if !$fields.type.hidden}
{counter name="panelFieldCount" print=false}


{if is_string($fields.type.options)}
<input type="hidden" class="sugar_field" id="{$fields.type.name}" value="{ $fields.type.options }">
{ $fields.type.options }
{else}
<input type="hidden" class="sugar_field" id="{$fields.type.name}" value="{ $fields.type.value }">
{ $fields.type.options[$fields.type.value]}
{/if}
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="">
</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-12 detail-view-row-item" data-field="owner_name">


<div class="col-xs-12 col-sm-2 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_OWNER_NAME' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-10 detail-view-field d-flex" type="relate" field="owner_name" colspan='3'>

{if !$fields.owner_name.hidden}
{counter name="panelFieldCount" print=false}

<span id="user_id" class="sugar_field" data-id-value="{$fields.user_id.value}">{$fields.owner_name.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>

</div>

</div>
</div>
</div>
{/if}





{if $config.enable_action_menu and $config.enable_action_menu != false}

<div class="panel panel-default">
<div class="panel-heading ">
<a class="" role="button" data-toggle="collapse" href="#top-panel-0" aria-expanded="false">
<div class="col-xs-10 col-sm-11 col-md-11">
{sugar_translate label='LBL_CONNECTION_CONFIGURATION' module='OutboundEmailAccounts'}
</div>
</a>
</div>
<div class="panel-body panel-collapse collapse in panelContainer" id="top-panel-0"  data-id="LBL_CONNECTION_CONFIGURATION">
<div class="tab-content">
<!-- TAB CONTENT -->





<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="mail_smtpserver">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_MAIL_SMTPSERVER' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="mail_smtpserver" >

{if !$fields.mail_smtpserver.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.mail_smtpserver.value) <= 0}
{assign var="value" value=$fields.mail_smtpserver.default_value }
{else}
{assign var="value" value=$fields.mail_smtpserver.value }
{/if} 
<span class="sugar_field" id="{$fields.mail_smtpserver.name}">{$fields.mail_smtpserver.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="mail_smtpauth_req">


<div class="col-xs-12 col-sm-4 label col-2-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_MAIL_SMTPAUTH_REQ' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="bool" field="mail_smtpauth_req" >

{if !$fields.mail_smtpauth_req.hidden}
{counter name="panelFieldCount" print=false}

{if strval($fields.mail_smtpauth_req.value) == "1" || strval($fields.mail_smtpauth_req.value) == "yes" || strval($fields.mail_smtpauth_req.value) == "on"} 
{assign var="checked" value='checked="checked"'}
{else}
{assign var="checked" value=""}
{/if}
<input type="checkbox" class="checkbox" name="{$fields.mail_smtpauth_req.name}" id="{$fields.mail_smtpauth_req.name}" value="$fields.mail_smtpauth_req.value" disabled="true" {$checked}>
{/if}

</div>
<div class="dotted-border"></div>


</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="mail_smtpssl">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_MAIL_SMTPSSL' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="enum" field="mail_smtpssl" >

{if !$fields.mail_smtpssl.hidden}
{counter name="panelFieldCount" print=false}


{if is_string($fields.mail_smtpssl.options)}
<input type="hidden" class="sugar_field" id="{$fields.mail_smtpssl.name}" value="{ $fields.mail_smtpssl.options }">
{ $fields.mail_smtpssl.options }
{else}
<input type="hidden" class="sugar_field" id="{$fields.mail_smtpssl.name}" value="{ $fields.mail_smtpssl.value }">
{ $fields.mail_smtpssl.options[$fields.mail_smtpssl.value]}
{/if}
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="mail_smtpuser">


<div class="col-xs-12 col-sm-4 label col-2-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_MAIL_SMTPUSER' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="mail_smtpuser" >

{if !$fields.mail_smtpuser.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.mail_smtpuser.value) <= 0}
{assign var="value" value=$fields.mail_smtpuser.default_value }
{else}
{assign var="value" value=$fields.mail_smtpuser.value }
{/if} 
<span class="sugar_field" id="{$fields.mail_smtpuser.name}">{$fields.mail_smtpuser.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="mail_smtpport">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_MAIL_SMTPPORT' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="mail_smtpport" >

{if !$fields.mail_smtpport.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.mail_smtpport.value) <= 0}
{assign var="value" value=$fields.mail_smtpport.default_value }
{else}
{assign var="value" value=$fields.mail_smtpport.value }
{/if} 
<span class="sugar_field" id="{$fields.mail_smtpport.name}">{$fields.mail_smtpport.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="">
</div>

</div>

</div>
</div>
</div>
{else}

<div class="panel panel-default">
<div class="panel-heading ">
<a class="" role="button" data-toggle="collapse" href="#top-panel-0" aria-expanded="false">
<div class="col-xs-10 col-sm-11 col-md-11">
{sugar_translate label='LBL_CONNECTION_CONFIGURATION' module='OutboundEmailAccounts'}
</div>
</a>
</div>
<div class="panel-body panel-collapse collapse in panelContainer" id="top-panel-0" data-id="LBL_CONNECTION_CONFIGURATION">
<div class="tab-content">
<!-- TAB CONTENT -->





<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="mail_smtpserver">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_MAIL_SMTPSERVER' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="mail_smtpserver" >

{if !$fields.mail_smtpserver.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.mail_smtpserver.value) <= 0}
{assign var="value" value=$fields.mail_smtpserver.default_value }
{else}
{assign var="value" value=$fields.mail_smtpserver.value }
{/if} 
<span class="sugar_field" id="{$fields.mail_smtpserver.name}">{$fields.mail_smtpserver.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="mail_smtpauth_req">


<div class="col-xs-12 col-sm-4 label col-2-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_MAIL_SMTPAUTH_REQ' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="bool" field="mail_smtpauth_req" >

{if !$fields.mail_smtpauth_req.hidden}
{counter name="panelFieldCount" print=false}

{if strval($fields.mail_smtpauth_req.value) == "1" || strval($fields.mail_smtpauth_req.value) == "yes" || strval($fields.mail_smtpauth_req.value) == "on"} 
{assign var="checked" value='checked="checked"'}
{else}
{assign var="checked" value=""}
{/if}
<input type="checkbox" class="checkbox" name="{$fields.mail_smtpauth_req.name}" id="{$fields.mail_smtpauth_req.name}" value="$fields.mail_smtpauth_req.value" disabled="true" {$checked}>
{/if}

</div>
<div class="dotted-border"></div>


</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="mail_smtpssl">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_MAIL_SMTPSSL' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="enum" field="mail_smtpssl" >

{if !$fields.mail_smtpssl.hidden}
{counter name="panelFieldCount" print=false}


{if is_string($fields.mail_smtpssl.options)}
<input type="hidden" class="sugar_field" id="{$fields.mail_smtpssl.name}" value="{ $fields.mail_smtpssl.options }">
{ $fields.mail_smtpssl.options }
{else}
<input type="hidden" class="sugar_field" id="{$fields.mail_smtpssl.name}" value="{ $fields.mail_smtpssl.value }">
{ $fields.mail_smtpssl.options[$fields.mail_smtpssl.value]}
{/if}
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="mail_smtpuser">


<div class="col-xs-12 col-sm-4 label col-2-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_MAIL_SMTPUSER' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="mail_smtpuser" >

{if !$fields.mail_smtpuser.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.mail_smtpuser.value) <= 0}
{assign var="value" value=$fields.mail_smtpuser.default_value }
{else}
{assign var="value" value=$fields.mail_smtpuser.value }
{/if} 
<span class="sugar_field" id="{$fields.mail_smtpuser.name}">{$fields.mail_smtpuser.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="mail_smtpport">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_MAIL_SMTPPORT' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="mail_smtpport" >

{if !$fields.mail_smtpport.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.mail_smtpport.value) <= 0}
{assign var="value" value=$fields.mail_smtpport.default_value }
{else}
{assign var="value" value=$fields.mail_smtpport.value }
{/if} 
<span class="sugar_field" id="{$fields.mail_smtpport.name}">{$fields.mail_smtpport.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="">
</div>

</div>

</div>
</div>
</div>
{/if}





{if $config.enable_action_menu and $config.enable_action_menu != false}

<div class="panel panel-default">
<div class="panel-heading ">
<a class="" role="button" data-toggle="collapse" href="#top-panel-1" aria-expanded="false">
<div class="col-xs-10 col-sm-11 col-md-11">
{sugar_translate label='LBL_OUTBOUND_CONFIGURATION' module='OutboundEmailAccounts'}
</div>
</a>
</div>
<div class="panel-body panel-collapse collapse in panelContainer" id="top-panel-1"  data-id="LBL_OUTBOUND_CONFIGURATION">
<div class="tab-content">
<!-- TAB CONTENT -->





<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="smtp_from_name">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_SMTP_FROM_NAME' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="smtp_from_name" >

{if !$fields.smtp_from_name.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.smtp_from_name.value) <= 0}
{assign var="value" value=$fields.smtp_from_name.default_value }
{else}
{assign var="value" value=$fields.smtp_from_name.value }
{/if} 
<span class="sugar_field" id="{$fields.smtp_from_name.name}">{$fields.smtp_from_name.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="reply_to_name">


<div class="col-xs-12 col-sm-4 label col-2-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_REPLY_TO_NAME' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="reply_to_name" >

{if !$fields.reply_to_name.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.reply_to_name.value) <= 0}
{assign var="value" value=$fields.reply_to_name.default_value }
{else}
{assign var="value" value=$fields.reply_to_name.value }
{/if} 
<span class="sugar_field" id="{$fields.reply_to_name.name}">{$fields.reply_to_name.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="smtp_from_addr">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_SMTP_FROM_ADDR' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="smtp_from_addr" >

{if !$fields.smtp_from_addr.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.smtp_from_addr.value) <= 0}
{assign var="value" value=$fields.smtp_from_addr.default_value }
{else}
{assign var="value" value=$fields.smtp_from_addr.value }
{/if} 
<span class="sugar_field" id="{$fields.smtp_from_addr.name}">{$fields.smtp_from_addr.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="reply_to_addr">


<div class="col-xs-12 col-sm-4 label col-2-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_REPLY_TO_ADDR' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="reply_to_addr" >

{if !$fields.reply_to_addr.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.reply_to_addr.value) <= 0}
{assign var="value" value=$fields.reply_to_addr.default_value }
{else}
{assign var="value" value=$fields.reply_to_addr.value }
{/if} 
<span class="sugar_field" id="{$fields.reply_to_addr.name}">{$fields.reply_to_addr.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="signature">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_SIGNATURE' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="wysiwyg" field="signature" >

{if !$fields.signature.hidden}
{counter name="panelFieldCount" print=false}

<iframe
id="{$fields.signature.name}"
name="{$fields.signature.name}"
srcdoc="{$fields.signature.value}"
style="width:100%;height:230px"
></iframe>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="">
</div>

</div>

</div>
</div>
</div>
{else}

<div class="panel panel-default">
<div class="panel-heading ">
<a class="" role="button" data-toggle="collapse" href="#top-panel-1" aria-expanded="false">
<div class="col-xs-10 col-sm-11 col-md-11">
{sugar_translate label='LBL_OUTBOUND_CONFIGURATION' module='OutboundEmailAccounts'}
</div>
</a>
</div>
<div class="panel-body panel-collapse collapse in panelContainer" id="top-panel-1" data-id="LBL_OUTBOUND_CONFIGURATION">
<div class="tab-content">
<!-- TAB CONTENT -->





<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="smtp_from_name">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_SMTP_FROM_NAME' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="smtp_from_name" >

{if !$fields.smtp_from_name.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.smtp_from_name.value) <= 0}
{assign var="value" value=$fields.smtp_from_name.default_value }
{else}
{assign var="value" value=$fields.smtp_from_name.value }
{/if} 
<span class="sugar_field" id="{$fields.smtp_from_name.name}">{$fields.smtp_from_name.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="reply_to_name">


<div class="col-xs-12 col-sm-4 label col-2-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_REPLY_TO_NAME' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="reply_to_name" >

{if !$fields.reply_to_name.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.reply_to_name.value) <= 0}
{assign var="value" value=$fields.reply_to_name.default_value }
{else}
{assign var="value" value=$fields.reply_to_name.value }
{/if} 
<span class="sugar_field" id="{$fields.reply_to_name.name}">{$fields.reply_to_name.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="smtp_from_addr">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_SMTP_FROM_ADDR' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="smtp_from_addr" >

{if !$fields.smtp_from_addr.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.smtp_from_addr.value) <= 0}
{assign var="value" value=$fields.smtp_from_addr.default_value }
{else}
{assign var="value" value=$fields.smtp_from_addr.value }
{/if} 
<span class="sugar_field" id="{$fields.smtp_from_addr.name}">{$fields.smtp_from_addr.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="reply_to_addr">


<div class="col-xs-12 col-sm-4 label col-2-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_REPLY_TO_ADDR' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="varchar" field="reply_to_addr" >

{if !$fields.reply_to_addr.hidden}
{counter name="panelFieldCount" print=false}

{if strlen($fields.reply_to_addr.value) <= 0}
{assign var="value" value=$fields.reply_to_addr.default_value }
{else}
{assign var="value" value=$fields.reply_to_addr.value }
{/if} 
<span class="sugar_field" id="{$fields.reply_to_addr.name}">{$fields.reply_to_addr.value}</span>
{/if}

</div>
<div class="dotted-border"></div>


</div>

</div>


<div class="row detail-view-row">



<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="signature">


<div class="col-xs-12 col-sm-4 label col-1-label">


{capture name="label" assign="label"}{sugar_translate label='LBL_SIGNATURE' module='OutboundEmailAccounts'}{/capture}
{$label|strip_semicolon}:
</div>


<div class="col-xs-12 col-sm-8 detail-view-field d-flex" type="wysiwyg" field="signature" >

{if !$fields.signature.hidden}
{counter name="panelFieldCount" print=false}

<iframe
id="{$fields.signature.name}"
name="{$fields.signature.name}"
srcdoc="{$fields.signature.value}"
style="width:100%;height:230px"
></iframe>
{/if}

</div>
<div class="dotted-border"></div>


</div>




<div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="">
</div>

</div>

</div>
</div>
</div>
{/if}
</div>
</div>

</form>
<script>SUGAR.util.doWhen("document.getElementById('form') != null",
        function(){ldelim}SUGAR.util.buildAccessKeyLabels();{rdelim});
</script>            <script type="text/javascript" src="include/InlineEditing/inlineEditing.js"></script>
<script type="text/javascript" src="modules/Favorites/favorites.js"></script>
{literal}
<script type="text/javascript">

                    let selectTabDetailView = function(tab) {
                        $('#content div.tab-content div.tab-pane-NOBOOTSTRAPTOGGLER').hide();
                        $('#content div.tab-content div.tab-pane-NOBOOTSTRAPTOGGLER').eq(tab).show().addClass('active').addClass('in');
                        $('#content div.detail-view div.panel-content div.panel.panel').hide();
                        $('#content div.panel-content div.panel.tab-panel-' + tab).show();
                    };

                    var selectTabOnError = function(tab) {
                        selectTabDetailView(tab);
                        $('#content ul.nav.nav-tabs > li').removeClass('active');
                        $('#content ul.nav.nav-tabs > li a').css('color', '');

                        $('#content ul.nav.nav-tabs > li').eq(tab).find('a').first().css('color', 'red');
                        $('#content ul.nav.nav-tabs > li').eq(tab).addClass('active');

                    };

                    var selectTabOnErrorInputHandle = function(inputHandle) {
                        var tab = $(inputHandle).closest('.tab-pane-NOBOOTSTRAPTOGGLER').attr('id').match(/^detailpanel_(.*)$/)[1];
                        selectTabOnError(tab);
                    };


                    $(function(){
                        $('#content ul.nav.nav-tabs > li > a[data-toggle="tab"]').click(function(e){
                            if(typeof $(this).parent().find('a').first().attr('id') != 'undefined') {
                                var tab = parseInt($(this).parent().find('a').first().attr('id').match(/^tab(?<number>(.)*)$/)[1]);
                                selectTabDetailView(tab);
                            }
                        });
                    });

                </script>
{/literal}