MDL-75423 gradereport_singleview: Styling fixes.

This commit is contained in:
Ilya Tregubov 2022-10-26 10:11:54 +03:00 committed by Mihail Geshoski
parent aa747024fc
commit 678a2bc29b
6 changed files with 15 additions and 7 deletions

View File

@ -1716,7 +1716,7 @@ class grade_structure {
* @param grade_grade $grade A grade_grade object
* @return string
*/
public function get_grade_action_menu(grade_grade $grade) {
public function get_grade_action_menu(grade_grade $grade) : string {
global $OUTPUT;
$menuitems = [];

View File

@ -93,7 +93,7 @@ class core_grades_renderer extends plugin_renderer_base {
* @param bool $showbuttons Whether to display buttons (message, add to contacts) within the heading.
* @return string The raw HTML to render.
*/
public function user_heading(stdClass $user, int $courseid, bool $showbuttons = true) {
public function user_heading(stdClass $user, int $courseid, bool $showbuttons = true) : string {
global $USER;
$headingdata = [

View File

@ -110,7 +110,8 @@ class checkbox_attribute extends element {
html_writer::empty_tag('input', $hidden)
);
} else if ($this->ischecked) {
return $OUTPUT->pix_icon('i/checked', get_string('selected', 'core_form'));
return $OUTPUT->pix_icon('i/checked', get_string('selected', 'core_form'),
'moodle', ['class' => 'overrideexcludecheck']);
} else {
return '';
}

View File

@ -142,7 +142,7 @@ class singleview extends grade_report {
}
/**
* Function used to set the the appropriate item selector (raw HTML) based on the selected single view item type.
* Function used to set the appropriate item selector (raw HTML) based on the selected single view item type.
*
* @param string $itemtype The single view item type.
* @param int|null $itemid The item ID.

View File

@ -121,7 +121,7 @@ if ($itemtype == 'user') {
true, null, null, $report->screen->item, $actionbar);
} else {
print_grade_page_head($course->id, 'report', 'singleview', $reportname, false, $button,
true, null, null, null, $actionbar);
true, null, null, null, $actionbar, false);
}
if ($data = data_submitted()) {

View File

@ -24,7 +24,7 @@
}
.path-grade-report-singleview div.reporttable form div {
text-align: center;
text-align: left;
}
.path-grade-report-singleview .singleview_buttons {
@ -32,7 +32,14 @@
}
.path-grade-report-singleview div.reporttable h2 {
text-align: center;
text-align: left;
}
.overrideexcludecheck {
width: 14.75px;
height: 12px;
color: #2ca14f;
}
.path-grade-report-singleview .reporttable tbody th,