luci-base, luci-app-firewall: port custom rules to client side view
[project/luci.git] / modules / luci-base / luasrc / view / cbi / error.htm
1 <div class="cbi-map" id="cbi-<%=self.config%>">
2 <% if self.title and #self.title > 0 then %><h2 name="content"><%=self.title%></h2><% end %>
3 <% if self.description and #self.description > 0 then %><div class="cbi-map-descr"><%=self.description%></div><% end %>
4
5 <p class="alert-message danger">
6 <%: The configuration file could not be loaded due to the following error: %><br />
7 <code><%=pcdata(self.error)%></code>
8 </p>
9
10 <textarea name="cbi.source" style="width:100%; margin-bottom:1em" rows="<%=math.max(self.source:cmatch("\n"), 10)%>"><%=pcdata(self.source)%></textarea>
11
12 <p class="alert-message">
13 <%: Edit the raw configuration data above to fix any error and hit "Save" to reload the page. %>
14 </p>
15
16 <div class="cbi-page-actions">
17 <input class="cbi-button cbi-button-apply" type="submit" name="cbi.save" value="<%:Save%>" />
18 </div>
19 </div>