libs/web: add missing cells to tblsection template
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 20 Jan 2011 00:19:05 +0000 (00:19 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 20 Jan 2011 00:19:05 +0000 (00:19 +0000)
libs/web/luasrc/view/cbi/tblsection.htm

index c79d5a8c87903e26581d058eab7a24ae2e417827..63214467f64fbf15869dc9bb3a646224fb77efe9 100644 (file)
@@ -56,7 +56,9 @@ end
                                        <%-=k.title-%>
                                <%- if k.titleref then -%></a><%- end -%>
                                </th>
-                       <%- count = count + 1; end; end; if self.extedit or self.addremove then -%>
+                       <%- count = count + 1; end; end; if self.sortable then -%>
+                               <th class="cbi-section-table-cell"><%:Sort%></th>
+                       <%- end; if self.extedit or self.addremove then -%>
                                <th class="cbi-section-table-cell">&#160;</th>
                        <%- count = count + 1; end -%>
                        </tr>
@@ -70,7 +72,9 @@ end
                        <%- end -%>
                        <%- for i, k in pairs(self.children) do if not k.optional then -%>
                                <th class="cbi-section-table-cell"<%=width(k)%>><%=k.description%></th>
-                       <%- end; end; if self.extedit or self.addremove then -%>
+                       <%- end; end; if self.sortable then -%>
+                               <th class="cbi-section-table-cell"></th>
+                       <%- end; if self.extedit or self.addremove then -%>
                                <th class="cbi-section-table-cell"></th>
                        <%- end -%>
                        </tr>