luci-mod-admin-full: tweak checksum item presentation
[project/luci.git] / modules / luci-mod-admin-full / luasrc / view / admin_system / upgrade.htm
index ce28533..7175248 100644 (file)
@@ -1,21 +1,12 @@
 <%#
-LuCI - Lua Configuration Interface
-Copyright 2008 Steven Barth <steven@midlink.org>
-Copyright 2008-2009 Jo-Philipp Wich <xm@subsignal.org>
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-$Id$
-
+ Copyright 2008 Steven Barth <steven@midlink.org>
+ Copyright 2008-2009 Jo-Philipp Wich <jow@openwrt.org>
+ Licensed to the public under the Apache License 2.0.
 -%>
 
 <%+header%>
 
-<h2><a id="content" name="content"><%:Flash Firmware%> - <%:Verify%></a></h2>
+<h2 name="content"><%:Flash Firmware%> - <%:Verify%></h2>
 <p>
        <%_ The flash image was uploaded.
                Below is the checksum and file size listed,
@@ -33,7 +24,9 @@ $Id$
 
 <fieldset class="cbi-section">
        <ul>
-               <li><%:Checksum%>: <code><%=checksum%></code></li>
+               <li><%:Checksum%><br />
+               <%:MD5%>: <code><%=checksum%></code><br />
+               <%:SHA256%>: <code><%=sha256ch%></code></li>
                <li><%:Size%>: <%
                        local w = require "luci.tools.webadmin"
                        write(w.byte_format(size))
@@ -54,12 +47,11 @@ $Id$
 </fieldset>
 
 <div class="cbi-page-actions right">
-       <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
-               <input class="cbi-button cbi-button-reset" type="submit" value="<%:Cancel%>" />
-       </form>
-       <form style="display:inline" action="<%=REQUEST_URI%>" method="post">
+       <form class="inline" action="<%=REQUEST_URI%>" method="post">
+               <input type="hidden" name="token" value="<%=token%>" />
                <input type="hidden" name="step" value="2" />
                <input type="hidden" name="keep" value="<%=keep and "1" or ""%>" />
+               <input class="cbi-button cbi-button-reset" name="cancel" type="submit" value="<%:Cancel%>" />
                <input class="cbi-button cbi-button-apply" type="submit" value="<%:Proceed%>" />
        </form>
 </div>