From 4de35274cab2df740941149fe41c3c2bb8c12850 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 3 Mar 2016 22:06:39 +0100 Subject: luci-base: view: make checkboxes and radio buttons styleable Add an empty, normally invisible label after checkboxes and radio buttons with cbi-input-{checkbox,radio} classes to allow CSS styling them as suggested on http://www.paulund.co.uk/style-checkboxes-with-css Signed-off-by: Nils Schneider Signed-off-by: Matthias Schiffer --- applications/luci-app-ddns/luasrc/view/ddns/detail_lvalue.htm | 1 + applications/luci-app-ddns/luasrc/view/ddns/overview_enabled.htm | 1 + 2 files changed, 2 insertions(+) (limited to 'applications/luci-app-ddns/luasrc/view/ddns') diff --git a/applications/luci-app-ddns/luasrc/view/ddns/detail_lvalue.htm b/applications/luci-app-ddns/luasrc/view/ddns/detail_lvalue.htm index 0bcfd44283..b69d780ea9 100644 --- a/applications/luci-app-ddns/luasrc/view/ddns/detail_lvalue.htm +++ b/applications/luci-app-ddns/luasrc/view/ddns/detail_lvalue.htm @@ -14,6 +14,7 @@ c = c + 1 %> /> + > ><%=self.vallist[i]%> <% if c == self.size then c = 0 %><% if self.orientation == "horizontal" then %> <% else %>
<% end %> <% end end %> diff --git a/applications/luci-app-ddns/luasrc/view/ddns/overview_enabled.htm b/applications/luci-app-ddns/luasrc/view/ddns/overview_enabled.htm index 64b3dae455..2efc125fcc 100644 --- a/applications/luci-app-ddns/luasrc/view/ddns/overview_enabled.htm +++ b/applications/luci-app-ddns/luasrc/view/ddns/overview_enabled.htm @@ -10,6 +10,7 @@ attr("id", cbid) .. attr("name", cbid) .. attr("value", self.enabled or 1) .. ifattr((self:cfgvalue(section) or self.default) == self.enabled, "checked", "checked") %> /> +> <%+cbi/valuefooter%> -- cgit v1.2.3