Revert "MDL-33575 choice module: add label to checkbox element when privacy of result...
authorSam Hemelryk <sam@moodle.com>
Thu, 12 Jul 2012 06:21:00 +0000 (18:21 +1200)
committerSam Hemelryk <sam@moodle.com>
Thu, 12 Jul 2012 06:21:00 +0000 (18:21 +1200)
mod/choice/renderer.php

index dc89877..07bbd19 100644 (file)
@@ -214,7 +214,7 @@ class mod_choice_renderer extends plugin_renderer_base {
                         }
 
                         if ($choices->viewresponsecapability && $choices->deleterepsonsecapability  && $optionid > 0) {
-                            $attemptaction = html_writer::checkbox('attemptid[]', $user->id,'', null, array('id' => 'attempt-user'.$user->id));
+                            $attemptaction = html_writer::checkbox('attemptid[]', $user->id,'');
                             $data .= html_writer::tag('div', $attemptaction, array('class'=>'attemptaction'));
                         }
                         $userimage = $this->output->user_picture($user, array('courseid'=>$choices->courseid));
@@ -222,7 +222,6 @@ class mod_choice_renderer extends plugin_renderer_base {
 
                         $userlink = new moodle_url('/user/view.php', array('id'=>$user->id,'course'=>$choices->courseid));
                         $name = html_writer::tag('a', fullname($user, $choices->fullnamecapability), array('href'=>$userlink, 'class'=>'username'));
-                        $name = html_writer::label($name, 'attempt-user'.$user->id);
                         $data .= html_writer::tag('div', $name, array('class'=>'fullname'));
                         $data .= html_writer::tag('div','', array('class'=>'clearfloat'));
                         $optionusers .= html_writer::tag('div', $data, array('class'=>'user'));