8c4b19c7c8884ad6188f1744953e5341ec46df3d
[project/luci.git] / modules / admin-core / luasrc / view / sysauth.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008-2012 Jo-Philipp Wich <xm@subsignal.org>
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 <form method="post" action="<%=pcdata(luci.http.getenv("REQUEST_URI"))%>">
19 <div class="cbi-map">
20 <h2><a id="content" name="content"><%:Authorization Required%></a></h2>
21 <div class="cbi-map-descr">
22 <%:Please enter your username and password.%>
23 <%- if fuser then %>
24 <div class="error"><%:Invalid username and/or password! Please try again.%></div>
25 <br />
26 <% end -%>
27 </div>
28 <fieldset class="cbi-section"><fieldset class="cbi-section-node">
29 <div class="cbi-value">
30 <label class="cbi-value-title"><%:Username%></label>
31 <div class="cbi-value-field">
32 <input class="cbi-input-user" type="text" name="username" value="<%=duser%>" />
33 </div>
34 </div>
35 <div class="cbi-value cbi-value-last">
36 <label class="cbi-value-title"><%:Password%></label>
37 <div class="cbi-value-field">
38 <input id="focus_password" class="cbi-input-password" type="password" name="password" />
39 </div>
40 </div>
41 </fieldset></fieldset>
42 </div>
43
44 <div>
45 <input type="submit" value="<%:Login%>" class="cbi-button cbi-button-apply" />
46 <input type="reset" value="<%:Reset%>" class="cbi-button cbi-button-reset" />
47 </div>
48 </form>
49 <script type="text/javascript">//<![CDATA[
50 var input = document.getElementById('focus_password');
51 if (input)
52 input.focus();
53 //]]></script>
54 <%+footer%>