Skip to content

Commit

Permalink
Change reset bounces continue button to link
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalkerl committed Nov 29, 2024
1 parent 7a1cad0 commit 25af30e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions reset_bounces.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,15 @@
echo $OUTPUT->box_start('generalbox', 'notice');
echo $OUTPUT->notification(get_string('bouncesreset', 'tool_emailutils'), 'notifysuccess');

$continue = new single_button(new moodle_url($return), get_string('continue'));
echo $OUTPUT->render($continue);
echo html_writer::link($return, get_string('continue'), ['class' => 'btn btn-primary']);
echo $OUTPUT->box_end();
} else {
list($in, $params) = $DB->get_in_or_equal($users);
$userlist = $DB->get_records_select_menu('user', "id $in", $params, 'fullname', 'id,'.$DB->sql_fullname().' AS fullname');

if (empty($userlist)) {
echo $OUTPUT->notification(get_string('invaliduserid', 'error'));
$continue = new single_button(new moodle_url($return), get_string('continue'));
echo $OUTPUT->render($continue);
echo html_writer::link($return, get_string('continue'), ['class' => 'btn btn-primary']);
} else {
if (\tool_emailutils\helper::use_bounce_ratio()) {
echo $OUTPUT->notification(get_string('resetbounceratio', 'tool_emailutils'), 'warning');
Expand Down

0 comments on commit 25af30e

Please sign in to comment.