treewide: import utility classes explicitly
[project/luci.git] / applications / luci-app-yggdrasil / htdocs / luci-static / resources / view / yggdrasil / peers.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 o = m.section(form.TableSection, "peer", _("Peers"),
12 _("List of connection strings for outbound peer connections in URI format, " +
13 "e.g. tcp://a.b.c.d:e or socks://a.b.c.d:e/f.g.h.i:j. These connections " +
14 "will obey the operating system routing table, therefore you should " +
15 "use this section when you may connect via different interfaces."));
16 o.option(form.Value, "uri", "URI");
17 o.anonymous = true;
18 o.addremove = true;
19
20 o = m.section(form.TableSection, "interface_peer", _("Interface peers"),
21 _("List of connection strings for outbound peer connections in URI format, " +
22 "arranged by source interface, e.g. { \"eth0\": [ tcp://a.b.c.d:e ] }. " +
23 "Note that SOCKS peerings will NOT be affected by this option and should " +
24 "go in the \"Peers\" section instead."));
25 o.option(form.Value, "interface", _("Interface"));
26 o.option(form.Value, "uri", "URI");
27 o.anonymous = true;
28 o.addremove = true;
29
30 return m.render();
31 }
32 });