Translated using Weblate (Japanese)
[oweals/luci.git] / modules / luci-mod-system / htdocs / luci-static / resources / view / system / dropbear.js
1 'use strict';
2 'require view';
3 'require form';
4 'require tools.widgets as widgets';
5
6 return view.extend({
7         render: function() {
8                 var m, s, o;
9
10                 m = new form.Map('dropbear', _('SSH Access'), _('Dropbear offers <abbr title="Secure Shell">SSH</abbr> network shell access and an integrated <abbr title="Secure Copy">SCP</abbr> server'));
11
12                 s = m.section(form.TypedSection, 'dropbear', _('Dropbear Instance'));
13                 s.anonymous = true;
14                 s.addremove = true;
15                 s.addbtntitle = _('Add instance');
16
17                 o = s.option(widgets.NetworkSelect, 'Interface', _('Interface'), _('Listen only on the given interface or, if unspecified, on all'));
18                 o.nocreate    = true;
19                 o.unspecified = true;
20
21                 o = s.option(form.Value, 'Port', _('Port'));
22                 o.datatype    = 'port';
23                 o.placeholder = 22;
24
25                 o = s.option(form.Flag, 'PasswordAuth', _('Password authentication'), _('Allow <abbr title="Secure Shell">SSH</abbr> password authentication'));
26                 o.enabled  = 'on';
27                 o.disabled = 'off';
28                 o.default  = o.enabled;
29                 o.rmempty  = false;
30
31                 o = s.option(form.Flag, 'RootPasswordAuth', _('Allow root logins with password'), _('Allow the <em>root</em> user to login with password'));
32                 o.enabled  = 'on';
33                 o.disabled = 'off';
34                 o.default  = o.enabled;
35
36                 o = s.option(form.Flag, 'GatewayPorts', _('Gateway Ports'), _('Allow remote hosts to connect to local SSH forwarded ports'));
37                 o.enabled  = 'on';
38                 o.disabled = 'off';
39                 o.default  = o.disabled;
40
41                 return m.render();
42         }
43 });