andre 2 anni fa
parent
commit
73b3a38b39
1 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  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()
     {
-        $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')]);
 
     }
 }