]> git.mjollnir.org Git - moodle.git/commitdiff
added a new setting which is modattempts
authormichaelpenne <michaelpenne>
Mon, 1 Nov 2004 20:27:28 +0000 (20:27 +0000)
committermichaelpenne <michaelpenne>
Mon, 1 Nov 2004 20:27:28 +0000 (20:27 +0000)
mod/lesson/mod.html

index f1511b73c6edc6d8e6d4ab570066fdf3f1b6050f..d8e405f7e04898d11ec84157f07efa7378283353 100644 (file)
@@ -97,6 +97,10 @@ if ($form->mode == "add") {
        if (!isset($form->lessondefault)) {
                $form->lessondefault = 0;
        }
+       if (!isset($form->modattempts)) {
+               $form->modattempts = 0;
+       }
+
        
        $form->deleteattempts = "";
 
@@ -126,6 +130,17 @@ if ($form->mode == "add") {
     </td>
 </tr>
 
+<tr>
+    <td align=right><p><b><?php  print_string("modattempts", "lesson"); ?>:</b></p></td>
+    <td>
+    <?PHP 
+        $options[0] = get_string("no"); $options[1] = get_string("yes");
+               choose_from_menu($options, "modattempts", $form->modattempts, "");
+        helpbutton("modattempts", get_string("modattempts", "lesson"), "lesson");
+    ?>
+    </td>
+</tr>
+
 <tr>
     <td align=right><p><b><?php  print_string("usepassword", "lesson"); ?>:</b></p></td>
     <td>