summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-mini/luasrc/view/mini/passwd.htm
blob: ece9a59479bd86bd2d4ee3b4ffb1ad14e129c1d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<%#
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>

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$

-%>
<%+header%>
<h1><%:system%></h1>
<h2><%:a_s_changepw%></h2>
<p><%:a_s_changepw1%></p>
<div><br />
<% if stat then %>
	<% if stat == 0 then %>
		<code><%:a_s_changepw_changed%>!</code>
	<% elseif stat == 10 then %>
		<code class="error"><%:a_s_changepw_nomatch%>!</code>
	<% else %>
		<code class="error"><%:unknownerror%>!</code>
	<% end %>
<% end %>
<% if not stat or stat == 10 then %>
	<form method="post" action="<%=REQUEST_URI%>">
		<div class="cbi-section-node">
			<div class="cbi-value">
				<div class="cbi-value-title"><%:password%></div>
				<div class="cbi-value-field"><input type="password" name="pwd1" /></div>
			</div>
			<div class="cbi-value">
				<div class="cbi-value-title"><%:confirmation%></div>
				<div class="cbi-value-field"><input type="password" name="pwd2" /></div>
			</div>
			<br />
			<div>
				<input type="submit" value="<%:save%>" />
				<input type="reset" value="<%:reset%>" />
			</div>
		</div>
	</form>
<% end %>
</div>
<%+footer%>