diff options
Diffstat (limited to 'modules/luci-compat/luasrc/view')
7 files changed, 30 insertions, 30 deletions
diff --git a/modules/luci-compat/luasrc/view/cbi/cell_valuefooter.htm b/modules/luci-compat/luasrc/view/cbi/cell_valuefooter.htm index bdd6bc9687..786ee43d10 100644 --- a/modules/luci-compat/luasrc/view/cbi/cell_valuefooter.htm +++ b/modules/luci-compat/luasrc/view/cbi/cell_valuefooter.htm @@ -1,2 +1,2 @@ </div> -</div> +</td> diff --git a/modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm b/modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm index db5c66850d..31d1acee48 100644 --- a/modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm +++ b/modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm @@ -3,7 +3,7 @@ local descr = luci.util.trim(striptags(self.description)) local ftype = self.typename or (self.template and self.template:gsub("^.+/", "")) -%> -<div class="td cbi-value-field<% if self.error and self.error[section] then %> cbi-value-error<% end %><% if self.password then %> nowrap<% end %>"<%= +<td class="td cbi-value-field<% if self.error and self.error[section] then %> cbi-value-error<% end %><% if self.password then %> nowrap<% end %>"<%= attr("data-name", self.option) .. ifattr(ftype and #ftype > 0, "data-widget", ftype) .. ifattr(title and #title > 0, "data-title", title, true) .. diff --git a/modules/luci-compat/luasrc/view/cbi/footer.htm b/modules/luci-compat/luasrc/view/cbi/footer.htm index abcc47b920..c72102340f 100644 --- a/modules/luci-compat/luasrc/view/cbi/footer.htm +++ b/modules/luci-compat/luasrc/view/cbi/footer.htm @@ -8,7 +8,7 @@ if pageaction and (display_back or display_skip or display_apply or display_save or display_reset) then - %><div class="cbi-page-actions control-group"><% + %><div class="cbi-page-actions"><% if display_back then %><input class="btn cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" /> <% diff --git a/modules/luci-compat/luasrc/view/cbi/nsection.htm b/modules/luci-compat/luasrc/view/cbi/nsection.htm index faceffeedf..511a59b6f3 100644 --- a/modules/luci-compat/luasrc/view/cbi/nsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/nsection.htm @@ -1,7 +1,7 @@ <% if self:cfgvalue(self.section) then section = self.section %> <div class="cbi-section"> <% if self.title and #self.title > 0 then -%> - <legend><%=self.title%></legend> + <h3><%=self.title%></h3> <%- end %> <% if self.description and #self.description > 0 then -%> <div class="cbi-section-descr"><%=self.description%></div> @@ -19,7 +19,7 @@ <% if self.template_addremove then include(self.template_addremove) else -%> <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.section%>"> <% if self.title and #self.title > 0 then -%> - <legend><%=self.title%></legend> + <h3><%=self.title%></h3> <%- end %> <div class="cbi-section-descr"><%=self.description%></div> <input type="submit" class="btn cbi-button cbi-button-add" name="cbi.cns.<%=self.config%>.<%=self.section%>" value="<%:Add%>" /> diff --git a/modules/luci-compat/luasrc/view/cbi/nullsection.htm b/modules/luci-compat/luasrc/view/cbi/nullsection.htm index 7230719d19..156f29d18c 100644 --- a/modules/luci-compat/luasrc/view/cbi/nullsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/nullsection.htm @@ -1,6 +1,6 @@ <div class="cbi-section"> <% if self.title and #self.title > 0 then -%> - <legend><%=self.title%></legend> + <h3><%=self.title%></h3> <%- end %> <% if self.description and #self.description > 0 then -%> <div class="cbi-section-descr"><%=self.description%></div> diff --git a/modules/luci-compat/luasrc/view/cbi/tblsection.htm b/modules/luci-compat/luasrc/view/cbi/tblsection.htm index c60915a6a6..1cba660884 100644 --- a/modules/luci-compat/luasrc/view/cbi/tblsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/tblsection.htm @@ -46,12 +46,12 @@ function render_titles() return end - %><div class="tr cbi-section-table-titles <%=anonclass%>"<%=titlename%>><% + %><tr class="tr cbi-section-table-titles <%=anonclass%>"<%=titlename%>><% local i, k for i, k in ipairs(self.children) do if not k.optional then - %><div class="th cbi-section-table-cell"<%= + %><th class="th cbi-section-table-cell"<%= width(k) .. attr('data-widget', k.typename) %>><% if k.titleref then @@ -64,15 +64,15 @@ function render_titles() %></a><% end - %></div><% + %></th><% end end if self.sortable or self.extedit or self.addremove then - %><div class="th cbi-section-table-cell cbi-section-actions"></div><% + %><th class="th cbi-section-table-cell cbi-section-actions"></th><% end - %></div><% + %></tr><% rowcnt = rowcnt + 1 end @@ -82,25 +82,25 @@ function render_descriptions() return end - %><div class="tr cbi-section-table-descr <%=anonclass%>"><% + %><tr class="tr cbi-section-table-descr <%=anonclass%>"><% local i, k for i, k in ipairs(self.children) do if not k.optional then - %><div class="th cbi-section-table-cell"<%= + %><th class="th cbi-section-table-cell"<%= width(k) .. attr("data-widget", k.typename) %>><% write(k.description) - %></div><% + %></th><% end end if self.sortable or self.extedit or self.addremove then - %><div class="th cbi-section-table-cell cbi-section-actions"></div><% + %><th class="th cbi-section-table-cell cbi-section-actions"></th><% end - %></div><% + %></tr><% rowcnt = rowcnt + 1 end @@ -116,7 +116,7 @@ end <input type="hidden" id="cbi.sts.<%=self.config%>.<%=self.sectiontype%>" name="cbi.sts.<%=self.config%>.<%=self.sectiontype%>" value="" /> <%- end -%> <div class="cbi-section-descr"><%=self.description%></div> - <div class="table cbi-section-table"> + <table class="table cbi-section-table"> <%- render_titles() render_descriptions() @@ -134,7 +134,7 @@ end valuefooter = "cbi/cell_valuefooter" } -%> - <div class="tr cbi-section-table-row<%=colorclass%>" id="cbi-<%=self.config%>-<%=section%>"<%=sectiontitle%>> + <tr class="tr cbi-section-table-row<%=colorclass%>" id="cbi-<%=self.config%>-<%=section%>"<%=sectiontitle%>> <%- local node for k, node in ipairs(self.children) do @@ -145,7 +145,7 @@ end -%> <%- if self.sortable or self.extedit or self.addremove then -%> - <div class="td cbi-section-table-cell nowrap cbi-section-actions"> + <td class="td cbi-section-table-cell nowrap cbi-section-actions"> <div> <%- if self.sortable then -%> <input class="btn cbi-button cbi-button-up" type="button" value="<%:Up%>" onclick="return cbi_row_swap(this, true, 'cbi.sts.<%=self.config%>.<%=self.sectiontype%>')" title="<%:Move up%>" /> @@ -162,17 +162,17 @@ end <input class="btn cbi-button cbi-button-remove" type="submit" value="<%:Delete%>" onclick="this.form.cbi_state='del-section'; return true" name="cbi.rts.<%=self.config%>.<%=k%>" alt="<%:Delete%>" title="<%:Delete%>" /> <%- end -%> </div> - </div> + </td> <%- end -%> - </div> + </tr> <%- end -%> <%- if isempty then -%> - <div class="tr cbi-section-table-row placeholder"> - <div class="td"><em><%:This section contains no values yet%></em></div> - </div> + <tr class="tr cbi-section-table-row placeholder"> + <td class="td"><em><%:This section contains no values yet%></em></td> + </tr> <%- end -%> - </div> + </table> <% if self.error then %> <div class="cbi-section-error"> @@ -192,9 +192,9 @@ end <div class="cbi-section-error"><%:Invalid%></div> <%- end %> <div> - <input type="text" class="cbi-section-create-name" id="cbi.cts.<%=self.config%>.<%=self.sectiontype%>.<%=section%>" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>.<%=section%>" data-type="uciname" data-optional="true" /> + <input type="text" class="cbi-section-create-name" id="cbi.cts.<%=self.config%>.<%=self.sectiontype%>.<%=section%>" name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>.<%=section%>" data-type="uciname" data-optional="true" onkeyup="cbi_validate_named_section_add(this)"/> </div> - <input class="btn cbi-button cbi-button-add" type="submit" onclick="this.form.cbi_state='add-section'; return true" value="<%:Add%>" title="<%:Add%>" /> + <input class="btn cbi-button cbi-button-add" type="submit" onclick="this.form.cbi_state='add-section'; return true" value="<%:Add%>" title="<%:Add%>" disabled="" /> <% end %> </div> <%- end %> diff --git a/modules/luci-compat/luasrc/view/cbi/tsection.htm b/modules/luci-compat/luasrc/view/cbi/tsection.htm index b7718fa0f3..703e1ff328 100644 --- a/modules/luci-compat/luasrc/view/cbi/tsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/tsection.htm @@ -1,6 +1,6 @@ <div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>"> <% if self.title and #self.title > 0 then -%> - <legend><%=self.title%></legend> + <h3><%=self.title%></h3> <%- end %> <% if self.error_msg and #self.error_msg > 0 then -%> <div class="cbi-section-error"> @@ -42,9 +42,9 @@ <div class="cbi-section-error"><%:Invalid%></div> <%- end %> <div> - <input type="text" class="cbi-section-create-name" id="cbi.cts.<%=self.config%>.<%=self.sectiontype%>." name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>." data-type="uciname" data-optional="true" /> + <input type="text" class="cbi-section-create-name" id="cbi.cts.<%=self.config%>.<%=self.sectiontype%>." name="cbi.cts.<%=self.config%>.<%=self.sectiontype%>." data-type="uciname" data-optional="true" onkeyup="cbi_validate_named_section_add(this)"/> </div> - <input class="btn cbi-button cbi-button-add" type="submit" onclick="this.form.cbi_state='add-section'; return true" value="<%:Add%>" title="<%:Add%>" /> + <input class="btn cbi-button cbi-button-add" type="submit" onclick="this.form.cbi_state='add-section'; return true" value="<%:Add%>" title="<%:Add%>" disabled=""/> <%- end %> </div> <%- end %> |