0
0
mirror of https://github.com/openwrt/luci.git synced 2025-04-08 22:44:35 +00:00
Files
Florian Eckert c2cf0839e6 luci-app-keepalived: clean up translation
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2025-03-14 12:39:54 +01:00

39 lines
944 B
JavaScript

'use strict';
'require view';
'require form';
'require tools.widgets as widgets';
'require uci';
return view.extend({
render: function() {
let m, s, o;
m = new form.Map('keepalived');
s = m.section(form.GridSection, 'track_interface', _('Track Interface'));
s.anonymous = true;
s.addremove = true;
s.nodescriptions = true;
o = s.option(form.Value, 'name', _('Name'));
o.rmempty = false;
o.optional = false;
o = s.option(widgets.DeviceSelect, 'value', _('Device'),
_('Device to track'));
o.noaliases = true;
o.rmempty = false;
o.optional = false;
o = s.option(form.Value, 'weight', _('Weight'),
_('When a weight is specified, instead of setting the' +
'vrrp_instance to the FAULT state in case of failure, ' +
'its priority will be increased or decreased by the ' +
'weight when the interface is up or down'));
o.optional = false;
o.datatype = 'uinteger';
return m.render();
}
});