X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fluci-base%2Fluasrc%2Fview%2Fcbi%2Fmap.htm;h=69ef3615a28665925cd84946e86da6ec140fd488;hp=e90c3f589fd5f2e48c439bda1255704340134719;hb=8deb9495515b97898514e8ffb8f002c8afe3bfa7;hpb=1cb3adb619bdd876867f4c4da615ea850464e711
diff --git a/modules/luci-base/luasrc/view/cbi/map.htm b/modules/luci-base/luasrc/view/cbi/map.htm
index e90c3f589..69ef3615a 100644
--- a/modules/luci-base/luasrc/view/cbi/map.htm
+++ b/modules/luci-base/luasrc/view/cbi/map.htm
@@ -2,12 +2,57 @@
<% if self.title and #self.title > 0 then %>
<%=self.title%>
<% end %>
<% if self.description and #self.description > 0 then %>
<%=self.description%>
<% end %>
- <%- if firstmap and applymap then cbi_apply_xhr(self.config, parsechain, redirect) end -%>
- <%- self:render_children() %>
+ <%- if firstmap and (applymap or confirmmap) then -%>
+ <%+cbi/apply_widget%>
+ <% cbi_apply_widget(redirect) %>
+
+
+ <%- end -%>
+
+ <% if self.tabbed then %>
+
+
+ <% for i, section in ipairs(self.children) do %>
+
style="display:none"<% end %>>
+ <% section:render() %>
+
+
+ <% end %>
+
+ <% if not self.save then -%>
+
+ <% for _, section in ipairs(self.children) do %>
+ <% if section.error and section.error[section.section] then -%>
+
-
+ <%:One or more invalid/required values on tab%>: <%=section.title or section.section or section.sectiontype%>
+
+ <%- end %>
+ <% end %>
+
+ <%- end %>
+ <% else %>
+ <%- self:render_children() %>
+ <% end %>
+