]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10724 Finished help strings for scale and outcome edit forms
authornicolasconnault <nicolasconnault>
Wed, 8 Aug 2007 09:09:46 +0000 (09:09 +0000)
committernicolasconnault <nicolasconnault>
Wed, 8 Aug 2007 09:09:46 +0000 (09:09 +0000)
grade/edit/outcome/edit_form.php
grade/edit/scale/edit_form.php
grade/edit/tree/item_form.php
lang/en_utf8/grades.php

index b7827c77698bcb3f9928334707dfe2d68b5d5df9..b7071e8cf9d980e8c34832b6f726a5231f615baf 100644 (file)
@@ -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));
index 8025415df295b4f2a6d32dfca012967ea3d65214..e749cdfc827f1d45abee70be606c4fd360c39414 100644 (file)
@@ -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);
 
index a4cfde4730cd574211db47359cf9eef54c162ef6..f1d441a780c41adaa0afa8b5823dd4d16ba609ce 100644 (file)
@@ -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'));
index 18cdd5c195401fa3476c4230b6e4902bf5ce6f83..67ef14925131bc5b5ec208e1402dc1346e11f61e 100644 (file)
@@ -273,6 +273,7 @@ $string['outcomereport'] = 'Outcome report';
 $string['outcomesstandard'] = 'Standard outcomes';
 $string['outcomesstandardavailable'] = 'Available standard outcomes';
 $string['outcomestandard'] = 'Standard outcome';
+$string['outcomestandardhelp'] = 'A Standard outcome is available site-wide, for all courses.';
 $string['outcomes'] = 'Outcomes';
 $string['overridden'] = 'Overridden';
 $string['overriddenhelp'] = 'When on, the overridden flag prevents any future attempts to automatically adjust the value of the grade. This flag is often set internally by the gradebook, but can be switched on and off manually using this form element.';
@@ -309,7 +310,8 @@ $string['right'] = 'Right';
 $string['savechanges'] = 'Save Changes';
 $string['savepreferences'] = 'Save Preferences';
 $string['scaledpct'] = 'Scaled %%';
-$string['scaleidhelp'] = 'The scale upon which this grade item is based.';
+$string['scaleidhelp'] = 'The scale to which this $a is linked.';
+$string['scalestandardhelp'] = 'A standard scale is one that is available site-wide, for all courses.';
 $string['selectdestination'] = 'Select destination of $a';
 $string['septab'] = 'Tab';
 $string['sepcomma'] = 'Comma';