luci-app-mwan3: remove unnecessary table information
[project/luci.git] / applications / luci-app-mwan3 / luasrc / model / cbi / mwan / ruleconfig.lua
index 25a96f5..812d463 100644 (file)
@@ -13,7 +13,7 @@ end
 
 function ruleWarn() -- display warning message at the top of the page
        if error_protocol == 1 then
-               return "<font color=\"ff0000\"><strong>" .. translate("WARNING: this rule is incorrectly configured with no or improper protocol specified! Please configure a specific protocol!") .. "</strong></font>"
+               return "<font color=\"ff0000\"><strong>" .. translate("WARNING: This rule is incorrectly configured with no or improper protocol specified! Please configure a specific protocol!") .. "</strong></font>"
        else
                return ""
        end
@@ -47,7 +47,7 @@ ruleCheck()
 
 m5 = Map("mwan3", translatef("MWAN Rule Configuration - %s", arg[1]),
        ruleWarn())
-       m5.redirect = dsp.build_url("admin", "network", "mwan", "configuration", "rule")
+       m5.redirect = dsp.build_url("admin", "network", "mwan", "rule")
 
 
 mwan_rule = m5:section(NamedSection, arg[1], "rule", "")
@@ -100,14 +100,4 @@ use_policy = mwan_rule:option(Value, "use_policy", translate("Policy assigned"))
        use_policy:value("blackhole", translate("blackhole (drop)"))
        use_policy:value("default", translate("default (use main routing table)"))
 
-
--- ------ currently configured policies ------ --
-
-mwan_policy = m5:section(TypedSection, "policy", translate("Currently Configured Policies"))
-       mwan_policy.addremove = false
-       mwan_policy.dynamic = false
-       mwan_policy.sortable = false
-       mwan_policy.template = "cbi/tblsection"
-
-
 return m5