diff options
author | Florian Eckert <fe@dev.tdt.de> | 2023-08-17 14:32:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 14:32:38 +0200 |
commit | 3736d8b54d11dd48a9262349d1730455e0832174 (patch) | |
tree | 62ad9d31f0549602e6903f58fe985c9c31dcf76e /protocols/luci-proto-modemmanager/htdocs/luci-static | |
parent | 24eed6fc14974d7e19b532e1dc111ccc5b6780a6 (diff) | |
parent | 5b925ea92b2d3a2f068f9835e533c8cfd86c427a (diff) |
Merge pull request #6508 from TDT-AG/pr/20230809-luci-proto-modemmanager
luci-proto-modemmanager: add allowed and preferred mode
Diffstat (limited to 'protocols/luci-proto-modemmanager/htdocs/luci-static')
-rw-r--r-- | protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js b/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js index 34b71addd6..083f8806da 100644 --- a/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js +++ b/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js @@ -82,6 +82,44 @@ return network.registerProtocol('modemmanager', { o.value('none', _('None')); o.default = 'none'; + o = s.taboption('general', form.ListValue, 'allowedmode', _('Allowed network technology'), + _('Setting the allowed network technology.')); + o.value('2g'); + o.value('3g'); + o.value('3g|2g'); + o.value('4g'); + o.value('4g|2g'); + o.value('4g|3g'); + o.value('4g|3g|2g'); + o.value('5g'); + o.value('5g|2g'); + o.value('5g|3g'); + o.value('5g|3g|2g'); + o.value('5g|4g'); + o.value('5g|4g|2g'); + o.value('5g|4g|3g'); + o.value('5g|4g|3g|2g'); + o.value('',_('any')); + o.default = ''; + + o = s.taboption('general', form.ListValue, 'preferredmode', _('Preferred network technology'), + _('Setting the preferred network technology.')); + o.value('2g'); + o.value('3g'); + o.value('4g'); + o.value('5g'); + o.depends('allowedmode','3g|2g'); + o.depends('allowedmode','4g|2g'); + o.depends('allowedmode','4g|3g'); + o.depends('allowedmode','4g|3g|2g'); + o.depends('allowedmode','5g|2g'); + o.depends('allowedmode','5g|3g'); + o.depends('allowedmode','5g|3g|2g'); + o.depends('allowedmode','5g|4g'); + o.depends('allowedmode','5g|4g|2g'); + o.depends('allowedmode','5g|4g|3g'); + o.depends('allowedmode','5g|4g|3g|2g'); + o = s.taboption('general', form.Value, 'username', _('PAP/CHAP username')); o.depends('auth', 'pap'); o.depends('auth', 'chap'); |