@@ -14,9 +14,11 @@ |
||
14 | 14 | parent::__construct($identifier, $name,$label,$value,$type); |
15 | 15 | $this->_input->getField()->setProperty("type", "radio"); |
16 | 16 | $this->_input->setClass("ui radio checkbox"); |
17 | - if(isset($name)) |
|
18 | - $this->_input->getField()->setProperty("name", $name); |
|
19 | - if(isset($type)) |
|
20 | - $this->setType($type); |
|
17 | + if(isset($name)) { |
|
18 | + $this->_input->getField()->setProperty("name", $name); |
|
19 | + } |
|
20 | + if(isset($type)) { |
|
21 | + $this->setType($type); |
|
22 | + } |
|
21 | 23 | } |
22 | 24 | } |
23 | 25 | \ No newline at end of file |
@@ -12,7 +12,8 @@ |
||
12 | 12 | public function __construct($identifier, $label=NULL,$value=NULL,$type=NULL) { |
13 | 13 | parent::__construct($identifier, NULL,$label,$value,$type); |
14 | 14 | $this->_input->setClass("ui checkbox"); |
15 | - if(isset($type)) |
|
16 | - $this->setType($type); |
|
15 | + if(isset($type)) { |
|
16 | + $this->setType($type); |
|
17 | + } |
|
17 | 18 | } |
18 | 19 | } |
19 | 20 | \ No newline at end of file |
@@ -9,8 +9,9 @@ |
||
9 | 9 | use TextFieldsTrait; |
10 | 10 | |
11 | 11 | public function __construct($identifier, $label=NULL,$type="text",$value=NULL,$placeholder=NULL) { |
12 | - if(!isset($placeholder) && $type==="text") |
|
13 | - $placeholder=$label; |
|
12 | + if(!isset($placeholder) && $type==="text") { |
|
13 | + $placeholder=$label; |
|
14 | + } |
|
14 | 15 | parent::__construct("field-".$identifier, new HtmlInput($identifier,$type,$value,$placeholder), $label); |
15 | 16 | } |
16 | 17 |