summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-apinger/htdocs/luci-static/resources/view/apinger/alarm_down.js
blob: 2b66c454122987c4e72bf3e11c6560c78d3cf79e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
'use strict';
'require view';
'require form';

return view.extend({
	render: function() {
		let m, s, o;

		m = new form.Map('apinger', _('Apinger - Down Alarm'),
			_('This alarm will be fired when target does not respond for "Time"'));

		s = m.section(form.GridSection, 'alarm_down');
		s.anonymous = false;
		s.addremove = true;
		s.addbtntitle = _('Add Down Alarm');

		o = s.option(form.Value, 'time', _('Time (s)'));
		o.datatype = 'range(1-30)';
		o.default = '1';
		o.placeholder = '1';

		return m.render();
	},
});