Skip to content
Snippets Groups Projects
Commit 82932b2c authored by Astor Bizard's avatar Astor Bizard :dog2:
Browse files

Due date deactivated by default at VPL creation.

parent 001e1a58
No related branches found
No related tags found
1 merge request!1Dev: Submissions list rework, webservices and bugfixes
......@@ -33,7 +33,6 @@ class mod_vpl_mod_form extends moodleform_mod {
$plugincfg = get_config('mod_vpl');
$mform = & $this->_form;
$mform->addElement( 'header', 'general', get_string( 'general', 'form' ) );
$modname = 'vpl';
$mform->addElement( 'text', 'name', get_string( 'name' ), array (
'size' => '50'
) );
......@@ -51,10 +50,6 @@ class mod_vpl_mod_form extends moodleform_mod {
$this->standard_intro_elements( get_string( 'fulldescription', VPL ) );
}
$mform->addElement( 'header', 'submissionperiod', get_string( 'submissionperiod', VPL ) );
$secondsday = 24 * 60 * 60;
$now = time();
$inittime = round( $now / $secondsday ) * $secondsday + 5 * 60;
$endtime = $inittime + (8 * $secondsday) - 5 * 60;
$mform->addElement( 'date_time_selector', 'startdate', get_string( 'startdate', VPL ), array (
'optional' => true
) );
......@@ -63,7 +58,7 @@ class mod_vpl_mod_form extends moodleform_mod {
$mform->addElement( 'date_time_selector', 'duedate', get_string( 'duedate', VPL ), array (
'optional' => true
) );
$mform->setDefault( 'duedate', $endtime );
$mform->setDefault( 'duedate', 0 );
$mform->addElement( 'header', 'submissionrestrictions', get_string( 'submissionrestrictions', VPL ) );
$mform->addElement( 'text', 'maxfiles', get_string( 'maxfiles', VPL ) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment