|
@@ -33,26 +33,25 @@
|
|
$mform->addRule('name', get_string('error_nameField', 'gradeimporter'), 'required', null, 'client');
|
|
$mform->addRule('name', get_string('error_nameField', 'gradeimporter'), 'required', null, 'client');
|
|
|
|
|
|
//description
|
|
//description
|
|
- $mform->addElement('editor', 'description_editor', get_string('submissiondescription', 'gradeimporter'), null, $descriptionoptions);
|
|
|
|
|
|
+ $mform->addElement('editor', 'description_editor', get_string('submissionDescription', 'gradeimporter'), null, $descriptionoptions);
|
|
|
|
+ $mform->setType('description_editor', PARAM_RAW);
|
|
|
|
|
|
- //description format
|
|
|
|
- //kill on the install.xml
|
|
|
|
|
|
|
|
$mform->addElement('header', 'filehandling', get_string('filehandling', 'gradeimporter'));
|
|
$mform->addElement('header', 'filehandling', get_string('filehandling', 'gradeimporter'));
|
|
|
|
|
|
//submission type
|
|
//submission type
|
|
- $submissiontype = array();
|
|
|
|
- $submissiontype[0] = get_string('exam', 'gradeimporter');
|
|
|
|
- $submissiontype[1] = get_string('activity', 'gradeimporter');
|
|
|
|
|
|
+ $submissionType = array();
|
|
|
|
+ $submissionType[0] = get_string('exam', 'gradeimporter');
|
|
|
|
+ $submissionType[1] = get_string('activity', 'gradeimporter');
|
|
|
|
|
|
|
|
|
|
- $mform->addElement('select', 'type', get_string('submissiontype', 'gradeimporter'), $submissiontype, array('onChange' => 'config_type(this.value);'));
|
|
|
|
- //$mform->setDefault('submissiontype', 0); // default submissiontype = 3
|
|
|
|
- $mform->addHelpButton('submissiontype', 'subtype_help', 'gradeimporter');
|
|
|
|
|
|
+ $mform->addElement('select', 'type', get_string('submissionType', 'gradeimporter'), $submissionType, array('onChange' => 'config_type(this.value);'));
|
|
|
|
+ //$mform->setDefault('submissionType', 0); // default submissionType = 3
|
|
|
|
+ $mform->addHelpButton('type', 'submissionType', 'gradeimporter');
|
|
|
|
|
|
//receive the files
|
|
//receive the files
|
|
$mform->addElement('filemanager', 'submission_filemanager', get_string('submissionFiles', 'gradeimporter'), null, $descriptionoptions);
|
|
$mform->addElement('filemanager', 'submission_filemanager', get_string('submissionFiles', 'gradeimporter'), null, $descriptionoptions);
|
|
- $mform->addHelpButton('submission_filemanager', 'submissionfiles', 'gradeimporter');
|
|
|
|
|
|
+ $mform->addHelpButton('submission_filemanager', 'submissionFiles', 'gradeimporter');
|
|
|
|
|
|
//csv delimiter
|
|
//csv delimiter
|
|
$csv_delimiter = array();
|
|
$csv_delimiter = array();
|
|
@@ -64,7 +63,7 @@
|
|
|
|
|
|
$mform->addElement('select', 'csv_delimiter', get_string('csvdelimiter', 'gradeimporter'), $csv_delimiter, array('onChange' => 'config_type(this.value);'));
|
|
$mform->addElement('select', 'csv_delimiter', get_string('csvdelimiter', 'gradeimporter'), $csv_delimiter, array('onChange' => 'config_type(this.value);'));
|
|
$mform->setDefault('csv_delimiter', 1); // default csv_delimiter = 3
|
|
$mform->setDefault('csv_delimiter', 1); // default csv_delimiter = 3
|
|
- $mform->addHelpButton('csv_delimiter', 'csvdelimiter_help', 'gradeimporter');
|
|
|
|
|
|
+ $mform->addHelpButton('csv_delimiter', 'csvdelimiter', 'gradeimporter');
|
|
|
|
|
|
|
|
|
|
//gradebook Y/N Combobox
|
|
//gradebook Y/N Combobox
|
|
@@ -73,13 +72,13 @@
|
|
$ynarray[1] = get_string('yes', 'gradeimporter');
|
|
$ynarray[1] = get_string('yes', 'gradeimporter');
|
|
$mform->addElement('select', 'gradebook', get_string('gradebookYN', 'gradeimporter'), $ynarray);
|
|
$mform->addElement('select', 'gradebook', get_string('gradebookYN', 'gradeimporter'), $ynarray);
|
|
//$mform->setDefault('gradebook', 0);
|
|
//$mform->setDefault('gradebook', 0);
|
|
- $mform->addHelpButton('gradebook', 'gradebook_help', 'gradeimporter');
|
|
|
|
|
|
+ $mform->addHelpButton('gradebook', 'gradebookYN', 'gradeimporter');
|
|
|
|
|
|
|
|
|
|
//visibility Y/N Combobox
|
|
//visibility Y/N Combobox
|
|
$mform->addElement('select', 'visibility', get_string('visibilityYN', 'gradeimporter'), $ynarray);
|
|
$mform->addElement('select', 'visibility', get_string('visibilityYN', 'gradeimporter'), $ynarray);
|
|
//$mform->setDefault('visibility', 0);
|
|
//$mform->setDefault('visibility', 0);
|
|
- $mform->addHelpButton('visibility', 'visibility_help', 'gradeimporter');
|
|
|
|
|
|
+ $mform->addHelpButton('visibility', 'visibilityYN', 'gradeimporter');
|
|
|
|
|
|
//-----------------------------
|
|
//-----------------------------
|
|
//hidden fields
|
|
//hidden fields
|