modules/admin-full, modules/admin-mini: Fixed firmware upgrade templates

This commit is contained in:
Steven Barth 2008-07-19 16:51:47 +00:00
parent 5fc1589073
commit 5350456779
2 changed files with 17 additions and 25 deletions

View file

@ -18,21 +18,17 @@ $Id$
<p><%:a_s_flash_upgrade1%></p> <p><%:a_s_flash_upgrade1%></p>
<br /> <br />
<% if sysupgrade and not ret then %> <% if sysupgrade and not ret then %>
<form method="post" action="<%=luci.http.getenv("REQUEST_URI")%>" enctype="multipart/form-data"> <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
<div class="cbi-section-node"> <div class="left"><%:a_s_flash_fwimage%>:</div>
<div class="cbi-value clear"> <div>
<div class="cbi-value-title left"><%:a_s_flash_fwimage%></div> <input type="file" size="30" name="image" />
<div class="cbi-value-field"><input type="file" size="30" name="image" /></div>
</div>
<br /> <br />
<div class="cbi-value clear">
<input type="checkbox" name="keepcfg" value="1" checked="checked" />
<span class="bold"><%:a_s_flash_keepcfg%></span>
</div>
<br /> <br />
<div> <input type="checkbox" name="keepcfg" value="1" checked="checked" />
<input type="submit" value="<%:a_s_flash_fwupgrade%>" /> <span class="bold"><%:a_s_flash_keepcfg%></span>
</div> </div>
<div>
<input type="submit" value="<%:a_s_flash_fwupgrade%>" />
</div> </div>
</form> </form>
<% elseif ret then %> <% elseif ret then %>

View file

@ -19,20 +19,16 @@ $Id$
<br /> <br />
<% if sysupgrade and not ret then %> <% if sysupgrade and not ret then %>
<form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data"> <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
<div class="cbi-section-node"> <div class="left"><%:a_s_flash_fwimage%>:</div>
<div class="cbi-value clear"> <div>
<div class="cbi-value-title left"><%:a_s_flash_fwimage%></div> <input type="file" size="30" name="image" />
<div class="cbi-value-field"><input type="file" size="30" name="image" /></div>
</div>
<br /> <br />
<div class="cbi-value clear">
<input type="checkbox" name="keepcfg" value="1" checked="checked" />
<span class="bold"><%:a_s_flash_keepcfg%></span>
</div>
<br /> <br />
<div> <input type="checkbox" name="keepcfg" value="1" checked="checked" />
<input type="submit" value="<%:a_s_flash_fwupgrade%>" /> <span class="bold"><%:a_s_flash_keepcfg%></span>
</div> </div>
<div>
<input type="submit" value="<%:a_s_flash_fwupgrade%>" />
</div> </div>
</form> </form>
<% elseif ret then %> <% elseif ret then %>