protected function display_category_form($contexts, $pageurl, $current) {
        echo \html_writer::start_div('choosecategory');
        $catmenu = question_category_options($contexts, true, 0, true);
        echo \html_writer::label(get_string('selectacategory', 'question'), 'id_selectacategory');
        echo \html_writer::select($catmenu, 'category', $current, array(),
                array('class' => 'searchoptions custom-select', 'id' => 'id_selectacategory'));
        echo \html_writer::end_div() . "\n";
    }