luci-mod-admin-full: dispatch SimpleForm models using the form() action

This fixes issues dicovered by check-controllers.sh

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2018-04-06 12:10:16 +02:00
parent ec2ad15305
commit 14da6e85a6
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ function index()
end end
page = entry({"admin", "network", "iface_add"}, cbi("admin_network/iface_add"), nil) page = entry({"admin", "network", "iface_add"}, form("admin_network/iface_add"), nil)
page.leaf = true page.leaf = true
page = entry({"admin", "network", "iface_delete"}, post("iface_delete"), nil) page = entry({"admin", "network", "iface_delete"}, post("iface_delete"), nil)

View file

@ -14,7 +14,7 @@ function index()
entry({"admin", "status", "routes"}, template("admin_status/routes"), _("Routes"), 3) entry({"admin", "status", "routes"}, template("admin_status/routes"), _("Routes"), 3)
entry({"admin", "status", "syslog"}, call("action_syslog"), _("System Log"), 4) entry({"admin", "status", "syslog"}, call("action_syslog"), _("System Log"), 4)
entry({"admin", "status", "dmesg"}, call("action_dmesg"), _("Kernel Log"), 5) entry({"admin", "status", "dmesg"}, call("action_dmesg"), _("Kernel Log"), 5)
entry({"admin", "status", "processes"}, cbi("admin_status/processes"), _("Processes"), 6) entry({"admin", "status", "processes"}, form("admin_status/processes"), _("Processes"), 6)
entry({"admin", "status", "realtime"}, alias("admin", "status", "realtime", "load"), _("Realtime Graphs"), 7) entry({"admin", "status", "realtime"}, alias("admin", "status", "realtime", "load"), _("Realtime Graphs"), 7)