1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
'use strict';
'require view';
'require form';
return view.extend({
render: function() {
var m, s, o;
m = new form.Map('keepalived');
s = m.section(form.GridSection, 'url', _('URLs'),
_('URLs can be referenced into Real Servers to test'));
s.anonymous = true;
s.addremove = true;
s.nodescriptions = true;
o = s.option(form.Value, 'name', _('Name'));
o.optional = false;
o = s.option(form.Value, 'path', _('URL Path'),
_('URL path, i.e path /, or path /mrtg2/'));
o.optional = false;
o = s.option(form.Value, 'digest', _('Digest'),
_('Digest computed with genhash'));
o.datatype = 'length(32)';
return m.render();
}
});
|