/**
  * Renderers bulk actions that can be performed on courses.
  *
  * @param coursecat $category The currently selected category and the category in which courses that
  *      are selectable belong.
  * @return string
  */
 public function course_bulk_actions(coursecat $category)
 {
     $html = html_writer::start_div('course-bulk-actions bulk-actions');
     if ($category->can_move_courses_out_of()) {
         $options = coursecat::make_categories_list('moodle/category:manage');
         $select = html_writer::select($options, 'movecoursesto', '', array('' => 'choosedots'), array('aria-labelledby' => 'moveselectedcoursesto'));
         $submit = array('type' => 'submit', 'name' => 'bulkmovecourses', 'value' => get_string('move'));
         $html .= $this->detail_pair(html_writer::span(get_string('moveselectedcoursesto'), '', array('id' => 'moveselectedcoursesto')), $select . html_writer::empty_tag('input', $submit));
     }
     $html .= html_writer::end_div();
     return $html;
 }