1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Menu name via setting and typo fix

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-11-22 15:51:31 +01:00
parent 89c036b6f5
commit 937872e05c
6 changed files with 42 additions and 26 deletions

View file

@ -3,6 +3,8 @@
<% if stderr and #stderr > 0 then %><pre class="error"><%=pcdata(stderr)%></pre><% end %>
<%
local latest_omr_version=luci.model.uci.cursor():get("openmptcprouter","latest_versions","vps")
local ucic = luci.model.uci.cursor()
menuentry = ucic:get("openmptcprouter","settings","menu") or "openmptcprouter"
omr_test = false
uci:foreach("openmptcprouter","server", function(s)
servername = s[".name"]
@ -13,7 +15,7 @@
end)
if omr_test == true then
%>
<form class="inline" method="post" action="<%=url('admin/system/openmptcprouter/update_vps')%>">
<form class="inline" method="post" action="<%=url('admin/system/' .. menuentry:lower() .. '/update_vps')%>">
<div class="cbi-map">
<h2 name="content"><%:Update VPS%></h2>
<fieldset class="cbi-section" id="update">
@ -34,7 +36,7 @@
%>
<hr />
<form class="inline" method="post" action="<%=url('admin/system/openmptcprouter/settings_add')%>">
<form class="inline" method="post" action="<%=url('admin/system/' .. menuentry:lower() .. '/settings_add')%>">
<div class="cbi-map">
<h2 name="content"><%:Advanced Settings%></h2>
<fieldset class="cbi-section" id="networks">