andre hai 3 meses
pai
achega
1602646384
Modificáronse 1 ficheiros con 27 adicións e 2 borrados
  1. 27 2
      app/UI/Client/Setting/Sections/GeneralSection.php

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

@@ -27,7 +27,32 @@ class GeneralSection extends FreeFieldsSection
 
     public function initContent()
     {
-        di('lang')->absoluteT('dnsinfomessage') ? $message = di('lang')->absoluteT('dnsinfomessage') :
+        $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') :
         $message = 'DNS Informations for <b id="infoalertmaildomain" class="lu-alert--lg"></b>
             <div id="addalertheader" class="lu-alert--lg"></div>
             <div id="addmxmessage"></div>
@@ -65,6 +90,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')]); */
     }
 }