mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-36804 mod_assign - allow students to resubmit work and display a submission + grading history
This is based on work by Davo Smith with input from Fernando Oliveira (Thanks guys!).
This commit is contained in:
parent
bf6c1d0997
commit
df211804f1
26 changed files with 1839 additions and 262 deletions
|
@ -118,6 +118,22 @@ class mod_assign_mod_form extends moodleform_mod {
|
|||
$mform->addElement('hidden', 'requiresubmissionstatement', 1);
|
||||
}
|
||||
|
||||
$options = array(
|
||||
ASSIGN_ATTEMPT_REOPEN_METHOD_NONE => get_string('attemptreopenmethod_none', 'mod_assign'),
|
||||
ASSIGN_ATTEMPT_REOPEN_METHOD_MANUAL => get_string('attemptreopenmethod_manual', 'mod_assign'),
|
||||
ASSIGN_ATTEMPT_REOPEN_METHOD_UNTILPASS => get_string('attemptreopenmethod_untilpass', 'mod_assign')
|
||||
);
|
||||
$mform->addElement('select', 'attemptreopenmethod', get_string('attemptreopenmethod', 'mod_assign'), $options);
|
||||
$mform->setDefault('attemptreopenmethod', ASSIGN_ATTEMPT_REOPEN_METHOD_NONE);
|
||||
$mform->addHelpButton('attemptreopenmethod', 'attemptreopenmethod', 'mod_assign');
|
||||
|
||||
$options = array(ASSIGN_UNLIMITED_ATTEMPTS => get_string('unlimitedattempts', 'mod_assign'));
|
||||
$options += array_combine(range(1, 30), range(1, 30));
|
||||
$mform->addElement('select', 'maxattempts', get_string('maxattempts', 'mod_assign'), $options);
|
||||
$mform->addHelpButton('maxattempts', 'maxattempts', 'assign');
|
||||
$mform->setDefault('maxattempts', -1);
|
||||
$mform->disabledIf('maxattempts', 'attemptreopenmethod', 'eq', ASSIGN_ATTEMPT_REOPEN_METHOD_NONE);
|
||||
|
||||
$mform->addElement('header', 'groupsubmissionsettings', get_string('groupsubmissionsettings', 'assign'));
|
||||
|
||||
$name = get_string('teamsubmission', 'assign');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue