Skip to content

Commit

Permalink
MDL-73078 workshop: align 'Edit subm' 'Delete subm' 'Export this page'
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Nov 11, 2022
1 parent 7c3188b commit 235c7c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/workshop/submission.php
Expand Up @@ -252,19 +252,19 @@
$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');
}
}

Expand Down

0 comments on commit 235c7c3

Please sign in to comment.