<?php
 namespace Modules\Admin\ActivityDomains; class View_Utils_FormFilters extends \App\Mvc\View_Utils_FormAbstract { public function getForm() { $fieldsValues = $this->values['listingParams']->getFilters(); $form = \Engine\Form\Filters::create(); $form->setColumns(2); $fld = new \Engine\Form\Input\Text($this->lang['index']['filters']['text'], 'filters[text]', $fieldsValues['text']); $form->addElement($fld); $fld = new \App\Form\Input\Autocomplete_ClientActivityCategory($this->lang['index']['filters']['categoryName'], 'filters[categoryName]', $fieldsValues['categoryName']); $form->addElement($fld); $form->setJsCallback('MVC.listing.installedHandlers["listing"].reloadAndResetListing'); $form->loadMissingDefaultValues($this->values['listingParams']->getDefaultFilters()); return $form; } } 