MDL-13702 Added language help file

This commit is contained in:
nicolasconnault
2008-10-17 14:55:10 +00:00
parent 85db26a355
commit af4c52b849
2 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -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'));
@@ -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>