Browse Source

Bugfix: use attribute at forms

andre 2 years ago
parent
commit
90022d081a

+ 0 - 6
app/UI/Client/Ressource/Sections/AdditionalSection.php

@@ -41,11 +41,5 @@ class AdditionalSection extends FreeFieldsSection
 
         $this->generateDoubleSection([new Text('description'), new Text('state')]);
 
-        $field = new Text('description');
-        $this->addField($field);
-
-        $field = new Text('notes');
-        $this->addField($field);
-
     }
 }

+ 8 - 1
app/UI/Client/Ressource/Sections/GeneralSection.php

@@ -62,8 +62,15 @@ class GeneralSection extends FreeFieldsSection
         $this->generateDoubleSection([$passwd, $repPasswd]);
 
         $type = new Select('type');
-        $capacity = new Number('capacity');
+        $capacity = new Number('capacity',0);
 
         $this->generateDoubleSection([$type, $capacity]);
+
+        $field = new Text('description');
+        $this->addField($field);
+
+        $field = new Text('notes');
+        $this->addField($field);
+
     }
 }