libs/web: Fixed template escaping
[project/luci.git] / modules / admin-mini / luasrc / view / mini / passwd.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 <h1><%:system%></h1>
17 <h2><%:a_s_changepw%></h2>
18 <p><%:a_s_changepw1%></p>
19 <div><br />
20 <% if stat then %>
21         <% if stat == 0 then %>
22                 <code><%:a_s_changepw_changed%>!</code>
23         <% elseif stat == 10 then %>
24                 <code class="error"><%:a_s_changepw_nomatch%>!</code>
25         <% else %>
26                 <code class="error"><%:unknownerror%>!</code>
27         <% end %>
28 <% end %>
29 <% if not stat or stat == 10 then %>
30         <form method="post" action="<%=REQUEST_URI%>">
31                 <div class="cbi-section-node">
32                         <div class="cbi-value">
33                                 <div class="cbi-value-title"><%:password%></div>
34                                 <div class="cbi-value-field"><input type="password" name="pwd1" /></div>
35                         </div>
36                         <div class="cbi-value">
37                                 <div class="cbi-value-title"><%:confirmation%></div>
38                                 <div class="cbi-value-field"><input type="password" name="pwd2" /></div>
39                         </div>
40                         <br />
41                         <div>
42                                 <input type="submit" value="<%:save%>" />
43                                 <input type="reset" value="<%:reset%>" />
44                         </div>
45                 </div>
46         </form>
47 <% end %>
48 </div>
49 <%+footer%>