summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-04-01 16:53:52 +0200
committerJo-Philipp Wich <jo@mein.io>2019-07-07 15:36:24 +0200
commit675824e377cee636beaaa003ce7dcf346ae148ab (patch)
treeb72adc0595d6c2945c85fc34ebafea2115a6b797 /modules/luci-mod-system/luasrc/controller
parentc7a9900c8734f19e34af5bd4a4106566d4ca3ca1 (diff)
luci-mod-system: use client side cbi forms for system and led config
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/luasrc/controller')
-rw-r--r--modules/luci-mod-system/luasrc/controller/admin/system.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-mod-system/luasrc/controller/admin/system.lua b/modules/luci-mod-system/luasrc/controller/admin/system.lua
index 49d4476c4e..d73a1cbdb4 100644
--- a/modules/luci-mod-system/luasrc/controller/admin/system.lua
+++ b/modules/luci-mod-system/luasrc/controller/admin/system.lua
@@ -7,7 +7,7 @@ module("luci.controller.admin.system", package.seeall)
function index()
local fs = require "nixio.fs"
- entry({"admin", "system", "system"}, cbi("admin_system/system"), _("System"), 1)
+ entry({"admin", "system", "system"}, view("system/system"), _("System"), 1)
entry({"admin", "system", "clock_status"}, post_on({ set = true }, "action_clock_status"))
entry({"admin", "system", "ntp_restart"}, call("action_ntp_restart"), nil).leaf = true
@@ -32,7 +32,7 @@ function index()
local nodes, number = fs.glob("/sys/class/leds/*")
if number > 0 then
- entry({"admin", "system", "leds"}, cbi("admin_system/leds"), _("<abbr title=\"Light Emitting Diode\">LED</abbr> Configuration"), 60)
+ entry({"admin", "system", "leds"}, view("system/leds"), _("<abbr title=\"Light Emitting Diode\">LED</abbr> Configuration"), 60)
end
entry({"admin", "system", "flashops"}, call("action_flashops"), _("Backup / Flash Firmware"), 70)