I am trying to create a new simple luci page which allows you to set a WiFi ssid and have it used for both 2GHz and 5GHz.
Here I have it for setting default_radio0 and that works fine. How can get luci to also save this as default_radio1?
'use strict';
'require view';
'require form';
return view.extend({
render: function () {
var m, s, o;
var sectionName;
m = new form.Map('wireless', 'WiFi',
'Here you can choose your WiFi network name'
);
s = m.section(form.NamedSection, 'default_radio0');
o = s.option(form.Value, 'ssid', _('WiFi network name:'),
'ssid goes here'
);
o.datatype = 'maxlength(32)';
o.placeholder = 'somethingssid';
return m.render();
}
});