From 133a1ae3f4293dce5063bab43e3aecfdd92d889e Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 20 Jul 2020 16:15:25 +0200 Subject: [PATCH] luci-compat: add btn class to all button inputs Signed-off-by: Florian Eckert --- modules/luci-compat/luasrc/view/cbi/button.htm | 2 +- modules/luci-compat/luasrc/view/cbi/delegator.htm | 10 +++++----- modules/luci-compat/luasrc/view/cbi/error.htm | 2 +- modules/luci-compat/luasrc/view/cbi/ipaddr.htm | 2 +- modules/luci-compat/luasrc/view/cbi/nsection.htm | 4 ++-- modules/luci-compat/luasrc/view/cbi/simpleform.htm | 10 +++++----- modules/luci-compat/luasrc/view/cbi/tblsection.htm | 12 ++++++------ modules/luci-compat/luasrc/view/cbi/tsection.htm | 6 +++--- modules/luci-compat/luasrc/view/cbi/ucisection.htm | 2 +- 9 files changed, 25 insertions(+), 25 deletions(-) diff --git a/modules/luci-compat/luasrc/view/cbi/button.htm b/modules/luci-compat/luasrc/view/cbi/button.htm index 6ccba58f23..1f9d164240 100644 --- a/modules/luci-compat/luasrc/view/cbi/button.htm +++ b/modules/luci-compat/luasrc/view/cbi/button.htm @@ -1,6 +1,6 @@ <%+cbi/valueheader%> <% if self:cfgvalue(section) ~= false then %> - " type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> /> + " type="submit"<%= attr("name", cbid) .. attr("id", cbid) .. attr("value", self.inputtitle or self.title)%> /> <% else %> - <% end %> diff --git a/modules/luci-compat/luasrc/view/cbi/delegator.htm b/modules/luci-compat/luasrc/view/cbi/delegator.htm index 4fd19265d8..2606e7f6d7 100644 --- a/modules/luci-compat/luasrc/view/cbi/delegator.htm +++ b/modules/luci-compat/luasrc/view/cbi/delegator.htm @@ -6,18 +6,18 @@ <% end %> <% if not self.disallow_pageactions then %> <% if self.allow_finish and not self:get_next(self.current) then %> - + <% elseif self:get_next(self.current) then %> - + <% end %> <% if self.allow_cancel then %> - + <% end %> <% if self.allow_reset then %> - + <% end %> <% if self.allow_back and self:get_prev(self.current) then %> - + <% end %> <% end %> diff --git a/modules/luci-compat/luasrc/view/cbi/error.htm b/modules/luci-compat/luasrc/view/cbi/error.htm index 75ec1082aa..9d63f66763 100644 --- a/modules/luci-compat/luasrc/view/cbi/error.htm +++ b/modules/luci-compat/luasrc/view/cbi/error.htm @@ -14,6 +14,6 @@

- +
diff --git a/modules/luci-compat/luasrc/view/cbi/ipaddr.htm b/modules/luci-compat/luasrc/view/cbi/ipaddr.htm index 1c924e1544..d34d8d9865 100644 --- a/modules/luci-compat/luasrc/view/cbi/ipaddr.htm +++ b/modules/luci-compat/luasrc/view/cbi/ipaddr.htm @@ -23,5 +23,5 @@ ifattr(self.combobox_manual, "data-manual", self.combobox_manual) .. ifattr(#self.keylist > 0, "data-choices", { self.keylist, self.vallist }) %> /> + --> <%+cbi/valuefooter%> diff --git a/modules/luci-compat/luasrc/view/cbi/nsection.htm b/modules/luci-compat/luasrc/view/cbi/nsection.htm index 14232e3d94..faceffeedf 100644 --- a/modules/luci-compat/luasrc/view/cbi/nsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/nsection.htm @@ -8,7 +8,7 @@ <%- end %> <% if self.addremove then -%>
- +
<%- end %>
@@ -22,7 +22,7 @@ <%=self.title%> <%- end %>
<%=self.description%>
- +
<%- end %> <% end %> diff --git a/modules/luci-compat/luasrc/view/cbi/simpleform.htm b/modules/luci-compat/luasrc/view/cbi/simpleform.htm index 3e10724ec5..9e1514546e 100644 --- a/modules/luci-compat/luasrc/view/cbi/simpleform.htm +++ b/modules/luci-compat/luasrc/view/cbi/simpleform.htm @@ -45,26 +45,26 @@ %>
<% if display_back then - %> <% + %> <% end if display_cancel then local label = pcdata(self.cancel or translate("Cancel")) - %> <% + %> <% end if display_skip then - %> <% + %> <% end if display_submit then local label = pcdata(self.submit or translate("Submit")) - %> <% + %> <% end if display_reset then local label = pcdata(self.reset or translate("Reset")) - %> <% + %> <% end %>
<% diff --git a/modules/luci-compat/luasrc/view/cbi/tblsection.htm b/modules/luci-compat/luasrc/view/cbi/tblsection.htm index 1e067edf38..c60915a6a6 100644 --- a/modules/luci-compat/luasrc/view/cbi/tblsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/tblsection.htm @@ -148,10 +148,10 @@ end
<%- if self.sortable then -%> - - + + <% end; if self.extedit then -%> - onclick="location.href='<%=self.extedit:format(section)%>'" <%- elseif type(self.extedit) == "function" then @@ -159,7 +159,7 @@ end <%- end %> alt="<%:Edit%>" title="<%:Edit%>" /> <% end; if self.addremove then %> - + <%- end -%>
@@ -186,7 +186,7 @@ end <% if self.template_addremove then include(self.template_addremove) else -%>
<% if self.anonymous then %> - + <% else %> <% if self.invalid_cts then -%>
<%:Invalid%>
@@ -194,7 +194,7 @@ end
- + <% end %>
<%- end %> diff --git a/modules/luci-compat/luasrc/view/cbi/tsection.htm b/modules/luci-compat/luasrc/view/cbi/tsection.htm index 8f3b7f0ffb..b7718fa0f3 100644 --- a/modules/luci-compat/luasrc/view/cbi/tsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/tsection.htm @@ -13,7 +13,7 @@ <% local isempty = true for i, k in ipairs(self:cfgsections()) do -%> <% if self.addremove then -%>
- +
<%- end %> @@ -36,7 +36,7 @@ <% if self.template_addremove then include(self.template_addremove) else -%>
<% if self.anonymous then -%> - + <%- else -%> <% if self.invalid_cts then -%>
<%:Invalid%>
@@ -44,7 +44,7 @@
- + <%- end %>
<%- end %> diff --git a/modules/luci-compat/luasrc/view/cbi/ucisection.htm b/modules/luci-compat/luasrc/view/cbi/ucisection.htm index 8fa11d68f8..930d41583e 100644 --- a/modules/luci-compat/luasrc/view/cbi/ucisection.htm +++ b/modules/luci-compat/luasrc/view/cbi/ucisection.htm @@ -51,6 +51,6 @@ <%- end %> <%- end -%> - + <% end %> -- 2.30.2