mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-75423 gradereport_singleview: Styling fixes.
This commit is contained in:
parent
aa747024fc
commit
678a2bc29b
@ -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 = [];
|
||||
|
@ -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 = [
|
||||
|
@ -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 '';
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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()) {
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user