mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-54056-master' of git://github.com/junpataleta/moodle
This commit is contained in:
commit
372def96c4
1 changed files with 21 additions and 17 deletions
|
@ -235,10 +235,13 @@ class gradingform_guide_renderer extends plugin_renderer_base {
|
||||||
// Grading remark text area.
|
// Grading remark text area.
|
||||||
$input = html_writer::tag('textarea', s($currentremark), $remarkparams);
|
$input = html_writer::tag('textarea', s($currentremark), $remarkparams);
|
||||||
|
|
||||||
|
// Show the frequently-used comments chooser only if there are defined entries.
|
||||||
|
if (!empty($comments)) {
|
||||||
// Frequently used comments chooser.
|
// Frequently used comments chooser.
|
||||||
$chooserbuttonid = 'criteria-' . $criterion['id'] . '-commentchooser';
|
$chooserbuttonid = 'criteria-' . $criterion['id'] . '-commentchooser';
|
||||||
$commentchooserparams = array('id' => $chooserbuttonid, 'class' => 'commentchooser');
|
$commentchooserparams = array('id' => $chooserbuttonid, 'class' => 'commentchooser');
|
||||||
$commentchooser = html_writer::tag('button', get_string('insertcomment', 'gradingform_guide'), $commentchooserparams);
|
$commentchooser = html_writer::tag('button', get_string('insertcomment', 'gradingform_guide'),
|
||||||
|
$commentchooserparams);
|
||||||
|
|
||||||
// Option items for the frequently used comments chooser dialog.
|
// Option items for the frequently used comments chooser dialog.
|
||||||
$commentoptions = array();
|
$commentoptions = array();
|
||||||
|
@ -254,6 +257,7 @@ class gradingform_guide_renderer extends plugin_renderer_base {
|
||||||
// Include comment_chooser module.
|
// Include comment_chooser module.
|
||||||
$PAGE->requires->js_call_amd('gradingform_guide/comment_chooser', 'initialise',
|
$PAGE->requires->js_call_amd('gradingform_guide/comment_chooser', 'initialise',
|
||||||
array($criterion['id'], $chooserbuttonid, $remarkid, $commentoptions));
|
array($criterion['id'], $chooserbuttonid, $remarkid, $commentoptions));
|
||||||
|
}
|
||||||
|
|
||||||
// Hidden marking guide remark label.
|
// Hidden marking guide remark label.
|
||||||
$remarklabelparams = array(
|
$remarklabelparams = array(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue