diff options
author | Tobias Schramm <tobleminer@gmail.com> | 2019-12-04 02:43:06 +0100 |
---|---|---|
committer | Tobias Schramm <tobleminer@gmail.com> | 2019-12-04 13:48:37 +0100 |
commit | 2ab71420c33ad613ec181d9a29112c1afa146d34 (patch) | |
tree | b572d93528f05d7989da9b7a3c282e98b496c210 /modules | |
parent | 796301a02f95739383262051ad1a551c153a680e (diff) |
luci-mod-network: Add description field to VLANs
Having a description attached to a VLAN makes identification a lot easier when
dealing with many VLANs
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js index 80c8437fc4..c20665adf0 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js @@ -334,6 +334,8 @@ return L.view.extend({ return (value || uci.get('network', section_id, 'vlan')); }; + s.option(form.Value, 'description', _('Description')); + for (var j = 0; Array.isArray(topology.ports) && j < topology.ports.length; j++) { var portspec = topology.ports[j], portstate = Array.isArray(topology.portstate) ? topology.portstate[portspec.num] : null; |