diff --git a/admin/FormGenerator.php b/admin/FormGenerator.php index 26abaaec..0deecf98 100644 --- a/admin/FormGenerator.php +++ b/admin/FormGenerator.php @@ -38,9 +38,10 @@ class FormGenerator $formulario .= ''; $formulario .= $this->createButtonsForms(); $formulario .= $this->showLoading(); - $formulario .= $this->createJavaScript($this->formulario_js); - $formulario .= ''; + $formulario .= ''; + $formulario .= $this->createJavaScript($this->formulario_js); + $formulario .= ''; return $formulario; } @@ -227,6 +228,14 @@ class FormGenerator $props = $elemento['propriedades']; switch ($tipo) { + case 'file': + return '

' . $elemento['text'] . '

+
'; + break; + case 'toggle': return '