MDL-77632 core_grades: Add rowtitle class to grade category cell
This commit is contained in:
@@ -844,7 +844,8 @@ class grade_edit_tree_column_name extends grade_edit_tree_column {
|
||||
$moveaction = isset($params['moveaction']) ? $params['moveaction'] : '';
|
||||
$categorycell = parent::get_category_cell($category, $levelclass, $params);
|
||||
$categorycell->colspan = ($this->deepest_level + 2) - $params['level'];
|
||||
$categorycell->text = html_writer::div($mastercheckbox . $visibilitytoggle . $moveaction . $params['name'], 'font-weight-bold');
|
||||
$rowtitle = html_writer::div($params['name'], 'rowtitle');
|
||||
$categorycell->text = html_writer::div($mastercheckbox . $visibilitytoggle . $moveaction . $rowtitle, 'font-weight-bold');
|
||||
return $categorycell;
|
||||
}
|
||||
|
||||
|
||||
@@ -126,10 +126,12 @@ Feature: Teachers can toggle the visibility of the grade categories in the Grade
|
||||
And I should not see "Course total" in the "setup-grades" "table"
|
||||
# Expand the grade category 'Course'. The aggregated max grade should not be displayed within the 'Course' row anymore.
|
||||
And I click on "Expand" "link" in the "Course" "table_row"
|
||||
And the following should exist in the "setup-grades" table:
|
||||
| Name | Max grade |
|
||||
| Course | |
|
||||
| Category 1 | 140.00 |
|
||||
| Course total | 240.00 |
|
||||
And I should not see "Category 1 total" in the "setup-grades" "table"
|
||||
|
||||
Scenario: A teacher can collapse and expand grade categories in the Gradebook setup when moving grade items
|
||||
Given I navigate to "Setup > Gradebook setup" in the course gradebook
|
||||
|
||||
Reference in New Issue
Block a user