mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
Merge branch 'MDL-35763-m23' of git://github.com/netspotau/moodle-mod_assign into MOODLE_23_STABLE
This commit is contained in:
commit
30939d2a9a
1 changed files with 3 additions and 2 deletions
|
@ -44,16 +44,17 @@ class mod_assign_grading_options_form extends moodleform {
|
||||||
function definition() {
|
function definition() {
|
||||||
$mform = $this->_form;
|
$mform = $this->_form;
|
||||||
$instance = $this->_customdata;
|
$instance = $this->_customdata;
|
||||||
|
$dirtyclass = array('class'=>'ignoredirty');
|
||||||
|
|
||||||
$mform->addElement('header', 'general', get_string('gradingoptions', 'assign'));
|
$mform->addElement('header', 'general', get_string('gradingoptions', 'assign'));
|
||||||
// visible elements
|
// visible elements
|
||||||
$options = array(-1=>get_string('all'),10=>'10', 20=>'20', 50=>'50', 100=>'100');
|
$options = array(-1=>get_string('all'),10=>'10', 20=>'20', 50=>'50', 100=>'100');
|
||||||
$mform->addElement('select', 'perpage', get_string('assignmentsperpage', 'assign'), $options);
|
$mform->addElement('select', 'perpage', get_string('assignmentsperpage', 'assign'), $options, $dirtyclass);
|
||||||
$options = array('' => get_string('filternone', 'assign'),
|
$options = array('' => get_string('filternone', 'assign'),
|
||||||
ASSIGN_FILTER_SUBMITTED => get_string('filtersubmitted', 'assign'),
|
ASSIGN_FILTER_SUBMITTED => get_string('filtersubmitted', 'assign'),
|
||||||
ASSIGN_FILTER_REQUIRE_GRADING => get_string('filterrequiregrading', 'assign'));
|
ASSIGN_FILTER_REQUIRE_GRADING => get_string('filterrequiregrading', 'assign'));
|
||||||
if ($instance['submissionsenabled']) {
|
if ($instance['submissionsenabled']) {
|
||||||
$mform->addElement('select', 'filter', get_string('filter', 'assign'), $options);
|
$mform->addElement('select', 'filter', get_string('filter', 'assign'), $options, $dirtyclass);
|
||||||
}
|
}
|
||||||
|
|
||||||
// quickgrading
|
// quickgrading
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue