MDL-75155 grades: Use the select_menu widget
This commit is contained in:
@@ -91,8 +91,8 @@ class export_action_bar extends action_bar {
|
||||
}
|
||||
|
||||
// This navigation selector menu will contain the links to all available grade export plugin pages.
|
||||
$exportsurlselect = new \url_select($exportsmenu, $this->exportactiveurl->out(false), null,
|
||||
'gradesexportactionselect');
|
||||
$exportsurlselect = new \core\output\select_menu('exportas', $exportsmenu, $this->exportactiveurl->out());
|
||||
$exportsurlselect->set_label(get_string('exportas', 'grades'));
|
||||
$data['exportselector'] = $exportsurlselect->export_for_template($output);
|
||||
|
||||
return $data;
|
||||
|
||||
@@ -91,8 +91,8 @@ class import_action_bar extends action_bar {
|
||||
}
|
||||
|
||||
// This navigation selector menu will contain the links to all available grade export plugin pages.
|
||||
$importsurlselect = new \url_select($importsmenu, $this->importactiveurl->out(false), null,
|
||||
'gradesimportactionselect');
|
||||
$importsurlselect = new \core\output\select_menu('importas', $importsmenu, $this->importactiveurl->out());
|
||||
$importsurlselect->set_label(get_string('importas', 'grades'));
|
||||
$data['importselector'] = $importsurlselect->export_for_template($output);
|
||||
|
||||
return $data;
|
||||
|
||||
Reference in New Issue
Block a user