mirror of
https://github.com/openwrt/luci.git
synced 2025-01-18 19:32:08 +00:00
be640ce110
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
40 lines
949 B
JavaScript
40 lines
949 B
JavaScript
'use strict';
|
|
'require baseclass';
|
|
'require form';
|
|
'require tools.widgets as widgets';
|
|
|
|
return baseclass.extend({
|
|
trigger: _('WiFi signal quality (service: rssileds)'),
|
|
kernel: false,
|
|
addFormOptions(s){
|
|
var o;
|
|
|
|
o = s.option(widgets.DeviceSelect, '_rssi_iface', _('Device'));
|
|
o.rmempty = true;
|
|
o.ucioption = 'iface';
|
|
o.modalonly = true;
|
|
o.noaliases = true;
|
|
o.depends('trigger', 'rssi');
|
|
|
|
o = s.option(form.Value, 'minq', _('Minimal quality'));
|
|
o.rmempty = true;
|
|
o.modalonly = true;
|
|
o.depends('trigger', 'rssi');
|
|
|
|
o = s.option(form.Value, 'maxq', _('Maximal quality'));
|
|
o.rmempty = true;
|
|
o.modalonly = true;
|
|
o.depends('trigger', 'rssi');
|
|
|
|
o = s.option(form.Value, 'offset', _('Value offset'));
|
|
o.rmempty = true;
|
|
o.modalonly = true;
|
|
o.depends('trigger', 'rssi');
|
|
|
|
o = s.option(form.Value, 'factor', _('Multiplication factor'));
|
|
o.rmempty = true;
|
|
o.modalonly = true;
|
|
o.depends('trigger', 'rssi');
|
|
}
|
|
});
|