andre 2 лет назад
Родитель
Сommit
b662fb550d
1 измененных файлов с 3 добавлено и 8 удалено
  1. 3 8
      app/UI/Client/Ressource/Forms/AddRessourceForm.php

+ 3 - 8
app/UI/Client/Ressource/Forms/AddRessourceForm.php

@@ -34,7 +34,7 @@ use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\RawSection;
  */
 class AddRessourceForm extends SortedFieldForm implements ClientArea
 {
-//    use FormExtendedTrait;
+    use FormExtendedTrait;
 
     protected $id    = 'addRessourceForm';
     protected $name  = 'addRessourceForm';
@@ -57,14 +57,9 @@ class AddRessourceForm extends SortedFieldForm implements ClientArea
         $email->addInputComponent((new InputGroupElements\Text('domain'))->addHtmlAttribute('readonly','true'));
         $this->addSection($email);
 
-        $desc = new InputGroup('descGroup');
-        $desc->addTextField('description',false,false);
-        $desc->addInputComponent(new InputGroupElements\Select('type'));
-        $this->addSection($desc);
+        $this->generateDoubleSection([new Text('description'), new Select('type')]);
 
-//        $this->generateDoubleSection([new Text('description'), new Select('type')]);
-
-//        $this->generateDoubleSection([new Select('manager'), new Select('status')]);
+        $this->generateDoubleSection([new Select('manager'), new Select('status')]);
 
     }
 }