Skip to content

Commit

Permalink
MDL-13702 Added language help file. Merging from MOODLE_19_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Oct 17, 2008
1 parent 36c2832 commit 376592d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions grade/edit/outcome/import_outcomes_form.php
Expand Up @@ -21,6 +21,7 @@ public function definition() {
}

$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'));

Expand Down
16 changes: 16 additions & 0 deletions lang/en_utf8/help/grade/importoutcomes.html
@@ -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>

0 comments on commit 376592d

Please sign in to comment.