MDL-75155 grades: Use the select_menu widget

This commit is contained in:
Shamim Rezaie
2022-09-06 13:38:28 +10:00
parent 5d33ef3c21
commit fa59f35ca4
6 changed files with 50 additions and 34 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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;