mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-19027 Added <th> for controls row in edit mode with screenreader and editing on. Merged from MOODLE_19_STABLE
This commit is contained in:
parent
ef42c03fd7
commit
d0d1293d4c
@ -1263,13 +1263,25 @@ class grade_report_grader extends grade_report {
|
|||||||
* @return string HTML
|
* @return string HTML
|
||||||
*/
|
*/
|
||||||
public function get_iconshtml() {
|
public function get_iconshtml() {
|
||||||
global $USER;
|
global $USER, $CFG;
|
||||||
|
|
||||||
$iconshtml = '';
|
$iconshtml = '';
|
||||||
if ($USER->gradeediting[$this->courseid]) {
|
if ($USER->gradeediting[$this->courseid]) {
|
||||||
|
|
||||||
$iconshtml = '<tr class="controls">';
|
$iconshtml = '<tr class="controls">';
|
||||||
|
|
||||||
|
$fixedstudents = empty($USER->screenreader) && $CFG->grade_report_fixedstudents;
|
||||||
|
$showuseridnumber = $this->get_pref('showuseridnumber');
|
||||||
|
|
||||||
|
$colspan = '';
|
||||||
|
if ($showuseridnumber) {
|
||||||
|
$colspan = 'colspan="2"';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$fixedstudents) {
|
||||||
|
$iconshtml .= '<th class="header c0 controls" scope="row" '.$colspan.'>'.$this->get_lang_string('controls','grades').'</th>';
|
||||||
|
}
|
||||||
|
|
||||||
$columncount = 0;
|
$columncount = 0;
|
||||||
foreach ($this->gtree->items as $itemid=>$unused) {
|
foreach ($this->gtree->items as $itemid=>$unused) {
|
||||||
// emulate grade element
|
// emulate grade element
|
||||||
|
Loading…
x
Reference in New Issue
Block a user