luci/applications/luci-app-nlbwmon/luasrc/view/nlbw/backup.htm
Jo-Philipp Wich c0de036b31 treewide: always include cbi.js
Include cbi.js in the main header template like it is done for xhr.js and
remove the page specific includes.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09 11:51:43 +02:00

33 lines
938 B
HTML

<%#
Copyright 2017 Jo-Philipp Wich <jo@mein.io>
Licensed to the public under the Apache License 2.0.
-%>
<%+header%>
<h2 name="content"><%:Netlink Bandwidth Monitor - Backup / Restore %></h2>
<fieldset class="cbi-section">
<legend><%:Restore Database Backup%></legend>
<p>
<form method="POST" action="<%=url("admin/nlbw/restore")%>" enctype="multipart/form-data">
<input type="hidden" name="token" value="<%=token%>" />
<input type="file" name="archive" accept="application/gzip,.gz" />
<input type="submit" value="<%:Restore%>" class="cbi-button cbi-button-apply" />
</form>
<% if message then %>
<div class="alert-message"><%=message%></div>
<% end %>
</p>
<legend><%:Download Database Backup%></legend>
<p>
<form method="GET" action="<%=url("admin/nlbw/download")%>">
<input type="submit" value="<%:Generate Backup%>" class="cbi-button cbi-button-link" />
</form>
</p>
</fieldset>
<%+footer%>