mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-10724 Finished help strings for scale and outcome edit forms
This commit is contained in:
parent
476501240b
commit
ca96d0c4ad
4 changed files with 11 additions and 2 deletions
|
@ -19,10 +19,14 @@ class edit_outcome_form extends moodleform {
|
|||
$mform->setType('shortname', PARAM_NOTAGS);
|
||||
|
||||
$mform->addElement('advcheckbox', 'standard', get_string('outcomestandard', 'grades'));
|
||||
$mform->setHelpButton('standard', array(false, get_string('outcomestandard', 'grades'),
|
||||
false, true, false, get_string('outcomestandardhelp', 'grades')));
|
||||
|
||||
$options = array();
|
||||
|
||||
$mform->addElement('select', 'scaleid', get_string('scale'), $options);
|
||||
$mform->setHelpButton('scaleid', array(false, get_string('scale'),
|
||||
false, true, false, get_string('scaleidhelp', 'grades', get_string('outcome', 'grades'))));
|
||||
$mform->addRule('scaleid', get_string('required'), 'required');
|
||||
|
||||
$mform->addElement('htmleditor', 'description', get_string('description'), array('cols'=>80, 'rows'=>20));
|
||||
|
|
|
@ -15,10 +15,13 @@ class edit_scale_form extends moodleform {
|
|||
$mform->setType('name', PARAM_TEXT);
|
||||
|
||||
$mform->addElement('advcheckbox', 'standard', get_string('scalestandard'));
|
||||
$mform->setHelpButton('standard', array(false, get_string('scalestandard'),
|
||||
false, true, false, get_string('scalestandardhelp', 'grades')));
|
||||
|
||||
$mform->addElement('static', 'activities', get_string('activities'));
|
||||
|
||||
$mform->addElement('textarea', 'scale', get_string('scale'), array('cols'=>50, 'rows'=>2));
|
||||
$mform->setHelpButton('scale', array('scales', get_string('scale')));
|
||||
$mform->addRule('scale', get_string('required'), 'required', null, 'client');
|
||||
$mform->setType('scale', PARAM_TEXT);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ class edit_item_form extends moodleform {
|
|||
}
|
||||
$mform->addElement('select', 'scaleid', get_string('scale'), $options);
|
||||
$mform->setHelpButton('scaleid', array(false, get_string('scaleid', 'grades'),
|
||||
false, true, false, get_string('scaleidhelp', 'grades')));
|
||||
false, true, false, get_string('scaleidhelp', 'grades', get_string('gradeitem', 'grades'))));
|
||||
$mform->disabledIf('scaleid', 'gradetype', 'noteq', GRADE_TYPE_SCALE);
|
||||
|
||||
$mform->addElement('text', 'grademax', get_string('grademax', 'grades'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue