'use strict'; 'require view'; 'require form'; return view.extend({ render: function() { var m, s, o; m = new form.Map('uhttpd', _('HTTP(S) Access'), _('uHTTPd offers HTTP or HTTPS network access.')); s = m.section(form.NamedSection, 'main', 'uhttpd', _('Settings')); s.addremove = false; o = s.option(form.Flag, 'redirect_https', _('Redirect to HTTPS'), _('Enable automatic redirection of HTTP requests to HTTPS port.')); o.enabled = 'on'; o.disabled = 'off'; o.default = o.disabled; o.rmempty = false; return m.render(); } });