luci-app-advanced-reboot: change style of buttons to important 1968/head
authorStan Grishin <stangri@melmac.net>
Fri, 20 Jul 2018 02:31:16 +0000 (19:31 -0700)
committerStan Grishin <stangri@melmac.net>
Fri, 20 Jul 2018 02:31:16 +0000 (19:31 -0700)
Signed-off-by: Stan Grishin <stangri@melmac.net>
applications/luci-app-advanced-reboot/Makefile
applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua
applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm
applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm
applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm

index b1ecf677f026805d3954ce0cb38938bc8c65119b..08919640d7723e61c57e698754d2adf40d68e18f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2017 Stan Grishin (stangri@melmac.net)
+# Copyright 2017-2018 Stan Grishin (stangri@melmac.net)
 # This is free software, licensed under the GNU General Public License v3.
 
 include $(TOPDIR)/rules.mk
@@ -13,7 +13,7 @@ LUCI_DESCRIPTION:=Provides Web UI (found under System/Advanced Reboot) to reboot
 
 LUCI_DEPENDS:=+luci-mod-admin-full
 LUCI_PKGARCH:=all
-PKG_RELEASE:=32
+PKG_RELEASE:=33
 
 include ../../luci.mk
 
index f4d28145ea3fc92645653cb521ae7392cd5b37ff..dd8071677eb72f46da3870a5f49f042e662c51ea 100644 (file)
@@ -1,4 +1,4 @@
--- Copyright 2017 Stan Grishin <stangri@melmac.net>
+-- Copyright 2017-2018 Stan Grishin <stangri@melmac.net>
 -- Licensed to the public under the Apache License 2.0.
 
 module("luci.controller.advanced_reboot", package.seeall)
index dcf51c749e5f51e5b7326d476b2b6e30c0ff7612..5c14f52ff8db2106264a7a2b936bcb5eded5d3d5 100644 (file)
@@ -1,7 +1,7 @@
 <%#
  Copyright 2008 Steven Barth <steven@midlink.org>
  Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
- Copyright 2017 Stan Grishin <stangri@melmac.net>
+ Copyright 2017-2018 Stan Grishin <stangri@melmac.net>
  Licensed to the public under the Apache License 2.0.
 -%>
 
         <%- if boot_envvar1_partition_one == current_partition then -%>
         <form method="post" action="<%=url('admin/system/advanced_reboot/reboot')%>">
           <input type="hidden" name="token" value="<%=token%>" />
-          <input id="reboot-button" type="submit" class="cbi-button cbi-button-apply" value="<%:Reboot to current partition%>" />
+          <input id="reboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to current partition%>" />
         </form>
       <%- else -%>
       <form method="post" action="<%=url('admin/system/advanced_reboot/alternative_reboot')%>">
         <input type="hidden" name="token" value="<%=token%>" />
-        <input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply" value="<%:Reboot to alternative partition...%>" />
+        <input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to alternative partition...%>" />
       </form>
         <%- end -%>
       </div>
         <%- if boot_envvar1_partition_two == current_partition then -%>
           <form method="post" action="<%=url('admin/system/advanced_reboot/reboot')%>">
                <input type="hidden" name="token" value="<%=token%>" />
-            <input id="reboot-button" type="submit" class="cbi-button cbi-button-apply" value="<%:Reboot to current partition%>" />
+            <input id="reboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to current partition%>" />
           </form>
         <%- else -%>
         <form method="post" action="<%=url('admin/system/advanced_reboot/alternative_reboot')%>">
           <input type="hidden" name="token" value="<%=token%>" />
-          <input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply" value="<%:Reboot to alternative partition...%>" />
+          <input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to alternative partition...%>" />
         </form>
         <%- end -%>
       </div>
@@ -82,7 +82,7 @@
   <%- if rom_board_name then -%>
     <p class="alert-message warning"><%=pcdata(translatef("Warning: Device (%s) is unknown or isn't a dual-partition device!", rom_board_name))%></p>
   <%- else -%>
-    <p class="alert-message warning"><%:Warning: Unable to obtain device information!%></p>
+    <p class="alert-message warning"><%=pcdata(translatef("Warning: Unable to obtain device information!"))%></p>
   <%- end -%>
 <%- end -%>
 
@@ -91,7 +91,7 @@
 <%- if nixio.fs.access("/sbin/poweroff") then -%>
 <form method="post" action="<%=url('admin/system/advanced_reboot/power_off')%>">
        <input type="hidden" name="token" value="<%=token%>" />
-  <input id="poweroff-button" type="submit" class="cbi-button cbi-button-apply" value="<%:Perform power off...%>" />
+  <input id="poweroff-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Perform power off...%>" />
 </form>
 <%- else -%>
   <p class="alert-message warning"><%:Warning: This system does not support powering off!%></p>
index 6325934094fa3eb79622839eb1ee68698fbd3795..b15f16b0d573277585e8fbf8450000e5649a2bde 100644 (file)
@@ -1,7 +1,7 @@
 <%#
  Copyright 2008 Steven Barth <steven@midlink.org>
  Copyright 2008-2009 Jo-Philipp Wich <jow@openwrt.org>
- Copyright 2017 Stan Grishin <stangri@melmac.net>
+ Copyright 2017-2018 Stan Grishin <stangri@melmac.net>
  Licensed to the public under the Apache License 2.0.
 -%>
 
@@ -21,8 +21,8 @@
        <form class="inline" action="<%=REQUEST_URI%>" method="post">
                <input type="hidden" name="token" value="<%=token%>" />
                <input type="hidden" name="step" value="2" />
-               <input class="cbi-button cbi-button-reset" name="cancel" type="submit" value="<%:Cancel%>" />
-               <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />
+               <input class="cbi-button cbi-button-reset important" name="cancel" type="submit" value="<%:Cancel%>" />
+               <input class="cbi-button cbi-button-apply important" type="submit" value="<%:Proceed%>" />
        </form>
 </div>
 
index 0ddea11e65422d9a33f12ddd5138be951f1b96bf..1acf01b995169321c735ceff5b796df52ff28415 100644 (file)
@@ -1,7 +1,7 @@
 <%#
  Copyright 2008 Steven Barth <steven@midlink.org>
  Copyright 2008-2009 Jo-Philipp Wich <jow@openwrt.org>
- Copyright 2017 Stan Grishin <stangri@melmac.net>
+ Copyright 2017-2018 Stan Grishin <stangri@melmac.net>
  Licensed to the public under the Apache License 2.0.
 -%>
 
@@ -17,8 +17,8 @@
        <form class="inline" action="<%=REQUEST_URI%>" method="post">
                <input type="hidden" name="token" value="<%=token%>" />
                <input type="hidden" name="step" value="2" />
-               <input class="cbi-button cbi-button-reset" name="cancel" type="submit" value="<%:Cancel%>" />
-               <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />
+               <input class="cbi-button cbi-button-reset important" name="cancel" type="submit" value="<%:Cancel%>" />
+               <input class="cbi-button cbi-button-apply important" type="submit" value="<%:Proceed%>" />
        </form>
 </div>