Cosmetic changes to the terminology in the UI:
[project/luci.git] / modules / admin-mini / luasrc / view / mini / backup.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 -%>
15 <%+header%>
16 <h2><a id="content" name="content"><%:System%></a></h2>
17 <h3><%:Backup / Restore%></h3>
18 <p><%:Here you can backup and restore your configuration and - if possible - reset this device to the default settings.%></p>
19 <br />
20 <div>
21         <ul>
22         <li><a href="<%=REQUEST_URI%>?backup=kthxbye"><%:Create backup%></a></li>
23         <% if reset_avail then -%>
24         <li><a href="<%=REQUEST_URI%>?reset=yarly" onclick="return confirm('<%:Proceed reverting all settings and resetting to firmware defaults?%>')"><%:Reset this device to defaults%></a></li>
25         <% end -%>
26         </ul>
27 </div>
28
29 <br />
30
31 <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
32         <div class="left"><%:Backup Archive%>:</div>
33         <div>
34                 <input type="file" size="30" name="archive" />
35         </div>
36         <div>
37                 <input type="submit" class="cbi-button cbi-input-apply" value="<%:Restore backup%>" />
38         </div>
39 </form>
40 <%+footer%>