Merge pull request #4890 from stangri/19.07-luci-app-vpn-policy-routing
[19.07] luci-app-vpn-policy-routing: bugfix: template layout on theme-openwrt-2020
This commit is contained in:
commit
193f40d30c
5 changed files with 15 additions and 9 deletions
|
@ -132,7 +132,7 @@ m = Map("vpn-policy-routing", translate("VPN and WAN Policy-Based Routing"))
|
||||||
|
|
||||||
h = m:section(NamedSection, "config", packageName, translatef("Service Status [%s %s]", packageName, packageVersion))
|
h = m:section(NamedSection, "config", packageName, translatef("Service Status [%s %s]", packageName, packageVersion))
|
||||||
status = h:option(DummyValue, "_dummy", translate("Service Status"))
|
status = h:option(DummyValue, "_dummy", translate("Service Status"))
|
||||||
status.template = "vpn-policy-routing/status-service"
|
status.template = "vpn-policy-routing/status"
|
||||||
status.value = statusText
|
status.value = statusText
|
||||||
if serviceRunning and serviceGateways and serviceGateways ~= "" then
|
if serviceRunning and serviceGateways and serviceGateways ~= "" then
|
||||||
gateways = h:option(DummyValue, "_dummy", translate("Service Gateways"))
|
gateways = h:option(DummyValue, "_dummy", translate("Service Gateways"))
|
||||||
|
@ -150,7 +150,7 @@ if serviceWarnings and serviceWarnings ~= "" then
|
||||||
warnings.value = serviceWarnings
|
warnings.value = serviceWarnings
|
||||||
end
|
end
|
||||||
if packageVersion ~= "" then
|
if packageVersion ~= "" then
|
||||||
buttons = h:option(DummyValue, "_dummy")
|
buttons = h:option(DummyValue, "_dummy", translate("Service Control"))
|
||||||
buttons.template = packageName .. "/buttons"
|
buttons.template = packageName .. "/buttons"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
end
|
end
|
||||||
-%>
|
-%>
|
||||||
|
|
||||||
<div class="cbi-value"><label class="cbi-value-title">Service Control</label>
|
<%+cbi/valueheader%>
|
||||||
<div class="cbi-value-field">
|
<div class="cbi-value-field">
|
||||||
<input type="button" class="btn cbi-button cbi-button-apply" id="btn_start" name="start" value="<%:Start%>"
|
<input type="button" class="btn cbi-button cbi-button-apply" id="btn_start" name="start" value="<%:Start%>"
|
||||||
onclick="button_action(this)" />
|
onclick="button_action(this)" />
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
onclick="button_action(this)" />
|
onclick="button_action(this)" />
|
||||||
<span id="btn_disable_spinner" class="btn_spinner"></span>
|
<span id="btn_disable_spinner" class="btn_spinner"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<%+cbi/valuefooter%>
|
||||||
|
|
||||||
<%-if not btn_start_status then%>
|
<%-if not btn_start_status then%>
|
||||||
<script type="text/javascript">document.getElementById("btn_start").disabled = true;</script>
|
<script type="text/javascript">document.getElementById("btn_start").disabled = true;</script>
|
||||||
|
|
|
@ -5,10 +5,10 @@ This is free software, licensed under the Apache License, Version 2.0
|
||||||
|
|
||||||
<%+cbi/valueheader%>
|
<%+cbi/valueheader%>
|
||||||
|
|
||||||
<textarea rows="<%=select(2, self:cfgvalue(section):gsub('\n', '\n'))%>"
|
<div style="font-weight:bold;">
|
||||||
style="outline:none;border:none;box-shadow:none;background:transparent;font-weight:bold;line-height:20px;width:50em;padding:none;margin:6px;resize:none;overflow:hidden;"
|
<%=self:cfgvalue(section):gsub('\n', '<br />' )%>
|
||||||
disabled="disabled"><%=self:cfgvalue(section):gsub('\n', '\n')%>
|
</div>
|
||||||
</textarea>
|
<br />
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%- local readmeURL = "https://docs.openwrt.melmac.net/vpn-policy-routing/" -%>
|
<%- local readmeURL = "https://docs.openwrt.melmac.net/vpn-policy-routing/" -%>
|
||||||
|
|
|
@ -5,6 +5,8 @@ This is free software, licensed under the Apache License, Version 2.0
|
||||||
|
|
||||||
<%+cbi/valueheader%>
|
<%+cbi/valueheader%>
|
||||||
|
|
||||||
<%=self:cfgvalue(section):gsub('\n', '<br/>' )%>
|
<div style="font-weight:bold;">
|
||||||
|
<%=self:cfgvalue(section):gsub('\n', '<br />' )%>
|
||||||
|
</div>
|
||||||
|
|
||||||
<%+cbi/valuefooter%>
|
<%+cbi/valuefooter%>
|
||||||
|
|
|
@ -253,6 +253,10 @@ msgstr ""
|
||||||
msgid "Select Append for -A and Insert for -I."
|
msgid "Select Append for -A and Insert for -I."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: applications/luci-app-vpn-policy-routing/luasrc/model/cbi/vpn-policy-routing.lua:153
|
||||||
|
msgid "Service Control"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-vpn-policy-routing/luasrc/model/cbi/vpn-policy-routing.lua:143
|
#: applications/luci-app-vpn-policy-routing/luasrc/model/cbi/vpn-policy-routing.lua:143
|
||||||
msgid "Service Errors"
|
msgid "Service Errors"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Loading…
Reference in a new issue