annotate app/main/index/change_password.lua @ 0:3bfb2fcf7ab9
Version alpha1
author |
bsw/jbe |
date |
Wed Nov 18 12:00:00 2009 +0100 (2009-11-18) |
parents |
|
children |
80c215dbf076 |
rev |
line source |
bsw/jbe@0
|
1
|
bsw/jbe@0
|
2 slot.put_into("title", _"Change password")
|
bsw/jbe@0
|
3
|
bsw/jbe@0
|
4 slot.select("actions", function()
|
bsw/jbe@0
|
5 ui.link{
|
bsw/jbe@0
|
6 content = function()
|
bsw/jbe@0
|
7 ui.image{ static = "icons/16/cancel.png" }
|
bsw/jbe@0
|
8 slot.put(_"Cancel")
|
bsw/jbe@0
|
9 end,
|
bsw/jbe@0
|
10 module = "index",
|
bsw/jbe@0
|
11 view = "index"
|
bsw/jbe@0
|
12 }
|
bsw/jbe@0
|
13 end)
|
bsw/jbe@0
|
14
|
bsw/jbe@0
|
15 ui.form{
|
bsw/jbe@0
|
16 attr = { class = "vertical" },
|
bsw/jbe@0
|
17 module = "index",
|
bsw/jbe@0
|
18 action = "update_password",
|
bsw/jbe@0
|
19 routing = {
|
bsw/jbe@0
|
20 ok = {
|
bsw/jbe@0
|
21 mode = "redirect",
|
bsw/jbe@0
|
22 module = "index",
|
bsw/jbe@0
|
23 view = "index"
|
bsw/jbe@0
|
24 }
|
bsw/jbe@0
|
25 },
|
bsw/jbe@0
|
26 content = function()
|
bsw/jbe@0
|
27 ui.field.password{ label = _"Old password", name = "old_password" }
|
bsw/jbe@0
|
28 ui.field.password{ label = _"New password", name = "new_password1" }
|
bsw/jbe@0
|
29 ui.field.password{ label = _"Repeat new password", name = "new_password2" }
|
bsw/jbe@0
|
30 ui.submit{ value = _"Change password" }
|
bsw/jbe@0
|
31 end
|
bsw/jbe@0
|
32 } |