MDL-26099 new workshop DB field phaseswitchassessment
Note that most line changes in the patch are caused by the recent changes in the XMLDB TEXT fields handling (no size specified now) and by the change in the indentation.
This commit is contained in:
@@ -183,6 +183,12 @@ class mod_workshop_mod_form extends moodleform_mod {
|
||||
$mform->addElement('date_time_selector', 'submissionend', $label, array('optional' => true));
|
||||
$mform->setAdvanced('submissionend');
|
||||
|
||||
$label = get_string('submissionendswitch', 'mod_workshop');
|
||||
$mform->addElement('checkbox', 'phaseswitchassessment', $label);
|
||||
$mform->setAdvanced('phaseswitchassessment');
|
||||
$mform->disabledIf('phaseswitchassessment', 'submissionend[enabled]');
|
||||
$mform->addHelpButton('phaseswitchassessment', 'submissionendswitch', 'mod_workshop');
|
||||
|
||||
$label = get_string('assessmentstart', 'workshop');
|
||||
$mform->addElement('date_time_selector', 'assessmentstart', $label, array('optional' => true));
|
||||
$mform->setAdvanced('assessmentstart');
|
||||
|
||||
Reference in New Issue
Block a user