op-packages/luci-app-pptpd/htdocs/luci-static/resources/view/pptpd/user.js
github-actions[bot] 263d407c11 🎄 Sync 2026-04-23 03:14:31
2026-04-23 03:14:31 +08:00

40 lines
903 B
JavaScript

'use strict';
'require form';
'require view';
'require uci';
'require rpc';
'require tools.widgets as widgets';
return view.extend({
render: function() {
var m, s, o;
m = new form.Map('pptpd', _('PPTP Server'));
m.description = _('Simple, quick and convenient PPTP VPN, universal across the platform');
s = m.section(form.TableSection, 'login');
s.anonymous = true;
s.addremove = true;
o = s.option(form.Flag, 'enabled', _('Enabled'));
o.editable = true;
o = s.option(form.Value, 'username', _('User name'));
o.editable = true;
o = s.option(form.Value, 'password', _('Password'));
o.editable = true;
o = s.option(form.Value, 'remoteip', _('IP address'));
o.editable = true;
o.datatype = 'ipaddr';
o = s.option(form.Value, 'route', _('Add route'));
o.editable = true;
o.datatype = "ipaddr"
o.placeholder = "192.168.10.0/24"
return m.render();
}
});