MDL-73078 workshop: align 'Edit subm' 'Delete subm' 'Export this page'

This commit is contained in:
Luca Bösch
2022-11-11 16:41:41 +01:00
parent 7c3188b2ca
commit 235c7c361c
+3 -3
View File
@@ -252,19 +252,19 @@ if (!$delete) {
$btnurl = new moodle_url($PAGE->url, array('edit' => 'on'));
$btntxt = get_string('createsubmission', 'workshop');
}
echo $output->single_button($btnurl, $btntxt, 'get');
echo $output->box($output->single_button($btnurl, $btntxt, 'get'), 'mr-1 inline');
}
// Display delete button.
if ($submission->id and $deletable) {
$url = new moodle_url($PAGE->url, array('delete' => 1));
echo $output->single_button($url, get_string('deletesubmission', 'workshop'), 'get');
echo $output->box($output->single_button($url, get_string('deletesubmission', 'workshop'), 'get'), 'mr-1 inline');
}
// Display assess button.
if ($submission->id and !$edit and !$isreviewer and $canallocate and $workshop->assessing_allowed($USER->id)) {
$url = new moodle_url($PAGE->url, array('assess' => 1));
echo $output->single_button($url, get_string('assess', 'workshop'), 'post');
echo $output->box($output->single_button($url, get_string('assess', 'workshop'), 'post'), 'mr-1 inline');
}
}