* html: the html code
* js: generic javascript code which will be added into the form
* js_import: array of javascript files which should be imported
* js_submit: javascript function call which will be added to the submit event, * function has to return true if valid
* * @return array the generated content */ public function generate($parent); }