luci/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/url.js
Jaymin Patel d1a82d2886 luci-app-keepalived: Add LuCI for keepalived
LuCI Support for Keepalived

Signed-off-by: Jaymin Patel <jem.patel@gmail.com>
2022-10-23 16:19:33 +05:30

30 lines
662 B
JavaScript

'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();
}
});