luci-app-vpn-policy-routing: bugfix: template layout on theme-openwrt-2020 4890/head
authorStan Grishin <stangri@melmac.net>
Mon, 8 Mar 2021 10:49:09 +0000 (10:49 +0000)
committerStan Grishin <stangri@melmac.net>
Mon, 8 Mar 2021 10:49:09 +0000 (10:49 +0000)
Signed-off-by: Stan Grishin <stangri@melmac.net>
applications/luci-app-vpn-policy-routing/luasrc/model/cbi/vpn-policy-routing.lua
applications/luci-app-vpn-policy-routing/luasrc/view/vpn-policy-routing/buttons.htm
applications/luci-app-vpn-policy-routing/luasrc/view/vpn-policy-routing/status-gateways.htm
applications/luci-app-vpn-policy-routing/luasrc/view/vpn-policy-routing/status.htm
applications/luci-app-vpn-policy-routing/po/templates/vpn-policy-routing.pot

index 8be8df7b96ac074b835f06179ea76de75fb0fccf..82d90e9bf8e322ded50ae4360f366a1f2db3c804 100644 (file)
@@ -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))
 status = h:option(DummyValue, "_dummy", translate("Service Status"))
-status.template = "vpn-policy-routing/status-service"
+status.template = "vpn-policy-routing/status"
 status.value = statusText
 if serviceRunning and serviceGateways and serviceGateways ~= "" then
        gateways = h:option(DummyValue, "_dummy", translate("Service Gateways"))
@@ -150,7 +150,7 @@ if serviceWarnings and serviceWarnings ~= "" then
        warnings.value = serviceWarnings
 end
 if packageVersion ~= "" then
-       buttons = h:option(DummyValue, "_dummy")
+       buttons = h:option(DummyValue, "_dummy", translate("Service Control"))
        buttons.template = packageName .. "/buttons"
 end
 
index b1ec6fbf9750f05e20b7e86909a6f2695d03b80b..8a64698b6c40db769a53d2a233cf7c1d33c4d900 100644 (file)
@@ -38,7 +38,7 @@
        end
 -%>
 
-<div class="cbi-value"><label class="cbi-value-title">Service Control</label>
+<%+cbi/valueheader%>
        <div class="cbi-value-field">
                <input type="button" class="btn cbi-button cbi-button-apply" id="btn_start" name="start" value="<%:Start%>"
                        onclick="button_action(this)" />
@@ -60,7 +60,7 @@
                        onclick="button_action(this)" />
                <span id="btn_disable_spinner" class="btn_spinner"></span>
        </div>
-</div>
+<%+cbi/valuefooter%>
 
 <%-if not btn_start_status then%>
 <script type="text/javascript">document.getElementById("btn_start").disabled = true;</script>
index 65f3e5d7c695978670d7566569e334452f7a7fa0..377cfeeaaccf07f593d287455127f8ef8820018d 100644 (file)
@@ -5,10 +5,10 @@ This is free software, licensed under the Apache License, Version 2.0
 
 <%+cbi/valueheader%>
 
-<textarea rows="<%=select(2, self:cfgvalue(section):gsub('\n', '\n'))%>"
-       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;"
-       disabled="disabled"><%=self:cfgvalue(section):gsub('\n', '\n')%>
-</textarea>
+<div style="font-weight:bold;">
+       <%=self:cfgvalue(section):gsub('\n', '<br />' )%>
+</div>
+<br />
 
 <div>
        <%- local readmeURL = "https://docs.openwrt.melmac.net/vpn-policy-routing/" -%>
index e74206853a8cbea67ffd93e4a30bf315d951dc76..4a93564614a54948a7f25586199aa1977e951b18 100644 (file)
@@ -5,6 +5,8 @@ This is free software, licensed under the Apache License, Version 2.0
 
 <%+cbi/valueheader%>
 
-<%=self:cfgvalue(section):gsub('\n', '<br/>' )%>
+<div style="font-weight:bold;">
+       <%=self:cfgvalue(section):gsub('\n', '<br />' )%>
+</div>
 
 <%+cbi/valuefooter%>
index d2deb037f2c2fc0ad0727f3ad9eed9760c9de20d..27ba9e278cd0f8182f4621e92a6c218ca80a7add 100644 (file)
@@ -253,6 +253,10 @@ msgstr ""
 msgid "Select Append for -A and Insert for -I."
 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
 msgid "Service Errors"
 msgstr ""