Show “confirmation of clear-on-next-restart” option.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / OptionsPage.java
index 1a5fa6a..5a9e165 100644 (file)
@@ -33,7 +33,9 @@ public class OptionsPage extends SoneTemplatePage {
         * Creates a new options page.
         *
         * @param template
+        *            The template to render
         * @param webInterface
+        *            The Sone web interface
         */
        public OptionsPage(Template template, WebInterface webInterface) {
                super("options.html", template, "Page.Options.Title", webInterface);
@@ -55,6 +57,8 @@ public class OptionsPage extends SoneTemplatePage {
                        options.getIntegerOption("InsertionDelay").set(insertionDelay);
                }
                template.set("insertion-delay", options.getIntegerOption("InsertionDelay").get());
+               template.set("clear-on-next-restart", options.getBooleanOption("ClearOnNextRestart").get());
+               template.set("really-clear-on-next-restart", options.getBooleanOption("ReallyClearOnNextRestart").get());
        }
 
        //