]> git.mjollnir.org Git - moodle.git/commitdiff
Added $prefix to form fields so that this code could be used with manual grading
authormark-nielsen <mark-nielsen>
Sat, 8 Apr 2006 21:48:31 +0000 (21:48 +0000)
committermark-nielsen <mark-nielsen>
Sat, 8 Apr 2006 21:48:31 +0000 (21:48 +0000)
question/comment.html

index f6d3ac0a0c8f385b1c22475503861e2f4b34c36e..e004879f858d9674bd787c6b64f0f8fda72dd046 100644 (file)
@@ -10,7 +10,7 @@
     </td>
     <td>
       <?php
-        print_textarea($usehtmleditor, 15, 60, 630, 300, 'comment', $state->comment);
+        print_textarea($usehtmleditor, 15, 60, 630, 300, $prefix.'[comment]', $state->comment);
       ?>
     </td>
   </tr>
@@ -19,7 +19,7 @@
       <b><?php print_string('grade', 'quiz'); ?>: </b>
     </td>
     <td>
-      <input type="text" name="grade" size="2" value="<?php echo $grade; ?>" />/<?php echo $question->maxgrade; ?>
+      <input type="text" name="<?php echo $prefix; ?>[grade]" size="2" value="<?php echo $grade; ?>" />/<?php echo $question->maxgrade; ?>
     </td>
   </tr>
 </table>
\ No newline at end of file