luci-app-mwan3: update rule help text
[project/luci.git] / applications / luci-app-mwan3 / luasrc / model / cbi / mwan / rule.lua
index 9cb4756..151103f 100644 (file)
@@ -33,15 +33,17 @@ error_protocol_list = " "
 ruleCheck()
 
 
-m5 = Map("mwan3", translate("MWAN Rule Configuration"),
+m5 = Map("mwan3", translate("MWAN - Rules"),
        ruleWarn())
-       m5:append(Template("mwan/config_css"))
 
-
-mwan_rule = m5:section(TypedSection, "rule", translate("Traffic Rules"),
-       translate("Rules specify which traffic will use a particular MWAN policy based on IP address, port or protocol<br />" ..
-       "Rules are matched from top to bottom. Rules below a matching rule are ignored. Traffic not matching any rule is routed using the main routing table<br />" ..
-       "Traffic destined for known (other than default) networks is handled by the main routing table. Traffic matching a rule, but all WAN interfaces for that policy are down will be blackholed<br />" ..
+mwan_rule = m5:section(TypedSection, "rule", nil,
+       translate("Rules specify which traffic will use a particular MWAN policy<br />" ..
+       "Rules are based on IP address, port or protocol<br />" ..
+       "Rules are matched from top to bottom<br />" ..
+       "Rules below a matching rule are ignored<br />" ..
+       "Traffic not matching any rule is routed using the main routing table<br />" ..
+       "Traffic destined for known (other than default) networks is handled by the main routing table<br />" ..
+       "Traffic matching a rule, but all WAN interfaces for that policy are down will be blackholed<br />" ..
        "Names may contain characters A-Z, a-z, 0-9, _ and no spaces<br />" ..
        "Rules may not share the same name as configured interfaces, members or policies"))
        mwan_rule.addremove = true
@@ -50,11 +52,11 @@ mwan_rule = m5:section(TypedSection, "rule", translate("Traffic Rules"),
        mwan_rule.sectionhead = translate("Rule")
        mwan_rule.sortable = true
        mwan_rule.template = "cbi/tblsection"
-       mwan_rule.extedit = dsp.build_url("admin", "network", "mwan", "configuration", "rule", "%s")
+       mwan_rule.extedit = dsp.build_url("admin", "network", "mwan", "rule", "%s")
        function mwan_rule.create(self, section)
                TypedSection.create(self, section)
                m5.uci:save("mwan3")
-               luci.http.redirect(dsp.build_url("admin", "network", "mwan", "configuration", "rule", section))
+               luci.http.redirect(dsp.build_url("admin", "network", "mwan", "rule", section))
        end