From 675824e377cee636beaaa003ce7dcf346ae148ab Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 1 Apr 2019 16:53:52 +0200 Subject: luci-mod-system: use client side cbi forms for system and led config Signed-off-by: Jo-Philipp Wich --- modules/luci-mod-system/luasrc/controller/admin/system.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/luci-mod-system/luasrc/controller') 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"), _("LED Configuration"), 60) + entry({"admin", "system", "leds"}, view("system/leds"), _("LED Configuration"), 60) end entry({"admin", "system", "flashops"}, call("action_flashops"), _("Backup / Flash Firmware"), 70) -- cgit v1.2.3