diff options
author | Florian Eckert <fe@dev.tdt.de> | 2021-06-21 12:44:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 12:44:36 +0200 |
commit | b88157e69a060ade618e48b30947729310935d61 (patch) | |
tree | 0b76b47a6ddbab3e1f024c3b3b297261354e9ec4 /modules/luci-mod-network/htdocs/luci-static | |
parent | 8f8ce8613fb6e41954aa5bcbb60330e3b034bd3a (diff) | |
parent | bfe8a01040c8a74f38818195620f069f5bc10c5c (diff) |
Merge pull request #4965 from tano-systems/pr/20210406-disable-routes-support
luci-mod-network: Support for disabling routes
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js index b218daac34..7e11a3cb41 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js @@ -20,6 +20,7 @@ return view.extend({ s.anonymous = true; s.addremove = true; s.sortable = true; + s.nodescriptions = true; s.tab('general', _('General Settings')); s.tab('advanced', _('Advanced Settings')); @@ -28,6 +29,10 @@ return view.extend({ o.rmempty = false; o.nocreate = true; + o = s.taboption('general', form.Flag, 'disabled', _('Disable'), _('Disable this route')); + o.rmempty = true; + o.default = o.disabled; + o = s.taboption('general', form.Value, 'target', _('Target'), (i == 4) ? _('Host-<abbr title="Internet Protocol Address">IP</abbr> or Network') : _('<abbr title="Internet Protocol Version 6">IPv6</abbr>-Address or Network (CIDR)')); o.datatype = (i == 4) ? 'ip4addr' : 'ip6addr'; o.rmempty = false; |