]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13702 Added language help file. Merging from MOODLE_19_STABLE
authornicolasconnault <nicolasconnault>
Fri, 17 Oct 2008 14:56:06 +0000 (14:56 +0000)
committernicolasconnault <nicolasconnault>
Fri, 17 Oct 2008 14:56:06 +0000 (14:56 +0000)
grade/edit/outcome/import_outcomes_form.php
lang/en_utf8/help/grade/importoutcomes.html [new file with mode: 0644]

index d708f9c7deef2ea4f6259c6a05b5462d07a00d5c..259788108c737dfb530f8be04ace0a2cd6247987 100644 (file)
@@ -21,6 +21,7 @@ class import_outcomes_form extends moodleform {
         }
 
         $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 (file)
index 0000000..26bd344
--- /dev/null
@@ -0,0 +1,16 @@
+<h1>Import outcomes</h1>
+<p>You can import outcomes in the form of .csv files. The format must be as follows:</p>
+<table class="generaltable" cellpadding="4">
+    <tr> <th class="header">Field name</th> <th class="header">Description</th> <th class="header">Required</th> <th class="header">Format</th> </tr>
+    <tr> <td class="cell">outcome_name</td> <td class="cell">The full name of the outcome </td> <td class="cell">Yes</td><td class="cell">String</td> </tr>
+    <tr> <td class="cell">outcome_shortname</td><td class="cell">The short name of the outcome </td> <td class="cell">Yes</td> <td class="cell">String</td> </tr>
+    <tr> <td class="cell">outcome_description</td><td class="cell">The description of the outcome </td> <td class="cell">No</td> <td class="cell">String</td> </tr>
+    <tr> <td class="cell">scale_name</td><td class="cell">The name of the scale used</td> <td class="cell">Yes</td> <td class="cell">String</td> </tr>
+    <tr> <td class="cell">scale_items</td><td class="cell">A comma-separated list of scale items</td> <td class="cell">Yes</td> <td class="cell">String</td> </tr>
+    <tr> <td class="cell">scale_description</td><td class="cell">The description of the scale </td> <td class="cell">No</td> <td class="cell">String</td> </tr>
+</table>
+
+<p>Here is a sample:</p>
+<pre>outcome_name;outcome_shortname;outcome_description;scale_name;scale_items;scale_description
+Assiduity outcome;assiduity;;Assiduity scale;"Absent,Half-way there,Assiduous,Omnipresent";</pre>
+