luci/po: spelling and grammar fixes by Alex Henrie
[project/luci.git] / modules / admin-full / luasrc / view / admin_system / flashops.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
16 <%+header%>
17
18 <h2><a id="content" name="content"><%:Flash operations%></a></h2>
19
20 <ul class="cbi-tabmenu">
21         <li class="cbi-tab"><a href="#"><%:Actions%></a></li>
22         <li class="cbi-tab-disabled"><a href="<%=REQUEST_URI%>/backupfiles"><%:Configuration%></a></li>
23 </ul>
24
25 <fieldset class="cbi-section">
26
27         <fieldset class="cbi-section">
28                 <legend><%:Backup / Restore%></legend>
29                 <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
30                         <div class="cbi-section-descr"><%:Click "Generate archive" to download a tar archive of the current configuration files. To reset the firmware to its initial state, click "Perform reset" (only possible with squashfs images).%></div>
31                         <div class="cbi-section-node">
32                                 <div class="cbi-value<% if not reset_avail then %> cbi-value-last<% end %>">
33                                         <label class="cbi-value-title" for="image"><%:Download backup%>:</label>
34                                         <div class="cbi-value-field">
35                                                 <input class="cbi-button cbi-button-apply" type="submit" name="backup" value="<%:Generate archive%>" />
36                                         </div>
37                                 </div>
38                                 <% if reset_avail then %>
39                                 <div class="cbi-value cbi-value-last">
40                                         <label class="cbi-value-title"><%:Reset to defaults%>:</label>
41                                         <div class="cbi-value-field">
42                                                 <input onclick="return confirm('<%:Really reset all changes?%>')" class="cbi-button cbi-button-reset" type="submit" name="reset" value="<%:Perform reset%>" />
43                                         </div>
44                                 </div>
45                                 <% end %>
46                         </div>
47                         <br />
48                         <div class="cbi-section-descr"><%:To restore configuration files, you can upload a previously generated backup archive here.%></div>
49                         <div class="cbi-section-node">
50                                 <div class="cbi-value cbi-value-last">
51                                         <label class="cbi-value-title" for="archive"><%:Restore backup%>:</label>
52                                         <div class="cbi-value-field">
53                                                 <input type="file" name="archive" id="archive" />
54                                                 <input type="submit" class="cbi-button cbi-input-apply" name="restore" value="<%:Upload archive...%>" />
55                                         </div>
56                                 </div>
57                         </div>
58                 </form>
59         </fieldset>
60
61         <br />
62
63         <fieldset class="cbi-section">
64                 <legend><%:Flash new firmware image%></legend>
65                 <% if upgrade_avail then %>
66                         <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
67                                 <div class="cbi-section-descr"><%:Upload a sysupgrade-compatible image here to replace the running firmware. Check "Keep settings" to retain the current configuration (requires an OpenWrt compatible firmware image).%></div>
68                                 <div class="cbi-section-node">
69                                         <div class="cbi-value">
70                                                 <label class="cbi-value-title" for="keep"><%:Keep settings%>:</label>
71                                                 <div class="cbi-value-field">
72                                                         <input type="checkbox" name="keep" id="keep" checked="checked" />
73                                                 </div>
74                                         </div>
75                                         <div class="cbi-value cbi-value-last<% if image_invalid then %> cbi-value-error<% end %>">
76                                                 <label class="cbi-value-title" for="image"><%:Image%>:</label>
77                                                 <div class="cbi-value-field">
78                                                         <input type="file" name="image" id="image" />
79                                                         <input type="submit" class="cbi-button cbi-input-apply" value="<%:Flash image...%>" />
80                                                 </div>
81                                         </div>
82                                 </div>
83                                 <% if image_invalid then %>
84                                         <div class="cbi-section-error"><%:The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform. %></div>
85                                 <% end %>
86                         </form>
87                 <% else %>
88                         <div class="cbi-section-descr"><%:Sorry, there is no sysupgrade support present; a new firmware image must be flashed manually. Please refer to the OpenWrt wiki for device specific install instructions.%></div>
89                 <% end %>
90         </fieldset>
91
92 </fieldset>
93
94 <%+footer%>