From af4c52b849a94779366c7dd802f5df9fbc04f98b Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Fri, 17 Oct 2008 14:55:10 +0000 Subject: [PATCH] MDL-13702 Added language help file --- grade/edit/outcome/import_outcomes_form.php | 3 ++- lang/en_utf8/help/grade/importoutcomes.html | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 lang/en_utf8/help/grade/importoutcomes.html diff --git a/grade/edit/outcome/import_outcomes_form.php b/grade/edit/outcome/import_outcomes_form.php index 449cc217f43..671ecef6732 100644 --- a/grade/edit/outcome/import_outcomes_form.php +++ b/grade/edit/outcome/import_outcomes_form.php @@ -19,8 +19,9 @@ class import_outcomes_form extends moodleform { $mform->addElement('radio', 'scope', get_string('importstandard', 'grades'), null, 'global'); $mform->setDefault('scope', 'custom'); } - + $mform->addElement('file', 'userfile', get_string('importoutcomes', 'grades')); + $mform->setHelpButton('userfile', array('importoutcomes', get_string('importoutcomes', 'grades'), 'grade')); $mform->addElement('submit', 'save', get_string('uploadthisfile')); diff --git a/lang/en_utf8/help/grade/importoutcomes.html b/lang/en_utf8/help/grade/importoutcomes.html new file mode 100644 index 00000000000..26bd3446f84 --- /dev/null +++ b/lang/en_utf8/help/grade/importoutcomes.html @@ -0,0 +1,16 @@ +

Import outcomes

+

You can import outcomes in the form of .csv files. The format must be as follows:

+ + + + + + + + +
Field name Description Required Format
outcome_name The full name of the outcome YesString
outcome_shortnameThe short name of the outcome Yes String
outcome_descriptionThe description of the outcome No String
scale_nameThe name of the scale used Yes String
scale_itemsA comma-separated list of scale items Yes String
scale_descriptionThe description of the scale No String
+ +

Here is a sample:

+
outcome_name;outcome_shortname;outcome_description;scale_name;scale_items;scale_description
+Assiduity outcome;assiduity;;Assiduity scale;"Absent,Half-way there,Assiduous,Omnipresent";
+