소스 검색

Bugfix: use attribute at forms

andre 2 년 전
부모
커밋
90022d081a
2개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 6
      app/UI/Client/Ressource/Sections/AdditionalSection.php
  2. 8 1
      app/UI/Client/Ressource/Sections/GeneralSection.php

+ 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);
+
     }
 }