mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 18:44:03 +08:00
🎄 Sync 2026-04-23 03:14:31
This commit is contained in:
1 parent
67b877b3d6
commit
7439c23f17
97 files changed
+4710
-1
No files matched your search
@@ -0,0 +1,39 @@
|
||||
'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();
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user