Merge branch 'MDL-73078-master' of https://github.com/lucaboesch/moodle

This commit is contained in:
Paul Holden 2022-11-16 16:36:56 +00:00
commit e7bec29c95

View file

@ -252,19 +252,19 @@ if (!$delete) {
$btnurl = new moodle_url($PAGE->url, array('edit' => 'on')); $btnurl = new moodle_url($PAGE->url, array('edit' => 'on'));
$btntxt = get_string('createsubmission', 'workshop'); $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. // Display delete button.
if ($submission->id and $deletable) { if ($submission->id and $deletable) {
$url = new moodle_url($PAGE->url, array('delete' => 1)); $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. // Display assess button.
if ($submission->id and !$edit and !$isreviewer and $canallocate and $workshop->assessing_allowed($USER->id)) { if ($submission->id and !$edit and !$isreviewer and $canallocate and $workshop->assessing_allowed($USER->id)) {
$url = new moodle_url($PAGE->url, array('assess' => 1)); $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');
} }
} }