]> git.mjollnir.org Git - moodle.git/commitdiff
maintenance mode MDL-15700 Just some little tidyups of the maintenance mode page
authormoodler <moodler>
Tue, 20 Jan 2009 06:01:05 +0000 (06:01 +0000)
committermoodler <moodler>
Tue, 20 Jan 2009 06:01:05 +0000 (06:01 +0000)
admin/maintenance.php
theme/standard/styles_layout.css

index 1364ba47526ca3b55aec1a857b0fa7f3a0c46a4b..755a06c248b09cdd6f3f4fb30a6b4a7e24bf1d78 100644 (file)
 
     admin_externalpage_print_header();
 
+    print_heading(get_string('sitemaintenancemode', 'admin'));
+
+    print_box_start();
+
 /// Print the appropriate form
 
     if (file_exists($filename)) {   // We are in maintenance mode
-        echo '<div style="margin-left:auto;margin-right:auto">';
+        echo '<div class="buttons">';
+        echo '<p>'.get_string('sitemaintenanceon', 'admin').'</p>';
         echo '<form action="maintenance.php" method="post">';
+        echo '<div>';
         echo '<input type="hidden" name="action" value="disable" />';
         echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
         echo '<p><input type="submit" value="'.get_string('disable').'" /></p>';
+        echo '</div>';
         echo '</form>';
         echo '</div>';
     } else {                        // We are not in maintenance mode
         $usehtmleditor = can_use_html_editor();
 
-        echo '<div style="text-align:center;margin-left:auto;margin-right:auto">';
+        echo '<div class="buttons">';
         echo '<form action="maintenance.php" method="post">';
         echo '<div>';
         echo '<input type="hidden" name="action" value="enable" />';
         echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
         echo '<p><input type="submit" value="'.get_string('enable').'" /></p>';
         echo '<p>'.get_string('optionalmaintenancemessage', 'admin').':</p>';
-        echo '<table><tr><td>';
+        echo '<div class="editor" style="width:600px;">';  // contains the editor
         print_textarea($usehtmleditor, 20, 50, 600, 400, "text");
-        echo '</td></tr></table>';
+        echo '</div>';
         echo '</div>';
         echo '</form>';
         echo '</div>';
     }
 
+    print_box_end();
+
     admin_externalpage_print_footer();
 ?>
index 6f8fce6e781be8486bd9378cec58d8a73f5a06ce..e13347c560744ea8cab14fcae0603d687abbe21c 100644 (file)
@@ -1013,6 +1013,10 @@ body#admin-modules table.generaltable td.c0
   text-align: center;
 }
 
+#admin-maintenance .buttons {
+  text-align:center;
+}
+
 #admin-report-unittest-index .exception pre {
   padding: 8px;
 }