Revert "MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results"
This reverts commit ccef0a8b0a.
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user