'use strict';
'require view';
'require form';
'require tools.widgets as widgets';
return view.extend({
render: function() {
var m, s, o;
m = new form.Map('dropbear', _('SSH Access'), _('Dropbear offers SSH network shell access and an integrated SCP server'));
s = m.section(form.TypedSection, 'dropbear', _('Dropbear Instance'));
s.anonymous = true;
s.addremove = true;
s.addbtntitle = _('Add instance');
o = s.option(form.Flag, 'enable', _('Enable Instance'), _('Enable SSH 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 = s.option(form.Value, 'Port', _('Port'));
o.datatype = 'port';
o.placeholder = 22;
o = s.option(form.Flag, 'PasswordAuth', _('Password authentication'), _('Allow SSH password authentication'));
o.default = true;
o.rmempty = false;
o = s.option(form.Flag, 'RootPasswordAuth', _('Allow root logins with password'), _('Allow the root 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'));
return m.render();
}
});