<?php
namespace Modules\Partners\Customers\Dashboard; class View_Utils_FormAdmin extends \App\Mvc\View_Utils_FormAbstract { public function getForm() { $_LANG = \App\Loader_Lang::getInstance()->getGlobal(); $form = \Engine\Form\General::create(); $form->setStyle('width', '300'); $fieldset = \Engine\Form\Container\Fieldset::create(); $form->addContainer($fieldset); $field = new \App\Form\Input\Autocomplete_Customer($this->lang['indexWithoutCustomer']['formFields']['customer'], 'customer', $this->values['customer']); $field->onPostSelect("$('form_').submit();"); $field->setStyle('buttons', false); $fieldset->addElement($field); $form->addElement(new \Engine\Form\Input\Hidden(null, $this->submitButtonName, 1)); return $form; } } 