Merge pull request #5193 from zhoreeq/luci_yggdrasil_update
[project/luci.git] / applications / luci-app-yggdrasil / htdocs / luci-static / resources / view / yggdrasil / keys.js
1 'use strict';
2 'require view';
3 'require form';
4
5 return view.extend({
6 render: function() {
7 var m, s, o;
8
9 m = new form.Map('yggdrasil', 'Yggdrasil');
10
11 s = m.section(form.TypedSection, "yggdrasil", _("Encryption keys"));
12 s.anonymous = true;
13
14 s.option(form.Value, "PublicKey", _("Encryption public key"));
15 s.option(form.Value, "PrivateKey", _("Encryption private key"),
16 _("Keep this private. When compromised, generate a new keypair and IPv6."));
17
18 return m.render();
19 }
20 });