From 38a9993bd1bf0024639e19a9c25328a9d5d5954e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 7 Oct 2015 01:54:56 +0200 Subject: luci-mod-admin-full: switch to POST action for reboot Also rework the reboot tmeplate a little bit. Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/admin_system/reboot.htm | 68 ++++++++++++++++------ 1 file changed, 51 insertions(+), 17 deletions(-) (limited to 'modules/luci-mod-admin-full/luasrc/view/admin_system') diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_system/reboot.htm b/modules/luci-mod-admin-full/luasrc/view/admin_system/reboot.htm index aa7441d130..c9551804d2 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_system/reboot.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_system/reboot.htm @@ -1,25 +1,59 @@ <%# Copyright 2008 Steven Barth - Copyright 2008 Jo-Philipp Wich + Copyright 2008-2015 Jo-Philipp Wich Licensed to the public under the Apache License 2.0. -%> <%+header%> -

<%:System%>

-

<%:Reboot%>

+ +

<%:Reboot%>

+
+

<%:Reboots the operating system of your device%>

-<%- -local c = require("luci.model.uci").cursor():changes() -if c and next(c) then --%> -

<%:Warning: There are unsaved changes that will be lost while rebooting!%>

-<%- -end -if not reboot then --%> -

<%:Perform reboot%>

-<%- else -%> -

<%:Please wait: Device rebooting...%>

- + +<%- local c = require("luci.model.uci").cursor():changes(); if c and next(c) then -%> +

<%:Warning: There are unsaved changes that will get lost on reboot!%>

<%- end -%> -<%+footer%> \ No newline at end of file + +
+ + + + + + + +<%+footer%> -- cgit v1.2.3