Add notice about autoupdater to config mode
This commit is contained in:
parent
99936deed8
commit
638aef092e
|
@ -11,6 +11,15 @@ f.reset = false
|
||||||
f.template = "gluon-config-mode/cbi/wizard"
|
f.template = "gluon-config-mode/cbi/wizard"
|
||||||
f.submit = "Fertig"
|
f.submit = "Fertig"
|
||||||
|
|
||||||
|
if uci:get_bool("autoupdater", "settings", "enabled") then
|
||||||
|
f:set(nil, "autoupdater_msg", [[Dieser Knoten aktualisiert seine Firmware <b>automatisch</b>,
|
||||||
|
sobald eine neue Version vorliegt. Falls du dies nicht möchtest,
|
||||||
|
kannst du die Funktion im <i>Expertmode</i> deaktivieren.]])
|
||||||
|
else
|
||||||
|
f:set(nil, "autoupdater_msg", [[Dieser Knoten aktualisiert seine Firmware <b>nicht automatisch</b>.
|
||||||
|
Diese Funktion kannst du im <i>Expertmode</i> aktivieren.]])
|
||||||
|
end
|
||||||
|
|
||||||
s = f:section(SimpleSection, nil, nil)
|
s = f:section(SimpleSection, nil, nil)
|
||||||
|
|
||||||
o = s:option(Value, "_hostname", "Name dieses Knotens")
|
o = s:option(Value, "_hostname", "Name dieses Knotens")
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
<p>
|
<p>
|
||||||
<%= template.render_string(site.config_mode.msg_welcome, {hostname=hostname, sysconfig=sysconfig}) %>
|
<%= template.render_string(site.config_mode.msg_welcome, {hostname=hostname, sysconfig=sysconfig}) %>
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<%=self.data["autoupdater_msg"]%>
|
||||||
|
</p>
|
||||||
|
|
||||||
<% if not self.embedded then %>
|
<% if not self.embedded then %>
|
||||||
<form method="post" enctype="multipart/form-data" action="<%=REQUEST_URI%>">
|
<form method="post" enctype="multipart/form-data" action="<%=REQUEST_URI%>">
|
||||||
|
|
Loading…
Reference in a new issue