mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
luci-app-rp-pppoe-server: change interface handler to NetworkSelect
Closes #7695 Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -24,21 +24,21 @@ return view.extend({
|
||||
|
||||
o = s.option(form.Flag, 'enabled', _('Enabled'));
|
||||
|
||||
o = s.option(widgets.DeviceSelect, 'server_interface', _('Server Interface'), _('Interface on which to listen. Only PPPoE servers may be connected to this interface.'));
|
||||
o = s.option(widgets.NetworkSelect, 'server_interface', _('Server Interface'), _('Interface on which to listen. Only PPPoE servers may be connected to this interface.'));
|
||||
o.multiple = true;
|
||||
o.optional = true;
|
||||
o.nocreate = true;
|
||||
o.rmempty = true;
|
||||
o.depends({ enabled: '1' });
|
||||
|
||||
o = s.option(widgets.DeviceSelect, 'client_interface', _('Client Interface'), _('Interface from which to relay. Only PPPoE clients may be connected to this interface.'));
|
||||
o = s.option(widgets.NetworkSelect, 'client_interface', _('Client Interface'), _('Interface from which to relay. Only PPPoE clients may be connected to this interface.'));
|
||||
o.multiple = true;
|
||||
o.optional = true;
|
||||
o.nocreate = true;
|
||||
o.rmempty = true;
|
||||
o.depends({ enabled: '1' });
|
||||
|
||||
o = s.option(widgets.DeviceSelect, 'both_interface', _('Both Interface'), _('Interface upon which to listen and to relay. Both PPPoE clients and servers may be connected to this interface.'));
|
||||
o = s.option(widgets.NetworkSelect, 'both_interface', _('Both Interface'), _('Interface upon which to listen and to relay. Both PPPoE clients and servers may be connected to this interface.'));
|
||||
o.multiple = true;
|
||||
o.optional = true;
|
||||
o.nocreate = true;
|
||||
|
||||
@@ -24,7 +24,7 @@ return view.extend({
|
||||
|
||||
o = s.option(form.Flag, 'enabled', _('Enabled'));
|
||||
|
||||
o = s.option(widgets.DeviceSelect, 'interface', _('Interface'), _('Interface on which to listen.'));
|
||||
o = s.option(widgets.NetworkSelect, 'interface', _('Interface'), _('Interface on which to listen.'));
|
||||
o.optional = true;
|
||||
o.nocreate = true;
|
||||
o.rmempty = true;
|
||||
|
||||
Reference in New Issue
Block a user