Merge pull request #396 from fanthos/master
[project/luci.git] / modules / luci-base / luasrc / view / cbi / map.htm
1 <%- if firstmap and messages then local msg; for _, msg in ipairs(messages) do -%>
2         <div class="errorbox"><%=pcdata(msg)%></div>
3 <%- end end -%>
4
5 <%-+cbi/apply_xhr-%>
6
7 <div class="cbi-map" id="cbi-<%=self.config%>">
8         <% if self.title and #self.title > 0 then %><h2 name="content"><%=self.title%></h2><% end %>
9         <% if self.description and #self.description > 0 then %><div class="cbi-map-descr"><%=self.description%></div><% end %>
10         <%- if firstmap and applymap then cbi_apply_xhr(self.config, parsechain, redirect) end -%>
11         <%- self:render_children() %>
12         <br />
13 </div>