diff --git a/main/inc/lib/formvalidator/FormValidator.class.php b/main/inc/lib/formvalidator/FormValidator.class.php index d2a3b4026d..3246554570 100644 --- a/main/inc/lib/formvalidator/FormValidator.class.php +++ b/main/inc/lib/formvalidator/FormValidator.class.php @@ -22,7 +22,7 @@ class FormValidator extends HTML_QuickForm /** * Create a form validator based on an array of form data: - * + * * array( * 'name' => 'zombie_report_parameters', //optional * 'method' => 'GET', //optional @@ -42,13 +42,13 @@ class FormValidator extends HTML_QuickForm * array( * 'name' => 'submit_button', * 'type' => 'style_submit_button', - * 'value' => get_lang('Search'), + * 'value' => get_lang('Search'), * 'attributes' => array('class' => 'search') * ) * ) * ); - * - * @param array form_data + * + * @param array form_data * @return FormValidator */ static function create($form_data) @@ -148,7 +148,7 @@ class FormValidator extends HTML_QuickForm // Modify the default templates $renderer = & $this->defaultRenderer(); - //Form template + //Form template $form_template = '
{content} @@ -166,8 +166,8 @@ class FormValidator extends HTML_QuickForm $element_template = ' {label} {element} '; $renderer->setElementTemplate($element_template); } else { - $element_template = ' -
+ $element_template = ' +
'; $renderer->setElementTemplate($element_template); @@ -199,7 +199,7 @@ class FormValidator extends HTML_QuickForm $renderer->setElementTemplate($button_element_template_in_bottom, 'submit_fixed_in_bottom'); //When you want to group buttons use something like this - /* $group = array(); + /* $group = array(); $group[] = $form->createElement('button', 'mark_all', get_lang('MarkAll')); $group[] = $form->createElement('button', 'unmark_all', get_lang('UnmarkAll')); $form->addGroup($group, 'buttons_in_action'); @@ -216,19 +216,14 @@ class FormValidator extends HTML_QuickForm * */ } - - - - - - - //Set Header template + + //Set Header template $renderer->setHeaderTemplate('{header}'); //Set required field template HTML_QuickForm::setRequiredNote('* ' . get_lang('ThisFieldIsRequired') . ''); $required_note_template = << +
{requiredNote}
EOT;