Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/grade/report/singleview/classes/local/screen/tablelike.php

    r136 r1331  
    142142            }
    143143
     144            // Singleview users without proper permissions should be presented
     145            // disabled checkboxes for the Exclude grade attribute.
     146            if ($field == 'exclude' && !has_capability('moodle/grade:manage', $this->context)){
     147                $html->disabled = true;
     148            }
     149
    144150            $line[] = $html;
    145151        }
     
    184190        $underlying = get_class($this);
    185191
    186         $data = new stdClass;
     192        $data = new stdClass();
    187193        $data->table = $table;
    188194        $data->instance = $this;
     
    192198
    193199        $buttons = html_writer::tag('div', $buttonhtml, $buttonattr);
     200        $selectview = new select($this->courseid, $this->itemid, $this->groupid);
    194201
    195202        $sessionvalidation = html_writer::empty_tag('input',
    196203            array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey()));
    197204
    198         return html_writer::tag('form',
     205        $html = $selectview->html();
     206        $html .= html_writer::tag('form',
    199207            $buttons . html_writer::table($table) . $this->bulk_insert() . $buttons . $sessionvalidation,
    200208            array('method' => 'POST')
    201209        );
     210        $html .= $selectview->html();
     211        return $html;
    202212    }
    203213
     
    223233        $save = html_writer::empty_tag('input', array(
    224234            'type' => 'submit',
    225             'value' => get_string('update'),
     235            'value' => get_string('save', 'gradereport_singleview'),
    226236        ));
    227237
Note: See TracChangeset for help on using the changeset viewer.