Email arrangement condition tester - refs BT#7683

pull/2487/head
Alex Aragon 9 years ago
parent b1ee7652d0
commit dd4cc44c35
  1. 4
      app/Resources/public/css/base.css
  2. 12
      main/admin/email_tester.php
  3. 10
      main/template/default/admin/email_tester.tpl

@ -5368,13 +5368,11 @@ div#chat-remote-video video {
}
#whoisonline .items-user{
text-align: center;
/*border:1px solid #dddddd; */
padding: 15px;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
box-shadow: 0 2px 3px #C8C8C8;
border: 1px solid #e6e6e6;
border: 1px solid #ECF0F1;
margin-bottom: 20px;
min-height: 230px;
}

@ -17,12 +17,12 @@ $this_section = SECTION_PLATFORM_ADMIN;
$toolName = get_lang('EMailTester');
$form = new FormValidator('email_tester');
$form->addText('smtp_host', get_lang('Host'), false, ['cols-size' => [3, 8, 1]]);
$form->addText('smtp_port', get_lang('Port'), false, ['cols-size' => [3, 8, 1]]);
$form->addText('destination', get_lang('Destination'), true, ['cols-size' => [3, 8, 1]]);
$form->addText('subject', get_lang('Subject'), true, ['cols-size' => [3, 8, 1]]);
$form->addHtmlEditor('content', get_lang('Message'), true, false, ['ToolbarSet' => 'Minimal', 'cols-size' => [3, 8, 1]]);
$form->addButtonSend(get_lang('SendMessage'), 'submit', false, ['cols-size' => [3, 8, 1]]);
$form->addText('smtp_host', get_lang('Host'), false, ['cols-size' => [2, 8, 2]]);
$form->addText('smtp_port', get_lang('Port'), false, ['cols-size' => [2, 8, 2]]);
$form->addText('destination', get_lang('Destination'), true, ['cols-size' => [2, 8, 2]]);
$form->addText('subject', get_lang('Subject'), true, ['cols-size' => [2, 8, 2]]);
$form->addHtmlEditor('content', get_lang('Message'), true, false, ['ToolbarSet' => 'Minimal', 'cols-size' => [2, 8, 2]]);
$form->addButtonSend(get_lang('SendMessage'), 'submit', false, ['cols-size' => [2, 8, 2]]);
$form->setDefaults([
'smtp_host' => $platform_email['SMTP_HOST'],
'smtp_port' => $platform_email['SMTP_PORT']

@ -1,9 +1,13 @@
<div class="row">
<div class="col-sm-5">
{% if errors is empty %}
<div class="col-md-12">
{{ form }}
</div>
{% if not errors is empty %}
<div class="col-sm-7">
{% else %}
<div class="col-md-6">
{{ form }}
</div>
<div class="col-md-6">
<h4 class="page-header">{{ 'Errors'|get_lang }}</h4>
<ul>
{% for error in errors %}

Loading…
Cancel
Save