ソースを参照

add ressources

andre 2 年 前
コミット
73b3a38b39
1 ファイル変更10 行追加1 行削除
  1. 10 1
      app/UI/Client/Ressource/Forms/AddRessourceForm.php

+ 10 - 1
app/UI/Client/Ressource/Forms/AddRessourceForm.php

@@ -50,7 +50,16 @@ class AddRessourceForm extends SortedFieldForm implements ClientArea
 
 
     public function initFields()
     public function initFields()
     {
     {
-        $this->addSection(new GeneralSection());
+        $email = new InputGroup('usernameGroup');
+
+        $email->addTextField('name', false, true);
+        $email->addInputAddon('emailSign', false, '@');
+        $email->addInputComponent((new InputGroupElements\Text('domain'))->addHtmlAttribute('readonly','true'));
+        $this->addSection($email);
+
+        $this->generateDoubleSection([new Text('description'), new Select('type')]);
+
+        $this->generateDoubleSection([new Select('manager'), new Select('status')]);
 
 
     }
     }
 }
 }