<?php
namespace Modules\Documents\ImportedDocuments; class View_Utils_FormImport extends \App\Mvc\View_Utils_FormAbstract { public function getForm() { $form=\Engine\Form\General::create(); $form->addContainer(\Engine\Form\Container\Fieldset::create()); $file = new \Engine\Form\Input\File($this->lang['import']['file'], 'file', $this->values['file']); $file->setMandatory(true); $form->addElement($file); $form->addElement(new \Engine\Form\Input\Hidden('', $this->submitButtonName, 1)); return $form; } }