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
$result = array();
if ($this->request->isGet()) {
$mdlGeneral = new General();
$selopt=array("lan"=>"LAN","wan"=>"WAN");
$mdlGeneral->interfaces->setSelectOptions($selopt);
$result['general'] = $mdlGeneral->getNodes();
}
......
......@@ -8,6 +8,9 @@
<default>0</default>
<Required>Y</Required>
</enabled>
<interfaces type="CSVListField">
<Required>N</Required>
</interfaces>
<port type="IntegerField">
<default>3128</default>
<MinimumValue>1</MinimumValue>
......
......@@ -58,6 +58,12 @@
'help':'test'
])
}}
{{ partial("layout_partials/form_input_tr",
['id': 'general.interfaces',
'label':'interfaces',
'type':'select_multiple'
])
}}
{{ partial("layout_partials/form_input_tr",
['id': 'general.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