Permalink
Browse files

Fix required option

  • Loading branch information...
gillesbourgeat committed Jan 8, 2019
1 parent d2fe473 commit 075ba53b0b670ebd3ca7a06614da2d5fb8805c8e
Showing with 8 additions and 0 deletions.
  1. +8 −0 core/lib/Thelia/Form/MailingSystemModificationForm.php
@@ -30,40 +30,48 @@ protected function buildForm()
"label_attr" => array("for" => "enabled_field"),
))
->add("host", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Host"),
"label_attr" => array("for" => "host_field"),
))
->add("port", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Port"),
"label_attr" => array("for" => "port_field"),
))
->add("encryption", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Encryption"),
"label_attr" => array(
"for" => "encryption_field",
"help" => Translator::getInstance()->trans("ssl, tls or empty"),
),
))
->add("username", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Username"),
"label_attr" => array("for" => "username_field"),
))
->add("password", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Password"),
"label_attr" => array("for" => "password_field"),
))
->add("authmode", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Auth mode"),
"label_attr" => array(
"for" => "authmode_field",
"help" => Translator::getInstance()->trans("plain, login, cram-md5 or empty"),
),
))
->add("timeout", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Timeout"),
"label_attr" => array("for" => "timeout_field"),
))
->add("sourceip", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Source IP"),
"label_attr" => array("for" => "sourceip_field"),
))

0 comments on commit 075ba53

Please sign in to comment.