Quellcode durchsuchen

test use sections

andre vor 3 Monaten
Ursprung
Commit
b4dc4c2fdb

+ 2 - 2
app/UI/Client/Setting/Modals/InfoModal.php

@@ -6,9 +6,9 @@ use ThurData\Servers\KerioEmail\App\UI\Client\Setting\Forms\InfoForm;
 use ThurData\Servers\KerioEmail\Core\UI\Interfaces\ClientArea;
 use ThurData\Servers\KerioEmail\Core\UI\Interfaces\ClientArea;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ModalActionButtons\BaseCancelButton;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ModalActionButtons\BaseCancelButton;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ModalActionButtons\BaseRedirectButton;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ModalActionButtons\BaseRedirectButton;
-use ThurData\Servers\KerioEmail\Core\UI\Widget\Modals\BaseEditModal;
+use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Modals\ModalExtendedTabsEdit;
 
 
-class InfoModal extends BaseEditModal implements ClientArea
+class InfoModal extends ModalExtendedTabsEdit implements ClientArea
 {
 {
 
 
     protected $id    = 'infoModal';
     protected $id    = 'infoModal';

+ 2 - 31
app/UI/Client/Setting/Sections/GeneralSection.php

@@ -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\InputGroupElements;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Hidden;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Hidden;
 use function ThurData\Servers\KerioEmail\Core\Helper\di;
 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()
     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>
         $message = 'DNS Informations for <b id="infoalertmaildomain" class="lu-alert--lg"></b>
             <div id="addalertheader" class="lu-alert--lg"></div>
             <div id="addalertheader" class="lu-alert--lg"></div>
             <div id="addmxmessage"></div>
             <div id="addmxmessage"></div>
@@ -94,6 +65,6 @@ class GeneralSection extends FreeFieldsSection
         $row->addInputComponent((new InputGroupElements\Text('dkim'))->addHtmlAttribute('readonly','true'));
         $row->addInputComponent((new InputGroupElements\Text('dkim'))->addHtmlAttribute('readonly','true'));
         $this->addSection($row);
         $this->addSection($row);
         $this->generateDoubleSection([new Hidden('infomaildomain'), new Hidden('id')]);
         $this->generateDoubleSection([new Hidden('infomaildomain'), new Hidden('id')]);
-        $this->generateDoubleSection([new Hidden('selfdns'), new Hidden('dnsok')]); */
+        $this->generateDoubleSection([new Hidden('selfdns'), new Hidden('dnsok')]);
     }
     }
 }
 }