/** * Generates a widget to show a html grid filter * * @param \Engine\Crud\Form $form * @return string */ public static function _(Form $crudForm) { $crudForm->initForm(); $form = $crudForm->getForm(); $code = '<form method="' . $form->getMethod() . '" action="' . $form->getAction() . '" class="form-horizontal">'; $code .= "\n <fieldset>\n <legend>" . $crudForm->getTitle() . "</legend>"; return $code; }