0
0
mirror of https://github.com/openwrt/luci.git synced 2025-04-07 17:34:38 +00:00
Files
Khachatryan Karen e6556e97fb luci-app-antiblock: Gateway selection bug fixed
1) Changed from "widgets.NetworkSelect" to "widgets.DeviceSelect"

Signed-off-by: Khachatryan Karen <karen0734@gmail.com>
2025-04-04 18:07:37 +02:00

27 lines
853 B
JavaScript

'use strict';
'require view';
'require form';
'require tools.widgets as widgets';
return view.extend({
render: function () {
const m = new form.Map('antiblock', _('Routes'));
const s = m.section(form.GridSection, 'route', _('Routes'), _('It is necessary to enter from 1 to 32 values:'));
s.optional = false;
s.anonymous = true;
s.addremove = true;
s.nodescriptions = true;
let o = s.option(widgets.DeviceSelect, 'gateway', _('Gateway'), _('Gateway'));
o.loopback = true;
o.nocreate = true;
o.noaliases = true;
o = s.option(form.Value, 'domains_path', _('Domains path'), _('Domains path/URL. If you want to add domains via LuCI, specify the files in the /etc/antiblock folder.'));
o.default = '/etc/antiblock/';
return m.render();
}
});