if ($grade_item->gradetype == GRADE_TYPE_VALUE) {
// numeric grade
$mform->addElement('text', 'finalgrade', get_string('finalgrade', 'grades'));
+ $mform->setHelpButton('finalgrade', array(false, get_string('finalgrade', 'grades'),
+ false, true, false, get_string('finalgradehelp', 'grades')));
} else if ($grade_item->gradetype == GRADE_TYPE_SCALE) {
// scale grade
$scaleopt = array();
if (empty($grade_item->outcomeid)) {
- $scaleopt[-1] = get_string('nograde');
+ $scaleopt[-1] = get_string('nograde');
} else {
- $scaleopt[-1] = get_string('nooutcome', 'grades');
+ $scaleopt[-1] = get_string('nooutcome', 'grades');
}
$i = 1;
}
$mform->addElement('select', 'finalgrade', get_string('finalgrade', 'grades'), $scaleopt);
+ $mform->setHelpButton('finalgrade', array(false, get_string('finalgrade', 'grades'),
+ false, true, false, get_string('finalgradehelp', 'grades')));
}
$mform->addElement('advcheckbox', 'overridden', get_string('overridden', 'grades'));
+ $mform->setHelpButton('overridden', array(false, get_string('overridden', 'grades'),
+ false, true, false, get_string('overriddenhelp', 'grades')));
$mform->addElement('advcheckbox', 'excluded', get_string('excluded', 'grades'));
+ $mform->setHelpButton('excluded', array(false, get_string('excluded', 'grades'),
+ false, true, false, get_string('excludedhelp', 'grades')));
/// hiding
/// advcheckbox is not compatible with disabledIf !!
$mform->addElement('checkbox', 'hidden', get_string('hidden', 'grades'));
+ $mform->setHelpButton('hidden', array('hidden', get_string('hidden', 'grades'), 'grade'));
$mform->addElement('date_time_selector', 'hiddenuntil', get_string('hiddenuntil', 'grades'), array('optional'=>true));
+ $mform->setHelpButton('hiddenuntil', array('hiddenuntil', get_string('hiddenuntil', 'grades'), 'grade'));
$mform->disabledIf('hiddenuntil', 'hidden', 'checked');
/// locking
$mform->addElement('advcheckbox', 'locked', get_string('locked', 'grades'));
+ $mform->setHelpButton('locked', array('locked', get_string('locked', 'grades'), 'grade'));
$mform->addElement('date_time_selector', 'locktime', get_string('locktime', 'grades'), array('optional'=>true));
+ $mform->setHelpButton('locktime', array('locktime', get_string('locktime', 'grades'), 'grade'));
$mform->disabledIf('locktime', 'gradetype', 'eq', GRADE_TYPE_NONE);
// Feedback format is automatically converted to html if user has enabled editor
$mform->addElement('htmleditor', 'feedback', get_string('feedback', 'grades'),
array('rows'=>'15', 'course'=>$COURSE->id, 'cols'=>'45'));
+ $mform->setHelpButton('feedback', array(false, get_string('feedback', 'grades'),
+ false, true, false, get_string('feedbackhelp', 'grades')));
$mform->setType('text', PARAM_RAW); // to be cleaned before display, no XSS risk
$mform->addElement('format', 'feedbackformat', get_string('format'));
$mform->setHelpButton('feedbackformat', array('textformat', get_string('helpformatting')));
}
}
-?>
\ No newline at end of file
+?>
$mform->addRule('itemname', get_string('required'), 'required', null, 'client');
$mform->addElement('text', 'iteminfo', get_string('iteminfo', 'grades'));
+ $mform->setHelpButton('iteminfo', array(false, get_string('iteminfo', 'grades'),
+ false, true, false, get_string('iteminfohelp', 'grades')));
$mform->addElement('text', 'idnumber', get_string('idnumber'));
+ $mform->setHelpButton('idnumber', array(false, get_string('idnumber'),
+ false, true, false, get_string('idnumberhelp', 'grades')));
// allow setting of outcomes on module items too
$options = array();
}
}
$mform->addElement('select', 'outcomeid', get_string('outcome', 'grades'), $options);
+ $mform->setHelpButton('outcomeid', array(false, get_string('outcomeid', 'grades'),
+ false, true, false, get_string('outcomeidhelp', 'grades')));
$mform->addRule('outcomeid', get_string('required'), 'required');
$options = array(0=>get_string('none'));
}
}
$mform->addElement('select', 'cmid', get_string('linkedactivity', 'grades'), $options);
+ $mform->setHelpButton('cmid', array(false, get_string('linkedactivity', 'grades'),
+ false, true, false, get_string('linkedactivityhelp', 'grades')));
$mform->setDefault('cmid', 0);
//$mform->addElement('text', 'calculation', get_string('calculation', 'grades'));
/// hiding
/// advcheckbox is not compatible with disabledIf !!
$mform->addElement('checkbox', 'hidden', get_string('hidden', 'grades'));
+ $mform->setHelpButton('hidden', array('hidden', get_string('hidden', 'grades'), 'grade'));
$mform->addElement('date_time_selector', 'hiddenuntil', get_string('hiddenuntil', 'grades'), array('optional'=>true));
+ $mform->setHelpButton('hiddenuntil', array('hiddenuntil', get_string('hiddenuntil', 'grades'), 'grade'));
$mform->disabledIf('hiddenuntil', 'hidden', 'checked');
//locking
$mform->addElement('advcheckbox', 'locked', get_string('locked', 'grades'));
+ $mform->setHelpButton('locked', array('locked', get_string('locked', 'grades'), 'grade'));
$mform->addElement('date_time_selector', 'locktime', get_string('locktime', 'grades'), array('optional'=>true));
+ $mform->setHelpButton('locktime', array('locktime', get_string('locktime', 'grades'), 'grade'));
/// hidden params
$mform->addElement('hidden', 'id', 0);
$string['errorreprintheadersnonnumeric'] = 'Received non-numeric value for reprint-headers';
$string['exceptions'] = 'Exceptions';
$string['excluded'] = 'Excluded';
+$string['excludedhelp'] = 'If -excluded- is switched on, this grade will be excluded from any aggregation performed by any parent grade item or category.';
$string['expand'] = 'Expand Category';
$string['export'] = 'Export';
$string['exportplugins'] = 'Export plugins';
$string['extracredit'] = 'Extra Credit';
$string['extracreditwarning'] = 'Note: Setting all items for a category to extra credit will effectively remove them from the grade calculation. Since there will be no point total';
$string['feedback'] = 'Feedback';
+$string['feedbackhelp'] = 'Notes added to the grade by the teacher. They can be extensive, personalised feedback or a simple code that refers to an internal system of feedback.';
$string['feedbackadd'] = 'Add feedback';
$string['feedbackedit'] = 'Edit feedback';
$string['feedbackview'] = 'View feedback';
$string['feedbacksaved'] = 'Feedback saved';
$string['finalgrade'] = 'Final grade';
+$string['finalgradehelp'] = 'The final grade (cached) after all calculations are performed.';
$string['forelementtypes'] = ' for the selected $a';
$string['forstudents'] = 'For Students';
$string['full'] = 'Full';
$string['letter'] = 'Letter';
$string['letters'] = 'Letters';
$string['linkedactivity'] = 'Linked activity';
+$string['linkedactivityhelp'] = 'An optional activity this outcome item is linked to.';
$string['lock'] = 'Lock';
$string['locked'] = 'Locked';
$string['locktime'] = 'Locked until';
$string['operations'] = 'Operations';
$string['outcome'] = 'Outcome';
$string['outcomecreate'] = 'Add a new outcome';
+$string['outcomeidhelp'] = 'The outcome this grade item represents.';
$string['outcomeitem'] = 'Outcome item';
$string['outcomeitemsedit'] = 'Edit outcome item';
$string['outcomes'] = 'Outcomes';
$string['outcomestandard'] = 'Standard outcome';
$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.';
$string['overallavg'] = 'Overall average';
$string['pctoftotalgrade'] = '%% of total grade';
$string['percent'] = 'Percent';
<h1>Hidden</h1>
-<p>Whether or not the grades in this grade item are <strong>hidden</strong> to all participants. Usually after the end of the activity and of the grading process.. A typical sequence of events would be:
+<p>Whether or not the grades are <strong>hidden</strong> to participants. Usually after the end of the activity and of the grading process.. A typical sequence of events would be:
</p>
<table class="generaltable boxaligncenter" cellpadding="4" cellspacing="1" summary="Principal events in the grading process, and matching locked and hidden states">
<tr>
<h1>Hidden until</h1>
-<p>Date until which the grades in this grade item will be <strong>hidden</strong> to all participants. Usually after the end of the activity and of the grading process.. A typical sequence of events would be:
+<p>Date until which the grades will be <strong>hidden</strong> to participants. Usually after the end of the activity and of the grading process.. A typical sequence of events would be:
</p>
<table class="generaltable boxaligncenter" cellpadding="4" cellspacing="1" summary="Principal events in the grading process, and matching locked and hidden states">
<tr>
-<h1>Grade item Locked attribute</h1>
-<p>Whether or not this grade item accepts automatic updates from the activity it is linked to. Usually this is switched on (locked) as soon as the activity is finished and submissions are no longer accepted. A typical sequence of events would be:
+<h1>Locked</h1>
+<p>Whether or not the grades accept automatic updates from the activity they are linked to. Usually this is switched on (locked) as soon as the activity is finished and submissions are no longer accepted. A typical sequence of events would be:
</p>
<table class="generaltable boxaligncenter" cellpadding="4" cellspacing="1" summary="Principal events in the grading process, and matching locked and hidden states">
<tr>
<h1>Locked until</h1>
-<p>Date <strong>after</strong> which the grades in this grade item will be <strong>locked</strong>. Usually this date is set to the end of the activity, and the beginning of the grading process.. A typical sequence of events would be:
+<p>Date <strong>after</strong> which the grades will be <strong>locked</strong>. Usually this date is set to the end of the activity, and the beginning of the grading process.. A typical sequence of events would be:
</p>
<table class="generaltable boxaligncenter" cellpadding="4" cellspacing="1" summary="Principal events in the grading process, and matching locked and hidden states">
<tr>