mirror of
https://github.com/openwrt/luci.git
synced 2026-01-12 02:50:25 +04:00
Added a note to the Freifunk menu for OpenWRT
modules/admin-mini: Several small fixes and improvements
This commit is contained in:
@@ -19,6 +19,7 @@ function index()
|
||||
luci.i18n.loadc("admin-core")
|
||||
local i18n = luci.i18n.translate
|
||||
|
||||
entry({"mini", "network"}, cbi("mini-network/basic"), i18n("network"))
|
||||
entry({"mini", "network", "dhcp"}, cbi("mini-network/dhcp"), "DHCP", 10)
|
||||
entry({"mini", "network"}, alias("mini", "network", "basic"), i18n("network"), 20)
|
||||
entry({"mini", "network", "basic"}, cbi("mini-network/basic"), i18n("basicsettings"), 10)
|
||||
entry({"mini", "network", "dhcp"}, cbi("mini-network/dhcp"), "DHCP", 20)
|
||||
end
|
||||
@@ -20,7 +20,7 @@ function index()
|
||||
local i18n = luci.i18n.translate
|
||||
|
||||
entry({"mini", "system"}, call("action_reboot"), i18n("system"))
|
||||
entry({"admin", "system", "passwd"}, call("action_passwd"), i18n("a_s_changepw"), 10)
|
||||
entry({"mini", "system", "passwd"}, call("action_passwd"), i18n("a_s_changepw"), 10)
|
||||
entry({"mini", "system", "upgrade"}, call("action_upgrade"), i18n("a_s_flash"), 20)
|
||||
entry({"mini", "system", "reboot"}, call("action_reboot"), i18n("reboot"), 30)
|
||||
end
|
||||
|
||||
@@ -27,7 +27,7 @@ $Id$
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if not stat or stat == 10 then %>
|
||||
<form method="post" action="<%=controller%>/admin/system/passwd">
|
||||
<form method="post" action="<%=REQUEST_URI%>">
|
||||
<div class="cbi-section-node">
|
||||
<div class="cbi-value">
|
||||
<div class="cbi-value-title"><%:password%></div>
|
||||
|
||||
@@ -25,7 +25,7 @@ if c and next(c) then
|
||||
end
|
||||
if not reboot then
|
||||
-%>
|
||||
<p><a href="<%=controller%>/admin/system/reboot?reboot=1"><%:a_s_reboot_do%></a></p>
|
||||
<p><a href="<%=REQUEST_URI%>?reboot=1"><%:a_s_reboot_do%></a></p>
|
||||
<%- else -%>
|
||||
<p><%:a_s_reboot_running%></p>
|
||||
<script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 60000)</script>
|
||||
|
||||
Reference in New Issue
Block a user