Merge branch 'MDL-66999-master' of git://github.com/bmbrands/moodle

This commit is contained in:
Adrian Greeve 2019-12-23 14:26:39 +08:00
commit f00542c485
69 changed files with 1487 additions and 2168 deletions

View file

@ -403,7 +403,7 @@ class gradingform_rubric_renderer extends plugin_renderer_base {
'value' => $value
);
$input = html_writer::empty_tag('input', $criteriainputparams);
$rubrictemplate .= html_writer::tag('div', $input, array('class' => 'addcriterion'));
$rubrictemplate .= html_writer::tag('div', $input, array('class' => 'addcriterion btn btn-secondary'));
}
$rubrictemplate .= $this->rubric_edit_options($mode, $options);
$rubrictemplate .= html_writer::end_tag('div');

View file

@ -66,7 +66,7 @@ class core_grading_renderer extends plugin_renderer_base {
$img = $this->output->pix_icon($icon, '');
$txt = html_writer::tag('div', $text, array('class' => 'action-text'));
return html_writer::link($url, $img . $txt, array('class' => 'action'));
return html_writer::link($url, $img . $txt, array('class' => 'action btn btn-lg'));
}
/**

View file

@ -66,7 +66,7 @@ class behat_grading extends behat_base {
$editactionliteral = behat_context_helper::escape(get_string("manageactionedit", "grading"));
// Working both when adding and editing.
$definitionxpath = "//a[@class='action']" .
$definitionxpath = "//a[@class='action btn btn-lg']" .
"[./descendant::*[contains(., $newactionliteral) or contains(., $editactionliteral)]]";
$this->execute('behat_grading::i_go_to_advanced_grading_page', $this->escape($activityname));