luci/po: spelling and grammar fixes by Alex Henrie
[project/luci.git] / modules / failsafe / luasrc / view / failsafe / 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 Copyright 2012 Daniel Golle <dgolle@allnet.de>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14
15 -%>
16
17 <%+header%>
18
19 <h2><a id="content" name="content"><%:Flash operations%></a></h2>
20 <fieldset class="cbi-section">
21         <legend><%:Flash new firmware image%></legend>
22         <% if upgrade_avail then %>
23                 <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
24                         <div class="cbi-section-descr"><%:Upload a sysupgrade-compatible image. %></div>
25                         <div class="cbi-section-node">
26                                 <div class="cbi-value cbi-value-last<% if image_invalid then %> cbi-value-error<% end %>">
27                                         <label class="cbi-value-title" for="image"><%:Image%>:</label>
28                                         <div class="cbi-value-field">
29                                                 <input type="file" name="image" id="image" />
30                                                 <input type="submit" class="cbi-button cbi-input-apply" value="<%:Flash image...%>" />
31                                         </div>
32                                 </div>
33                         </div>
34                         <% if image_invalid then %>
35                                 <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>
36                         <% end %>
37                 </form>
38         <% else %>
39                 <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>
40         <% end %>
41 </fieldset>
42
43 <%+footer%>