MDL-75337 core: Single button - core changes

* Change all core calls toward single_button to use single_button::BUTTON_PRIMARY
    when needed
This commit is contained in:
Laurent David
2023-01-24 06:01:35 +01:00
parent 377c962f11
commit fc72a1d7b1
39 changed files with 95 additions and 59 deletions
+5 -1
View File
@@ -65,7 +65,11 @@ $PAGE->set_secondary_active_tab("modulepage");
//
echo $OUTPUT->header();
$continuebtn = new single_button(
new moodle_url($PAGE->url, array('confirm' => 1)), get_string('continue'), 'post', true);
new moodle_url($PAGE->url, array('confirm' => 1)),
get_string('continue'),
'post',
single_button::BUTTON_PRIMARY
);
$continuebtn->class .= ' mr-3';
echo $OUTPUT->confirm(get_string('switchphase' . $phase . 'info', 'workshop'),
$continuebtn, $workshop->view_url());