Skip to content

Commit

Permalink
Merge branch 'MDL-35763-m23' of git://github.com/netspotau/moodle-mod…
Browse files Browse the repository at this point in the history
…_assign into MOODLE_23_STABLE
  • Loading branch information
Sam Hemelryk committed Oct 7, 2012
2 parents 8c2eca7 + 36c7b86 commit 30939d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/assign/gradingoptionsform.php
Expand Up @@ -44,16 +44,17 @@ class mod_assign_grading_options_form extends moodleform {
function definition() {
$mform = $this->_form;
$instance = $this->_customdata;
$dirtyclass = array('class'=>'ignoredirty');

$mform->addElement('header', 'general', get_string('gradingoptions', 'assign'));
// visible elements
$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'),
ASSIGN_FILTER_SUBMITTED => get_string('filtersubmitted', 'assign'),
ASSIGN_FILTER_REQUIRE_GRADING => get_string('filterrequiregrading', 'assign'));
if ($instance['submissionsenabled']) {
$mform->addElement('select', 'filter', get_string('filter', 'assign'), $options);
$mform->addElement('select', 'filter', get_string('filter', 'assign'), $options, $dirtyclass);
}

// quickgrading
Expand Down

0 comments on commit 30939d2

Please sign in to comment.