op-packages/luci-app-smscontrol/htdocs/luci-static/resources/view/smscontrol/call2cli.js
github-actions[bot] 263d407c11 🎄 Sync 2026-04-23 03:14:31
2026-04-23 03:14:31 +08:00

34 lines
760 B
JavaScript

'use strict';
'require form';
'require view';
'require uci';
'require rpc';
'require tools.widgets as widgets';
return view.extend({
render: function() {
var m, s, o;
m = new form.Map('smscontrol', _('Command over SMS'));
m.description = _('You can make a call from the allowed phone number and then the router will execute the command');
s = m.section(form.TableSection, 'call');
s.anonymous = true;
o = s.option(form.Flag, 'enabled', _('Enabled'));
o.rmempty = false;
o.editable = true;
o = s.option(form.Flag, 'ack', _('Reply via SMS'));
o.rmempty = true;
o.editable = true;
o = s.option(form.Value, 'command', _('Linux command'));
o.rmempty =false;
o.optional = false;
o.editable = true;
return m.render();
}
});