|
|
@@ -9,10 +9,6 @@ use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\InputGroup;
|
|
|
use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\InputGroupElements;
|
|
|
use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Hidden;
|
|
|
use function ThurData\Servers\KerioEmail\Core\Helper\di;
|
|
|
-use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Validators\Decimal;
|
|
|
-use ThurData\Servers\KerioEmail\App\Validators\PasswordsValidator;
|
|
|
-use ThurData\Servers\KerioEmail\App\Validators\RepeatPasswordValidator;
|
|
|
-use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Password;
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
@@ -31,32 +27,7 @@ class GeneralSection extends FreeFieldsSection
|
|
|
|
|
|
public function initContent()
|
|
|
{
|
|
|
- $this->generateDoubleSection([new Text('firstname'), new Text('lastname')]);
|
|
|
-
|
|
|
- $email = new InputGroup('usernameGroup');
|
|
|
-
|
|
|
- $email->addTextField('username', false, true);
|
|
|
- $email->addInputAddon('emailSign', false, '@');
|
|
|
- $email->addInputComponent((new InputGroupElements\Text('domain'))->addHtmlAttribute('readonly','true'));
|
|
|
- $this->addSection($email);
|
|
|
-
|
|
|
- $this->generateDoubleSection([new Text('display_name'), new Select('status')]);
|
|
|
- $quota = new Text('quota');
|
|
|
- $quota->setDescription('description');
|
|
|
- $quota->addValidator(new Decimal(0));
|
|
|
- $this->generateDoubleSection([$quota, new Select('unit')]);
|
|
|
-
|
|
|
- $passwd = new Password('password');
|
|
|
- $passwd->setDescription('description');
|
|
|
- $passwd->addValidator(new PasswordsValidator());
|
|
|
- $passwd->notEmpty();
|
|
|
-
|
|
|
- $repPasswd = (new Password('repeat_password'))->addValidator(new RepeatPasswordValidator());
|
|
|
- $repPasswd->notEmpty();
|
|
|
-
|
|
|
- $this->generateDoubleSection([$passwd, $repPasswd]);
|
|
|
-
|
|
|
-/* di('lang')->absoluteT('dnsinfomessage') ? $message = di('lang')->absoluteT('dnsinfomessage') :
|
|
|
+ di('lang')->absoluteT('dnsinfomessage') ? $message = di('lang')->absoluteT('dnsinfomessage') :
|
|
|
$message = 'DNS Informations for <b id="infoalertmaildomain" class="lu-alert--lg"></b>
|
|
|
<div id="addalertheader" class="lu-alert--lg"></div>
|
|
|
<div id="addmxmessage"></div>
|
|
|
@@ -94,6 +65,6 @@ class GeneralSection extends FreeFieldsSection
|
|
|
$row->addInputComponent((new InputGroupElements\Text('dkim'))->addHtmlAttribute('readonly','true'));
|
|
|
$this->addSection($row);
|
|
|
$this->generateDoubleSection([new Hidden('infomaildomain'), new Hidden('id')]);
|
|
|
- $this->generateDoubleSection([new Hidden('selfdns'), new Hidden('dnsok')]); */
|
|
|
+ $this->generateDoubleSection([new Hidden('selfdns'), new Hidden('dnsok')]);
|
|
|
}
|
|
|
}
|