luci-app-banip: sync with forthcoming banIP 1.0
[project/luci.git] / modules / luci-mod-system / htdocs / luci-static / resources / view / system / dropbear.js
index 6ee801abc25dab3e45a914be086afe7646155acd..24ed804413ccebad223ff14f2147d138614c48bf 100644 (file)
@@ -14,29 +14,24 @@ return view.extend({
                s.addremove = true;
                s.addbtntitle = _('Add instance');
 
+               o = s.option(form.Flag, 'enable', _('Enable Instance'), _('Enable <abbr title="Secure Shell">SSH</abbr> service instance'));
+               o.default = true;
+
                o = s.option(widgets.NetworkSelect, 'Interface', _('Interface'), _('Listen only on the given interface or, if unspecified, on all'));
                o.nocreate    = true;
-               o.unspecified = true;
 
                o = s.option(form.Value, 'Port', _('Port'));
                o.datatype    = 'port';
                o.placeholder = 22;
 
                o = s.option(form.Flag, 'PasswordAuth', _('Password authentication'), _('Allow <abbr title="Secure Shell">SSH</abbr> password authentication'));
-               o.enabled  = 'on';
-               o.disabled = 'off';
-               o.default  = o.enabled;
+               o.default = true;
                o.rmempty  = false;
 
-               o = s.option(form.Flag, 'RootPasswordAuth', _('Allow root logins with password'), _('Allow the <em>root</em> user to login with password'));
-               o.enabled  = 'on';
-               o.disabled = 'off';
-               o.default  = o.enabled;
+               o = s.option(form.Flag, 'RootPasswordAuth', _('Allow root logins with password'), _('Allow the <em>root</em> user to log in with password'));
+               o.default = true;
 
                o = s.option(form.Flag, 'GatewayPorts', _('Gateway Ports'), _('Allow remote hosts to connect to local SSH forwarded ports'));
-               o.enabled  = 'on';
-               o.disabled = 'off';
-               o.default  = o.disabled;
 
                return m.render();
        }