libs/cbi: support horizontal display for radio button groups
[project/luci.git] / libs / cbi / luasrc / view / cbi / lvalue.htm
index a6fd18f..b69934a 100644 (file)
@@ -26,7 +26,7 @@ $Id$
 %>
        <input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio"<%= attr("id", cbid..c) .. attr("name", cbid) .. attr("value", key) .. ifattr(self:cfgvalue(section) == key, "checked", "checked") %> />
        <label<%= attr("for", cbid..c) %>><%=self.vallist[i]%></label>
-<% if c == self.size then c = 0 %><br />
+<% if c == self.size then c = 0 %><% if self.orientation == "horizontal" then %>&nbsp;<% else %><br /><% end %>
 <% end end %>
 <% end %>
 <%+cbi/valuefooter%>