Commit aa7e5719 authored by Ad Schellevis's avatar Ad Schellevis

work in progress proxy feature

parent 3e3548d1
...@@ -47,6 +47,10 @@ class SettingsController extends ApiControllerBase ...@@ -47,6 +47,10 @@ class SettingsController extends ApiControllerBase
$result = array(); $result = array();
if ($this->request->isGet()) { if ($this->request->isGet()) {
$mdlGeneral = new General(); $mdlGeneral = new General();
$selopt=array("lan"=>"LAN","wan"=>"WAN");
$mdlGeneral->interfaces->setSelectOptions($selopt);
$result['general'] = $mdlGeneral->getNodes(); $result['general'] = $mdlGeneral->getNodes();
} }
......
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
<default>0</default> <default>0</default>
<Required>Y</Required> <Required>Y</Required>
</enabled> </enabled>
<interfaces type="CSVListField">
<Required>N</Required>
</interfaces>
<port type="IntegerField"> <port type="IntegerField">
<default>3128</default> <default>3128</default>
<MinimumValue>1</MinimumValue> <MinimumValue>1</MinimumValue>
......
...@@ -58,6 +58,12 @@ ...@@ -58,6 +58,12 @@
'help':'test' 'help':'test'
]) ])
}} }}
{{ partial("layout_partials/form_input_tr",
['id': 'general.interfaces',
'label':'interfaces',
'type':'select_multiple'
])
}}
{{ partial("layout_partials/form_input_tr", {{ partial("layout_partials/form_input_tr",
['id': 'general.port', ['id': 'general.port',
'label':'port', 'label':'port',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment