treewide: import utility classes explicitly
[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, "EncryptionPublicKey", _("Encryption public key"));
15 s.option(form.Value, "EncryptionPrivateKey", _("Encryption private key"),
16 _("Keep this private. When compromised, generate a new keypair and IPv6."));
17 s.option(form.Value, "SigningPublicKey", _("Signing public key"));
18 s.option(form.Value, "SigningPrivateKey", _("Signing private key"),
19 _("Keep this private. When compromised, generate a new keypair and IPv6."));
20
21 return m.render();
22 }
23 });