1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-11 11:23:52 +02:00

MDL-63773 mod_assign: switch instance form to hideIf

This commit is contained in:
Davo Smith 2017-12-13 16:38:24 +00:00
parent 540a0e23f1
commit 67809990f6

@ -131,7 +131,7 @@ class mod_assign_mod_form extends moodleform_mod {
$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->disabledIf('maxattempts', 'attemptreopenmethod', 'eq', ASSIGN_ATTEMPT_REOPEN_METHOD_NONE);
$mform->hideIf('maxattempts', 'attemptreopenmethod', 'eq', ASSIGN_ATTEMPT_REOPEN_METHOD_NONE);
$mform->addElement('header', 'groupsubmissionsettings', get_string('groupsubmissionsettings', 'assign'));
@ -207,7 +207,7 @@ class mod_assign_mod_form extends moodleform_mod {
$name = get_string('markingallocation', 'assign');
$mform->addElement('selectyesno', 'markingallocation', $name);
$mform->addHelpButton('markingallocation', 'markingallocation', 'assign');
$mform->disabledIf('markingallocation', 'markingworkflow', 'eq', 0);
$mform->hideIf('markingallocation', 'markingworkflow', 'eq', 0);
$this->standard_coursemodule_elements();
$this->apply_admin_defaults();