Formvalidator: Not neccesary to use the "static" element when adding a hint when using formvalidor, just use an array in the label argument

skala
Julio Montoya 13 years ago
parent fb0d8474c5
commit dda56df3cf
  1. 4
      main/gradebook/lib/fe/evalform.class.php

@ -429,12 +429,12 @@ class EvalForm extends FormValidator
'maxlength' => '5'
));
} else {
$this->add_textfield('max', get_lang('QualificationNumeric'), false, array (
$this->add_textfield('max', array(get_lang('QualificationNumeric'), get_lang('CannotChangeTheMaxNote')), false, array (
'size' => '4',
'maxlength' => '5',
'disabled' => 'disabled'
));
$this->addElement('static','label','','<small>'.get_lang('CannotChangeTheMaxNote').'</small>');
//$this->addElement('static','label','','<small>'.get_lang('CannotChangeTheMaxNote').'</small>');
}
} else {
$this->add_textfield('max', get_lang('QualificationNumeric'), true, array (

Loading…
Cancel
Save