MDL-35982 blog: reorder blog delete confirmation
authorDan Poltawski <dan@moodle.com>
Fri, 30 Oct 2015 14:22:39 +0000 (14:22 +0000)
committerDan Poltawski <dan@moodle.com>
Thu, 26 Nov 2015 14:10:25 +0000 (14:10 +0000)
Improves accessibility to be ordered logically in page

blog/edit.php

index 7ff8333..686962d 100644 (file)
@@ -141,14 +141,15 @@ if ($action === 'delete') {
         // Output edit mode title.
         echo $OUTPUT->heading($strblogs . ': ' . get_string('deleteentry', 'blog'), 2);
 
         // 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);
 
         // 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;
     }
         echo $OUTPUT->footer();
         die;
     }