diff --git a/extend/system/Form.php b/extend/system/Form.php index b6d0a61..d4f5fdc 100644 --- a/extend/system/Form.php +++ b/extend/system/Form.php @@ -396,9 +396,15 @@ class FormBuilder { $value = $this->formtype ? 'value="{$data.' . $data['name'] . '}"' : ''; $param = '$data.' . $data['name']; + if ($this->formtype) { + return << + checked lay-skin="switch" /> + Eof; + } return << - checked lay-skin="switch" /> + Eof; }