Skip to content

Commit

Permalink
MDL-35982 blog: reorder blog delete confirmation
Browse files Browse the repository at this point in the history
Improves accessibility to be ordered logically in page
  • Loading branch information
danpoltawski committed Nov 26, 2015
1 parent afb7ec9 commit bf12b08
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions blog/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,15 @@
// Output edit mode title.
echo $OUTPUT->heading($strblogs . ': ' . get_string('deleteentry', 'blog'), 2);

echo $OUTPUT->confirm(get_string('blogdeleteconfirm', 'blog'),
new moodle_url('edit.php', $optionsyes),
new moodle_url('index.php', $optionsno));

echo '<br />';
// Output the entry.
$entry->prepare_render();
echo $output->render($entry);

echo '<br />';
echo $OUTPUT->confirm(get_string('blogdeleteconfirm', 'blog'),
new moodle_url('edit.php', $optionsyes),
new moodle_url('index.php', $optionsno));
echo $OUTPUT->footer();
die;
}
Expand Down

0 comments on commit bf12b08

Please sign in to comment.