luci-app-nlbwmon: new package
[project/luci.git] / applications / luci-app-nlbwmon / luasrc / view / nlbw / backup.htm
1 <%#
2 Copyright 2017 Jo-Philipp Wich <jo@mein.io>
3 Licensed to the public under the Apache License 2.0.
4 -%>
5
6 <%+header%>
7
8 <script type="text/javascript" src="<%=resource%>/cbi.js"></script>
9
10 <h2 name="content"><%:Netlink Bandwidth Monitor - Backup / Restore %></h2>
11
12 <fieldset class="cbi-section">
13 <legend><%:Restore Database Backup%></legend>
14 <p>
15 <form method="POST" action="<%=url("admin/nlbw/restore")%>" enctype="multipart/form-data">
16 <input type="hidden" name="token" value="<%=token%>" />
17 <input type="file" name="archive" accept="application/gzip,.gz" />
18 <input type="submit" value="<%:Restore%>" class="cbi-button cbi-button-apply" />
19 </form>
20
21 <% if message then %>
22 <div class="alert-message"><%=message%></div>
23 <% end %>
24 </p>
25
26 <legend><%:Download Database Backup%></legend>
27 <p>
28 <form method="GET" action="<%=url("admin/nlbw/download")%>">
29 <input type="submit" value="<%:Generate Backup%>" class="cbi-button cbi-button-link" />
30 </form>
31 </p>
32 </fieldset>
33
34 <%+footer%>