libs/web: assign extra css class to typed or named sections with tabs
[project/luci.git] / libs / web / luasrc / view / cbi / tsection.htm
index 29f3c16..24f8e04 100644 (file)
@@ -6,7 +6,7 @@
        <% local isempty = true for i, k in ipairs(self:cfgsections()) do -%>
                <% if self.addremove then -%>
                        <div class="cbi-section-remove right">
-                               <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" onclick="this.form.cbi_state='del-section'; return true" value="<%:Delete%>" />
+                               <input type="submit" name="cbi.rts.<%=self.config%>.<%=k%>" onclick="this.form.cbi_state='del-section'; return true" value="<%:Delete%>" class="cbi-button" />
                        </div>
                <%- end %>
 
@@ -18,7 +18,7 @@
 
                <%+cbi/tabmenu%>
 
-               <fieldset class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
+               <fieldset class="cbi-section-node<% if self.tabs then %> cbi-section-node-tabbed<% end %>" id="cbi-<%=self.config%>-<%=section%>">
                        <%+cbi/ucisection%>
                </fieldset>
                <br />