Use real REQUEST_URI for sysauth
[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 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 <%+header%>
16 <% luci.i18n.loadc("sysauth") %>
17
18 <form method="post" action="<%=luci.http.getenv("REQUEST_URI")%>">
19         <div class="cbi-map">
20                 <h2><a id="content" name="content"><%:sysauth_head%></a></h2>
21                 <div class="cbi-map-descr">
22                         <%:sysauth_prompt%>
23                         <%- if fuser then %>
24                         <div class="error"><%:sysauth_failed%></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">
36                                 <label class="cbi-value-title"><%:password%></label>
37                                 <div class="cbi-value-field">
38                                         <input 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 <%+footer%>